[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4152] contrib/py/scripts/addons/ object_drop_to_ground.py: Addon: Drop to ground fails 'cause bm. from_object expects a scene now as 2nd parameter.

Sebastian Nell codemanx at gmx.de
Mon Jan 7 01:55:53 CET 2013


Revision: 4152
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4152
Author:   codemanx
Date:     2013-01-07 00:55:52 +0000 (Mon, 07 Jan 2013)
Log Message:
-----------
Addon: Drop to ground fails 'cause bm.from_object expects a scene now as 2nd parameter. But passing context.scene and accessing the bmesh object crashes Blender?! Changes to from_mesh.

Modified Paths:
--------------
    contrib/py/scripts/addons/object_drop_to_ground.py

Modified: contrib/py/scripts/addons/object_drop_to_ground.py
===================================================================
--- contrib/py/scripts/addons/object_drop_to_ground.py	2013-01-07 00:10:15 UTC (rev 4151)
+++ contrib/py/scripts/addons/object_drop_to_ground.py	2013-01-07 00:55:52 UTC (rev 4152)
@@ -51,7 +51,7 @@
 
 def get_lowest_world_co_from_mesh(ob, mat_parent=None):
     bme = bmesh.new()
-    bme.from_object(ob)
+    bme.from_mesh(ob.data)
     mat_to_world = ob.matrix_world.copy()
     if mat_parent:
         mat_to_world = mat_parent * mat_to_world



More information about the Bf-extensions-cvs mailing list