Bugfix: Parent to world only if not already at world - support root level placeholders

This commit is contained in:
Roy Nieterau 2024-04-15 15:06:56 +02:00
parent 7856d34be5
commit e75f44f6c1

View file

@ -331,7 +331,8 @@ class MayaPlaceholderLoadPlugin(PlaceholderPlugin, PlaceholderLoadMixin):
if scene_parent:
cmds.parent(node, scene_parent)
else:
cmds.parent(node, world=True)
if cmds.listRelatives(node, parent=True):
cmds.parent(node, world=True)
holding_sets = cmds.listSets(object=placeholder.scene_identifier)
if not holding_sets: