mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
hound
This commit is contained in:
parent
a7efe2ea75
commit
3af7795f19
1 changed files with 5 additions and 5 deletions
|
|
@ -139,11 +139,11 @@ class RedshiftProxyLoader(load.LoaderPlugin):
|
|||
|
||||
# TODO: use the assigned shading group as shaders if existed
|
||||
# assign default shader to redshift proxy
|
||||
shader_grp = next((shader_group for shader_group
|
||||
in cmds.ls(type="shadingEngine")
|
||||
if shader_group=="initialShadingGroup"))
|
||||
if shader_grp:
|
||||
cmds.sets(mesh_shape, forceElement=shader_grp)
|
||||
shader_grp = next(
|
||||
(shader_group for shader_group in cmds.ls(type="shadingEngine")
|
||||
if shader_group == "initialShadingGroup")
|
||||
)
|
||||
cmds.sets(mesh_shape, forceElement=shader_grp)
|
||||
|
||||
group_node = cmds.group(empty=True, name="{}_GRP".format(name))
|
||||
mesh_transform = cmds.listRelatives(mesh_shape,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue