Asset Pipeline v2 #145

Closed
Nick Alberelli wants to merge 431 commits from (deleted):feature/asset-pipeline-v2 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
3 changed files with 80 additions and 25 deletions
Showing only changes of commit 5fe1bc1645 - Show all commits

View File

@ -7,8 +7,9 @@ from .. import config
def get_default_task_layer(td_type: str, name=""): def get_default_task_layer(td_type: str, name=""):
if td_type == constants.ATTRIBUTE_KEY: if td_type == constants.ATTRIBUTE_KEY:
if name in config.DEFAULT_OWNERSHIP_ATTRIBUTES: if name in config.DEFAULT_OWNERSHIP_ATTRIBUTES:
return config.DEFAULT_OWNERSHIP_ATTRIBUTES[name] return config.DEFAULT_OWNERSHIP_ATTRIBUTES[name]['default_owner']
return config.DEFAULT_OWNERSHIP[td_type] print(config.DEFAULT_OWNERSHIP[td_type]['default_owner'])
return config.DEFAULT_OWNERSHIP[td_type]['default_owner']
def get_transfer_data_owner( def get_transfer_data_owner(

View File

@ -1,20 +1,47 @@
{ {
"TASK_LAYER_TYPES": { "TASK_LAYER_TYPES": {
"Modeling":"MOD", "Modeling": "MOD",
"Rigging":"RIG", "Rigging": "RIG",
"Shading":"SHD" "Shading": "SHD"
}, },
"DEFAULT_OWNERSHIP": { "DEFAULT_OWNERSHIP": {
"GROUP_VERTEX": "Rigging", "GROUP_VERTEX": {
"MODIFIER": "Rigging", "default_owner": "Rigging",
"CONSTRAINT": "Rigging", "auto_surrender": false
"MATERIAL": "Shading", },
"SHAPE_KEY": "Modeling", "MODIFIER": {
"ATTRIBUTE": "Rigging", "default_owner": "Rigging",
"PARENT": "Rigging" "auto_surrender": false
},
"CONSTRAINT": {
"default_owner": "Rigging",
"auto_surrender": false
},
"MATERIAL": {
"default_owner": "Shading",
"auto_surrender": false
},
"SHAPE_KEY": {
"default_owner": "Modeling",
"auto_surrender": false
},
"ATTRIBUTE": {
"default_owner": "Rigging",
"auto_surrender": false
},
"PARENT": {
"default_owner": "Rigging",
"auto_surrender": false
}
}, },
"DEFAULT_OWNERSHIP_ATTRIBUTES": { "DEFAULT_OWNERSHIP_ATTRIBUTES": {
"sharp_face": "Modeling", "sharp_face": {
"UVMap": "Shading" "default_owner": "Modeling",
"auto_surrender": false
},
"UVMap": {
"default_owner": "Shading",
"auto_surrender": false
}
} }
} }

View File

@ -1,19 +1,46 @@
{ {
"TASK_LAYER_TYPES": { "TASK_LAYER_TYPES": {
"Modeling":"MOD", "Modeling": "MOD",
"Shading":"SHD" "Shading": "SHD"
}, },
"DEFAULT_OWNERSHIP": { "DEFAULT_OWNERSHIP": {
"GROUP_VERTEX": "Modeling", "GROUP_VERTEX": {
"MODIFIER": "Modeling", "default_owner": "Modeling",
"CONSTRAINT": "Modeling", "auto_surrender": false
"MATERIAL": "Shading", },
"SHAPE_KEY": "Modeling", "MODIFIER": {
"ATTRIBUTE": "Modeling", "default_owner": "Modeling",
"PARENT": "Modeling" "auto_surrender": false
},
"CONSTRAINT": {
"default_owner": "Modeling",
"auto_surrender": false
},
"MATERIAL": {
"default_owner": "Shading",
"auto_surrender": false
},
"SHAPE_KEY": {
"default_owner": "Modeling",
"auto_surrender": false
},
"ATTRIBUTE": {
"default_owner": "Modeling",
"auto_surrender": false
},
"PARENT": {
"default_owner": "Modeling",
"auto_surrender": false
}
}, },
"DEFAULT_OWNERSHIP_ATTRIBUTES": { "DEFAULT_OWNERSHIP_ATTRIBUTES": {
"sharp_face": "Modeling", "sharp_face": {
"UVMap": "Shading" "default_owner": "Modeling",
"auto_surrender": false
},
"UVMap": {
"default_owner": "Shading",
"auto_surrender": false
}
} }
} }