Added a group_hdri node type.
This node type serves the same purpose for hdri as the group_texture serves for the texture nodes.
This commit is contained in:
@@ -101,7 +101,7 @@ def has_texture_node(proj, return_hdri=True):
|
||||
# See which types of nodes we support.
|
||||
node_types = ['group_texture']
|
||||
if return_hdri:
|
||||
node_types.append('hdri')
|
||||
node_types.append('group_hdri')
|
||||
|
||||
count = nodes_collection.count(
|
||||
{'node_type': {'$in': node_types},
|
||||
|
22
pillar/manage_extra/node_types/group_hdri.py
Normal file
22
pillar/manage_extra/node_types/group_hdri.py
Normal file
@@ -0,0 +1,22 @@
|
||||
node_type_group_hdri = {
|
||||
'name': 'group_hdri',
|
||||
'description': 'Group for HDRi node type',
|
||||
'parent': ['group_hdri', 'project'],
|
||||
'dyn_schema': {
|
||||
# Used for sorting within the context of a group
|
||||
'order': {
|
||||
'type': 'integer'
|
||||
},
|
||||
'status': {
|
||||
'type': 'string',
|
||||
'allowed': [
|
||||
'published',
|
||||
'pending',
|
||||
],
|
||||
}
|
||||
},
|
||||
'form_schema': {
|
||||
'status': {},
|
||||
'order': {}
|
||||
}
|
||||
}
|
@@ -5,9 +5,7 @@ node_type_hdri = {
|
||||
# bucket (https://cloud.google.com/storage/docs/cross-origin)
|
||||
'name': 'hdri',
|
||||
'description': 'HDR Image',
|
||||
# This data type does not have parent limitations (can be child
|
||||
# of any node). An empty parent declaration is required.
|
||||
'parent': ['group', ],
|
||||
'parent': ['group_hdri'],
|
||||
'dyn_schema': {
|
||||
'status': {
|
||||
'type': 'string',
|
||||
|
Reference in New Issue
Block a user