Added settings to make optional the setting the unit scale

This commit is contained in:
Simone Barbieri 2023-05-18 10:37:38 +01:00
parent 3350e0995f
commit d95299a31b
3 changed files with 50 additions and 11 deletions

View file

@ -1,5 +1,9 @@
{
"base_file_unit_scale": 0.01,
"unit_scale_settings": {
"enabled": true,
"apply_on_opening": false,
"base_file_unit_scale": 0.01
},
"imageio": {
"ocio_config": {
"enabled": false,

View file

@ -6,10 +6,30 @@
"is_file": true,
"children": [
{
"key": "base_file_unit_scale",
"type": "number",
"label": "Base File Unit Scale",
"decimal": 2
"key": "unit_scale_settings",
"type": "dict",
"label": "Set Unit Scale",
"collapsible": true,
"is_group": true,
"checkbox_key": "enabled",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"key": "apply_on_opening",
"type": "boolean",
"label": "Apply on Opening Existing Files"
},
{
"key": "base_file_unit_scale",
"type": "number",
"label": "Base File Unit Scale",
"decimal": 2
}
]
},
{
"key": "imageio",