mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Prevent warning about already connected time attribute
This commit is contained in:
parent
9a439d408b
commit
3acbd9bd0c
1 changed files with 6 additions and 1 deletions
|
|
@ -273,7 +273,12 @@ class ReferenceLoader(Loader):
|
|||
if alembic_nodes:
|
||||
for attr, data in alembic_data.items():
|
||||
node_attr = "{}.{}".format(alembic_nodes[0], attr)
|
||||
if data["input"]:
|
||||
|
||||
# Prevent warning about connecting to the time attribute
|
||||
# cause Maya connects to this attribute by default.
|
||||
if attr == "time":
|
||||
continue
|
||||
elif data["input"]:
|
||||
cmds.connectAttr(
|
||||
data["input"], node_attr, force=True
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue