Skip to content
Snippets Groups Projects
Commit 04d90a03 authored by Sebastian Nell's avatar Sebastian Nell
Browse files

Addon: Drop to ground fails 'cause bm.from_object expects a scene now as 2nd...

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.
parent 26dc4897
Branches
Tags
No related merge requests found
......@@ -51,7 +51,7 @@ def transform_ground_to_world(sc, ground):
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment