mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-04 09:55:24 +01:00
Fix writeNormals
This commit is contained in:
parent
178f1848c1
commit
fcf1c1ec8a
2 changed files with 7 additions and 1 deletions
|
|
@ -41,6 +41,8 @@ def get_instance_attr_defs(cls):
|
|||
label="Priority for farm"),
|
||||
BoolDef("noNormals",
|
||||
label="Include normals"),
|
||||
BoolDef("writeNormals",
|
||||
label="Write Normals"),
|
||||
BoolDef("includeUserDefinedAttributes",
|
||||
label="Include User Defined Attributes"),
|
||||
TextDef("attr",
|
||||
|
|
|
|||
|
|
@ -60,7 +60,11 @@ class CollectAnimationOutputGeometry(pyblish.api.InstancePlugin):
|
|||
|
||||
# Alembic and Multiverse share the same attribute functionality but
|
||||
# different names.
|
||||
instance.data["writeNormals"] = not instance.data["noNormals"]
|
||||
instance.data["writeNormals"] = (
|
||||
instance.data.get("writeNormals") or
|
||||
not instance.data.get("noNormals") or
|
||||
False
|
||||
)
|
||||
|
||||
# Backwards compatibility for attributes.
|
||||
backwards_mapping = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue