[Durian-svn] [1238] update for changes in object api

campbell durian-svn at blender.org
Mon Mar 8 12:51:06 CET 2010


Revision: 1238
          https://blenderinstitute.dyndns.org/durian-svn/?do=log&project=durian&path=/&rev=1238
Author:   campbell
Date:     2010-03-08 12:51:06 +0100 (Mon, 08 Mar 2010)
Log Message:
-----------
update for changes in object api

Modified Paths:
--------------
    pro/scripts/ui/grease_scatter.py

Modified: pro/scripts/ui/grease_scatter.py
===================================================================
--- pro/scripts/ui/grease_scatter.py	2010-03-08 11:24:05 UTC (rev 1237)
+++ pro/scripts/ui/grease_scatter.py	2010-03-08 11:51:06 UTC (rev 1238)
@@ -77,8 +77,7 @@
         
         scene = bpy.context.scene
         mesh.update()
-        obj_new = bpy.data.objects.new("Torus", 'MESH')
-        obj_new.data = mesh
+        obj_new = bpy.data.objects.new("Torus", mesh)
         scene.objects.link(obj_new)
 
     ray = o.ray_cast
@@ -227,8 +226,7 @@
             
             scene = bpy.context.scene
             mesh.update()
-            obj_new = bpy.data.objects.new("Torus", 'MESH')
-            obj_new.data = mesh
+            obj_new = bpy.data.objects.new("Torus", mesh)
             scene.objects.link(obj_new)
             obj_new.layers[:] = o.layers
             
@@ -258,8 +256,7 @@
 
                     scene = bpy.context.scene
                     mesh.update()
-                    obj_new = bpy.data.objects.new("Torus", 'MESH')
-                    obj_new.data = mesh
+                    obj_new = bpy.data.objects.new("Torus", mesh)
                     scene.objects.link(obj_new)
                     obj_new.layers[:] = o.layers
                     



More information about the Durian-svn mailing list