From 2e1b0faa7cbb409fad79344eacd229cb8fe76f25 Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Fri, 30 Jun 2023 16:17:48 +0200 Subject: [PATCH] :bug: fix light enum values --- openpype/hosts/maya/api/lib.py | 18 ++++++++---------- .../hosts/maya/plugins/create/create_review.py | 2 +- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/openpype/hosts/maya/api/lib.py b/openpype/hosts/maya/api/lib.py index 04f605bbd7..b09088799c 100644 --- a/openpype/hosts/maya/api/lib.py +++ b/openpype/hosts/maya/api/lib.py @@ -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"} ] diff --git a/openpype/hosts/maya/plugins/create/create_review.py b/openpype/hosts/maya/plugins/create/create_review.py index 552e0d6ec5..f60e2406bc 100644 --- a/openpype/hosts/maya/plugins/create/create_review.py +++ b/openpype/hosts/maya/plugins/create/create_review.py @@ -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