mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Code cosmetics
This commit is contained in:
parent
2d92deae16
commit
57bbf946fd
1 changed files with 5 additions and 4 deletions
|
|
@ -111,7 +111,8 @@ def get_standin_path(node):
|
|||
|
||||
def shading_engine_assignments(shading_engine, attribute, nodes, assignments):
|
||||
shader_inputs = cmds.listConnections(
|
||||
shading_engine + "." + attribute, source=True)
|
||||
shading_engine + "." + attribute, source=True
|
||||
)
|
||||
if not shader_inputs:
|
||||
log.info(
|
||||
"Shading engine \"{}\" missing input \"{}\"".format(
|
||||
|
|
@ -124,9 +125,9 @@ def shading_engine_assignments(shading_engine, attribute, nodes, assignments):
|
|||
for i, node in enumerate(nodes):
|
||||
if "." in node:
|
||||
log.warning(
|
||||
("Converting face assignment to full object "
|
||||
"assignment. This conversion can be lossy: "
|
||||
"{}").format(node))
|
||||
"Converting face assignment to full object assignment. This "
|
||||
"conversion can be lossy: {}".format(node)
|
||||
)
|
||||
nodes[i] = node.split(".")[0]
|
||||
|
||||
shader_type = "shader" if attribute == "surfaceShader" else "disp_map"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue