mirror of
https://github.com/leozide/leocad
synced 2025-02-07 08:45:49 +01:00
Fix for square area light size not visible.
This commit is contained in:
parent
14d1217850
commit
207bc4724f
1 changed files with 1 additions and 1 deletions
|
@ -1324,7 +1324,7 @@ void lcPropertiesWidget::SetLight(const lcArray<lcObject*>& Selection, lcObject*
|
||||||
SetPropertyVisible(lcObjectPropertyId::LightAreaShape, IsAreaLight);
|
SetPropertyVisible(lcObjectPropertyId::LightAreaShape, IsAreaLight);
|
||||||
|
|
||||||
const bool IsSquare = (LightAreaShape == lcLightAreaShape::Square || LightAreaShape == lcLightAreaShape::Disk);
|
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::LightAreaSizeY, IsAreaLight && !IsSquare);
|
||||||
|
|
||||||
SetPropertyVisible(lcObjectPropertyId::LightAreaPOVRayGridX, IsAreaLight);
|
SetPropertyVisible(lcObjectPropertyId::LightAreaPOVRayGridX, IsAreaLight);
|
||||||
|
|
Loading…
Add table
Reference in a new issue