diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-14 12:56:32 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-14 12:56:32 +0400 |
commit | 35e7d2e2c6e8ebb8911e65fdfb6eee6cbabc6146 (patch) | |
tree | d502ed00e3ccdea7265e848abea853509688ffb5 /add_mesh_extra_objects | |
parent | ff5c86fcc343ef8bfa208d4594712ce53fac6b9e (diff) |
De-duplicate functions needed for object add operators:
Remove module add_utils.py which fully duplicates functions
from trunk's object_utils.py module and switch all dependent
addons to use module from trunk.
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r-- | add_mesh_extra_objects/add_mesh_pyramid.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/add_mesh_extra_objects/add_mesh_pyramid.py b/add_mesh_extra_objects/add_mesh_pyramid.py index 69a530f4..11875778 100644 --- a/add_mesh_extra_objects/add_mesh_pyramid.py +++ b/add_mesh_extra_objects/add_mesh_pyramid.py @@ -32,8 +32,7 @@ bl_info = { import bpy from bpy.props import IntProperty, FloatProperty - -from add_utils import AddObjectHelper, add_object_data +from bpy_extras.object_utils import AddObjectHelper, object_data_add def makePyramid(initial_size, step_height, step_width, number_steps): @@ -105,7 +104,7 @@ def add_pyramid_object(self, context): mesh_data = bpy.data.meshes.new(name="Pyramid") mesh_data.from_pydata(verts, [], faces) mesh_data.update() - res = add_object_data(context, mesh_data, operator=self) + res = object_data_add(context, mesh_data, operator=self) class AddPyramid(bpy.types.Operator, AddObjectHelper): |