Skip to content

Commit

Permalink
Implement pyblish#8
Browse files Browse the repository at this point in the history
  • Loading branch information
mottosso committed Jan 17, 2017
1 parent 71d07a2 commit 945f1e9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mindbender/maya/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,13 @@ def apply_shaders(relationships):
assert shader, "Associated shader not part of asset, this is a bug"

for id_ in ids:
meshes = lsattr("mbID", value=id_)
mesh, faces = (id_.rsplit(".", 1) + [""])[:2]

# Find all meshes matching this particular ID
# Convert IDs to mesh + id, e.g. "nameOfNode.f[1:100]"
meshes = list(".".join([mesh, faces])
for mesh in lsattr("mbID", value=mesh))

if not meshes:
continue

Expand Down

0 comments on commit 945f1e9

Please sign in to comment.