diff options
author | Florian Meyer <florianfelix@web.de> | 2011-01-07 18:57:45 +0300 |
---|---|---|
committer | Florian Meyer <florianfelix@web.de> | 2011-01-07 18:57:45 +0300 |
commit | 83029448d2c58c6662e955e2ae57839d1dccb4ef (patch) | |
tree | 30fcc64a20f5dc6d105b8bb0ca2a69e8847c976d /modules | |
parent | 1d59c13530eec75c3f36431dc34421f612336963 (diff) |
fix for api change. update() doesn't work the same as before anymore. Broke Torus Knot.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/add_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/add_utils.py b/modules/add_utils.py index cb742892..0b38f0df 100644 --- a/modules/add_utils.py +++ b/modules/add_utils.py @@ -81,8 +81,8 @@ def add_object_data(context, obdata, operator=None): for ob in scene.objects: ob.select = False - obdata.update() obj_new = bpy.data.objects.new(obdata.name, obdata) + obj_new.update() base = scene.objects.link(obj_new) base.select = True @@ -138,4 +138,4 @@ def list_to_vector_list(list, dimension=3): result.append(vec) - return result + return result
\ No newline at end of file |