🐛 fix light enum values

This commit is contained in:
Ondrej Samohel 2023-06-30 16:17:48 +02:00
parent 6a311e937a
commit 2e1b0faa7c
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
2 changed files with 9 additions and 11 deletions

View file

@ -121,16 +121,14 @@ FLOAT_FPS = {23.98, 23.976, 29.97, 47.952, 59.94}
RENDERLIKE_INSTANCE_FAMILIES = ["rendering", "vrayscene"]
DISPLAY_LIGHTS_VALUES = [
"project_settings", "default", "all", "selected", "flat", "none"
]
DISPLAY_LIGHTS_LABELS = [
"Use Project Settings",
"Default Lighting",
"All Lights",
"Selected Lights",
"Flat Lighting",
"No Lights"
DISPLAY_LIGHTS_ENUM = [
{"label": "Use Project Settings", "value": "project_settings"},
{"label": "Default Lighting", "value": "default"},
{"label": "All Lights", "value": "all"},
{"label": "Selected Lights", "value": "selected"},
{"label": "Flat Lighting", "value": "flat"},
{"label": "No Lights", "value": "none"}
]

View file

@ -136,7 +136,7 @@ class CreateReview(plugin.MayaCreator):
default=True),
EnumDef("displayLights",
label="Display Lights",
items=lib.DISPLAY_LIGHTS_LABELS),
items=lib.DISPLAY_LIGHTS_ENUM),
])
return defs