diff options
Diffstat (limited to 'add_advanced_objects_panels/drop_to_ground.py')
-rw-r--r-- | add_advanced_objects_panels/drop_to_ground.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/add_advanced_objects_panels/drop_to_ground.py b/add_advanced_objects_panels/drop_to_ground.py index e6facbcf..8c66fb46 100644 --- a/add_advanced_objects_panels/drop_to_ground.py +++ b/add_advanced_objects_panels/drop_to_ground.py @@ -87,13 +87,13 @@ def get_lowest_world_co(context, ob, mat_parent=None): if ob.type == 'MESH': return get_lowest_world_co_from_mesh(ob) - elif ob.type == 'EMPTY' and ob.dupli_type == 'GROUP': - if not ob.dupli_group: + elif ob.type == 'EMPTY' and ob.instance_type == 'COLLECTION': + if not ob.instance_collection: return None else: lowest_co = None - for ob_l in ob.dupli_group.objects: + for ob_l in ob.instance_collection.objects: if ob_l.type == 'MESH': lowest_ob_l = get_lowest_world_co_from_mesh(ob_l, ob.matrix_world) if not lowest_co: |