From 207bc4724fd44e50b9b99b7fc0d383c0d0ddd8ad Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sun, 14 Apr 2024 11:15:06 -0700 Subject: [PATCH] Fix for square area light size not visible. --- common/lc_propertieswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lc_propertieswidget.cpp b/common/lc_propertieswidget.cpp index 858f420a..efd0e519 100644 --- a/common/lc_propertieswidget.cpp +++ b/common/lc_propertieswidget.cpp @@ -1324,7 +1324,7 @@ void lcPropertiesWidget::SetLight(const lcArray& Selection, lcObject* SetPropertyVisible(lcObjectPropertyId::LightAreaShape, IsAreaLight); const bool IsSquare = (LightAreaShape == lcLightAreaShape::Square || LightAreaShape == lcLightAreaShape::Disk); - SetPropertyVisible(lcObjectPropertyId::LightAreaSizeX, IsAreaLight && !IsSquare); + SetPropertyVisible(lcObjectPropertyId::LightAreaSizeX, IsAreaLight); SetPropertyVisible(lcObjectPropertyId::LightAreaSizeY, IsAreaLight && !IsSquare); SetPropertyVisible(lcObjectPropertyId::LightAreaPOVRayGridX, IsAreaLight);