|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Bug?: home plan doesn't update when plugin resizes furniture » » » » Post: Re: Bug?: home plan doesn't update when plugin resizes furniture |
Print at Dec 17, 2025, 6:10:40 PM |
| Posted by Puybaret at May 4, 2022, 8:35:58 AM |
|
Re: Bug?: home plan doesn't update when plugin resizes furniture The size used to display a piece of furniture in the plan is actually coming from the values returned by the methods getWidthInPlan and getDeprhInPlan which may return values different from getWidth and getDeprh 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 addPieceOfFurniture before setDepth. If you prefer not to change the order of these calls, you’ll have to call projector.setDepthInPlan(1000) after calling setDepth. If possible, it would be nice to explain what you want to achieve ![]() ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 17, 2025, 6:10:40 PM |