Bug?: home plan doesn't update when plugin resizes furniture
I've encountered what seems to be a bug, where when I have a plugin modify the size of a HomePieceOfFurniture, it correctly updates everywhere except in the home plan view.
The projector seems very stretched in the home 3D view, but appears as its default dimensions in the home plan view.
If I then double-click it and go to the "Modify furniture" window, the correct (large) depth is visible. If I make some other change to the dimensions (for example changing the height), when I click "OK" the depth is now correct in the home plan view.
---
If this is a bug, I assume you'll fix it in a later version. I'm using a version provided by Debian, so it'll probably be a long time for a fix. Is there some workaround I can use in the meantime to force the home plan view to recalculate the dimensions?
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
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