move generic bpy helper modules into bpy_extras.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 16 May 2011 07:51:02 +0000 (07:51 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 16 May 2011 07:51:02 +0000 (07:51 +0000)
release/scripts/modules/bpy_extras/image_utils.py [moved from release/scripts/modules/image_utils.py with 100% similarity]
release/scripts/modules/bpy_extras/io_utils.py [moved from release/scripts/modules/io_utils.py with 100% similarity]
release/scripts/modules/bpy_extras/mesh_utils.py [moved from release/scripts/modules/mesh_utils.py with 100% similarity]
release/scripts/modules/bpy_extras/object_utils.py [moved from release/scripts/modules/add_object_utils.py with 100% similarity]
release/scripts/modules/bpy_extras/view3d_utils.py [moved from release/scripts/modules/view3d_utils.py with 100% similarity]
release/scripts/startup/bl_operators/add_mesh_torus.py
release/scripts/templates/operator_export.py
release/scripts/templates/operator_mesh_add.py

index 460330a56a16fe2925d64d1d205bd5d5b8a650ac..6ab803cc4696fc165275cd480c7e9ed6045f27a4 100644 (file)
@@ -132,7 +132,7 @@ class AddTorus(bpy.types.Operator):
         mesh.faces.foreach_set("vertices_raw", faces)
         mesh.update()
 
-        import add_object_utils
-        add_object_utils.object_data_add(context, mesh, operator=self)
+        from bpy_extras import object_utils
+        object_utils.object_data_add(context, mesh, operator=self)
 
         return {'FINISHED'}
index 1b1c90c8a21ae1a4833692cf86d22e6b4b67a698..4cf943a53b786b0208a73b5270013b87b0eb6d88 100644 (file)
@@ -12,7 +12,7 @@ def write_some_data(context, filepath, use_some_setting):
 
 # ExportHelper is a helper class, defines filename and
 # invoke() function which calls the file selector.
-from io_utils import ExportHelper
+from bpy_extras.io_utils import ExportHelper
 from bpy.props import StringProperty, BoolProperty, EnumProperty
 
 
index 65b08eebb4e4a24b1f2ee887055e3948e38f435f..10d23a6712dec4a6ccc05aaebacb2a0b4f53fc12 100644 (file)
@@ -80,8 +80,8 @@ class AddBox(bpy.types.Operator):
         mesh.update()
 
         # add the mesh as an object into the scene with this utility module
-        import add_object_utils
-        add_object_utils.object_data_add(context, mesh, operator=self)
+        from bpy_extras import object_utils
+        object_utils.object_data_add(context, mesh, operator=self)
 
         return {'FINISHED'}