diff options
-rw-r--r-- | add_mesh_3d_function_surface.py | 2 | ||||
-rw-r--r-- | add_mesh_diamond.py | 2 | ||||
-rw-r--r-- | add_mesh_gears.py | 2 | ||||
-rw-r--r-- | add_mesh_pipe_joint.py | 4 | ||||
-rw-r--r-- | add_mesh_star.py | 4 | ||||
-rw-r--r-- | add_mesh_twisted_torus.py | 6 | ||||
-rw-r--r-- | image_to_planes.py | 2 | ||||
-rw-r--r-- | space_view3d_cursor_menu.py | 4 | ||||
-rwxr-xr-x | space_view3d_edit_object_parameters.py | 2 | ||||
-rw-r--r-- | space_view3d_panel_measure.py | 2 |
10 files changed, 15 insertions, 15 deletions
diff --git a/add_mesh_3d_function_surface.py b/add_mesh_3d_function_surface.py index 897e44b6..eff69042 100644 --- a/add_mesh_3d_function_surface.py +++ b/add_mesh_3d_function_surface.py @@ -17,7 +17,7 @@ # ##### END GPL LICENSE BLOCK ##### import bpy -from Mathutils import * +from mathutils import * from math import * from bpy.props import * diff --git a/add_mesh_diamond.py b/add_mesh_diamond.py index 18a0036a..8c227373 100644 --- a/add_mesh_diamond.py +++ b/add_mesh_diamond.py @@ -35,7 +35,7 @@ bl_addon_info = { def add_diamond(segments, girdle_radius, table_radius, crown_height, pavillion_height): - from Mathutils import Vector, Quaternion + from mathutils import Vector, Quaternion from math import pi PI_2 = pi * 2 diff --git a/add_mesh_gears.py b/add_mesh_gears.py index 19ca3494..0b69e41d 100644 --- a/add_mesh_gears.py +++ b/add_mesh_gears.py @@ -94,7 +94,7 @@ Unresolved issues: """ import bpy -import Mathutils +import mathutils from math import cos, sin, tan, atan, asin, pi,radians as rad from copy import deepcopy as dc diff --git a/add_mesh_pipe_joint.py b/add_mesh_pipe_joint.py index 8a4024d2..f60a5a98 100644 --- a/add_mesh_pipe_joint.py +++ b/add_mesh_pipe_joint.py @@ -17,7 +17,7 @@ # ##### END GPL LICENSE BLOCK ##### import bpy -import Mathutils +import mathutils from math import * from bpy.props import * @@ -110,7 +110,7 @@ v0.1 - Initial revision. TODO: Use a rotation matrix for rotating the circle vertices: -rotation_matrix = Mathutils.RotationMatrix(-math.pi/2, 4, 'x') +rotation_matrix = mathutils.RotationMatrix(-math.pi/2, 4, 'x') mesh.transform(rotation_matrix) """ diff --git a/add_mesh_star.py b/add_mesh_star.py index 31ce2ccc..dfd2e779 100644 --- a/add_mesh_star.py +++ b/add_mesh_star.py @@ -33,11 +33,11 @@ bl_addon_info = { import bpy -import Mathutils +import mathutils def add_star(points, outer_radius, inner_radius, depth): - from Mathutils import Vector, Quaternion + from mathutils import Vector, Quaternion from math import pi PI_2 = pi * 2 diff --git a/add_mesh_twisted_torus.py b/add_mesh_twisted_torus.py index fcdc9c41..d571e18b 100644 --- a/add_mesh_twisted_torus.py +++ b/add_mesh_twisted_torus.py @@ -53,13 +53,13 @@ Usage: import bpy -import Mathutils +import mathutils from math import cos, sin, pi def add_twisted_torus(major_rad, minor_rad, major_seg, minor_seg, twists): - Vector = Mathutils.Vector - Quaternion = Mathutils.Quaternion + Vector = mathutils.Vector + Quaternion = mathutils.Quaternion PI_2 = pi * 2 z_axis = (0, 0, 1) diff --git a/image_to_planes.py b/image_to_planes.py index 325b0ef0..36aad6d5 100644 --- a/image_to_planes.py +++ b/image_to_planes.py @@ -69,7 +69,7 @@ with the appropiate aspect ratio', import bpy from bpy.props import * from os import listdir -from Mathutils import Vector +from mathutils import Vector # Apply view rotation to objects if "Align To" for new objects # was set to "VIEW" in the User Preference. diff --git a/space_view3d_cursor_menu.py b/space_view3d_cursor_menu.py index 597bd4ad..01fedfb2 100644 --- a/space_view3d_cursor_menu.py +++ b/space_view3d_cursor_menu.py @@ -112,7 +112,7 @@ def register(): bpy.types.register(VIEW3D_MT_3D_Cursor_Menu) bpy.types.register(pivot_cursor) bpy.types.register(revert_pivot) - km = bpy.context.manager.active_keyconfig.keymaps['3D View'] + km = bpy.context.manager.keyconfigs.active.keymaps['3D View'] kmi = km.items.add('wm.call_menu', 'SELECTMOUSE', 'CLICK') kmi.properties.name = "VIEW3D_MT_3D_Cursor_Menu" @@ -121,7 +121,7 @@ def unregister(): bpy.types.unregister(VIEW3D_MT_3D_Cursor_Menu) bpy.types.unregister(pivot_cursor) bpy.types.unregister(revert_pivot) - km = bpy.context.manager.active_keyconfig.keymaps['3D View'] + km = bpy.context.manager.keyconfigs.active.keymaps['3D View'] for kmi in km.items: if kmi.idname == 'wm.call_menu': if kmi.properties.name == "VIEW3D_MT_3D_Cursor_Menu": diff --git a/space_view3d_edit_object_parameters.py b/space_view3d_edit_object_parameters.py index 1b6bfd3e..fb949afa 100755 --- a/space_view3d_edit_object_parameters.py +++ b/space_view3d_edit_object_parameters.py @@ -17,7 +17,7 @@ # ##### END GPL LICENSE BLOCK ##### import bpy -from Mathutils import * +from mathutils import * from math import * from bpy.props import * diff --git a/space_view3d_panel_measure.py b/space_view3d_panel_measure.py index 7d6bc5bf..16dd623f 100644 --- a/space_view3d_panel_measure.py +++ b/space_view3d_panel_measure.py @@ -18,7 +18,7 @@ import bpy from bpy.props import * -from Mathutils import Vector, Matrix +from mathutils import Vector, Matrix # Precicion for display of float values. PRECISION = 5 |