diff --git a/colorbleed/maya/lib.py b/colorbleed/maya/lib.py index 9727666765..3e6e7cb9d0 100644 --- a/colorbleed/maya/lib.py +++ b/colorbleed/maya/lib.py @@ -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: