Re: Bug?: home plan doesn't update when plugin resizes furniture
by Puybaret » Wed May 04, 2022 8:35 am
The size used to display a piece of furniture in the plan is actually coming from the values returned by the methods [font=courier new]getWidthInPlan[/font] and [font=courier new]getDeprhInPlan[/font] which may return values different from [font=courier new]getWidth[/font] and [font=courier new]getDeprh[/font] if the piece is rotated around a horizontal axis.
As this size in the plan is automatically updated by the plan controller on any piece added to the edited home, you could simply call [font=courier new]addPieceOfFurniture[/font] before [font=courier new]setDepth[/font]. If you prefer not to change the order of these calls, you’ll have to call [font=courier new]projector.setDepthInPlan(1000)[/font] after calling [font=courier new]setDepth[/font].
If possible, it would be nice to explain what you want to achieve [:)]