mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
added support for writing vertex colors
This commit is contained in:
parent
3c23ac2dce
commit
ddefd09bc2
1 changed files with 13 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
from collections import OrderedDict
|
||||
|
||||
import avalon.maya
|
||||
|
||||
|
||||
|
|
@ -8,3 +10,14 @@ class CreateModel(avalon.maya.Creator):
|
|||
label = "Model"
|
||||
family = "colorbleed.model"
|
||||
icon = "cube"
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CreateModel, self).__init__(*args, **kwargs)
|
||||
|
||||
# create an ordered dict with the existing data first
|
||||
data = OrderedDict(**self.data)
|
||||
|
||||
# Write vertex colors with the geometry.
|
||||
data["writeColorSets"] = False
|
||||
|
||||
self.data = data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue