Skip to content

Commit

Permalink
Fix for square area light size not visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
leozide committed Apr 14, 2024
1 parent 14d1217 commit 207bc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/lc_propertieswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 207bc47

Please sign in to comment.