move generic bpy helper modules into bpy_extras.
This commit is contained in:
@@ -132,7 +132,7 @@ class AddTorus(bpy.types.Operator):
|
|||||||
mesh.faces.foreach_set("vertices_raw", faces)
|
mesh.faces.foreach_set("vertices_raw", faces)
|
||||||
mesh.update()
|
mesh.update()
|
||||||
|
|
||||||
import add_object_utils
|
from bpy_extras import object_utils
|
||||||
add_object_utils.object_data_add(context, mesh, operator=self)
|
object_utils.object_data_add(context, mesh, operator=self)
|
||||||
|
|
||||||
return {'FINISHED'}
|
return {'FINISHED'}
|
||||||
|
@@ -12,7 +12,7 @@ def write_some_data(context, filepath, use_some_setting):
|
|||||||
|
|
||||||
# ExportHelper is a helper class, defines filename and
|
# ExportHelper is a helper class, defines filename and
|
||||||
# invoke() function which calls the file selector.
|
# 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
|
from bpy.props import StringProperty, BoolProperty, EnumProperty
|
||||||
|
|
||||||
|
|
||||||
|
@@ -80,8 +80,8 @@ class AddBox(bpy.types.Operator):
|
|||||||
mesh.update()
|
mesh.update()
|
||||||
|
|
||||||
# add the mesh as an object into the scene with this utility module
|
# add the mesh as an object into the scene with this utility module
|
||||||
import add_object_utils
|
from bpy_extras import object_utils
|
||||||
add_object_utils.object_data_add(context, mesh, operator=self)
|
object_utils.object_data_add(context, mesh, operator=self)
|
||||||
|
|
||||||
return {'FINISHED'}
|
return {'FINISHED'}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user