Fix for square area light size not visible.

This commit is contained in:
Leonardo Zide 2024-04-14 11:15:06 -07:00
parent 14d1217850
commit 207bc4724f

View file

@ -1324,7 +1324,7 @@ void lcPropertiesWidget::SetLight(const lcArray<lcObject*>& 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);