Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
♻️ more explicit renderman check
Browse files Browse the repository at this point in the history
  • Loading branch information
antirotor committed Jun 7, 2022
1 parent 9babdb7 commit f760c9d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion openpype/hosts/maya/plugins/publish/collect_look.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,14 @@ def collect_resources(self, node):

# renderman allows nodes to have filename attribute empty while
# you can have another incoming connection from different node.
if not source and cmds.nodeType(node).lower().startswith("pxr"):
pxr_nodes = set()
if cmds.pluginInfo("RenderMan_for_Maya", query=True, loaded=True):
pxr_nodes = set(
cmds.pluginInfo("RenderMan_for_Maya",
query=True,
dependNode=True)
)
if not source and cmds.nodeType(node) in pxr_nodes:
self.log.info("Renderman: source is empty, skipping...")
continue
# We replace backslashes with forward slashes because V-Ray
Expand Down

0 comments on commit f760c9d

Please sign in to comment.