mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Allow duplicating publish instances in Maya by not storin instance id as an attribute but using the (unique) node's name instead.
This commit is contained in:
parent
b6e9806258
commit
5ff66afff7
1 changed files with 2 additions and 0 deletions
|
|
@ -134,6 +134,7 @@ class MayaCreatorBase(object):
|
|||
# We never store the instance_node as value on the node since
|
||||
# it's the node name itself
|
||||
data.pop("instance_node", None)
|
||||
data.pop("instance_id", None)
|
||||
|
||||
# We store creator attributes at the root level and assume they
|
||||
# will not clash in names with `subset`, `task`, etc. and other
|
||||
|
|
@ -185,6 +186,7 @@ class MayaCreatorBase(object):
|
|||
|
||||
# Explicitly re-parse the node name
|
||||
node_data["instance_node"] = node
|
||||
node_data["instance_id"] = node
|
||||
|
||||
return node_data
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue