Make listConnections call for getting shaders more explicit

This commit is contained in:
Roy Nieterau 2018-10-09 13:02:49 +02:00
parent 959e35b3b4
commit 4e760c593d

View file

@ -553,6 +553,10 @@ def get_shader_assignments_from_shapes(shapes):
# Get unique shading groups for the shape
shading_groups = cmds.listConnections(shape,
source=False,
destination=True,
plugs=False,
connections=False,
type="shadingEngine") or []
shading_groups = list(set(shading_groups))
for shading_group in shading_groups: