[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1357] trunk/py/scripts/addons/modules/ add_utils.py: fix for api change.
Florian Meyer
florianfelix at web.de
Fri Jan 7 16:57:46 CET 2011
Revision: 1357
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1357
Author: testscreenings
Date: 2011-01-07 15:57:45 +0000 (Fri, 07 Jan 2011)
Log Message:
-----------
fix for api change. update() doesn't work the same as before anymore. Broke Torus Knot.
Modified Paths:
--------------
trunk/py/scripts/addons/modules/add_utils.py
Modified: trunk/py/scripts/addons/modules/add_utils.py
===================================================================
--- trunk/py/scripts/addons/modules/add_utils.py 2011-01-07 10:09:46 UTC (rev 1356)
+++ trunk/py/scripts/addons/modules/add_utils.py 2011-01-07 15:57:45 UTC (rev 1357)
@@ -81,8 +81,8 @@
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 @@
result.append(vec)
- return result
+ return result
\ No newline at end of file
More information about the Bf-extensions-cvs
mailing list