Print at Dec 23, 2025, 6:51:26 AM View all posts in this thread on one page
Posted by Michely at Mar 25, 2014, 6:04:33 PM
Modifying Furniture Textures from plugin fails to refresh automatically
Hi, I have a plugin that modifies the model materials using "setModelMaterials" but it does not automatically refresh the furniture items in both the 2D and 3D panes. Once I click and move a modified furniture piece then the changes become visible in both view panes.

What is required to update and refresh a furniture piece after using "setModelMaterials" to make the changes visible?

Any suggestions? Thank you....

Posted by Puybaret at Mar 25, 2014, 8:20:08 PM
Re: Modifying Furniture Textures from plugin fails to refresh automatically
Strange, both PlanComponent and HomeComponent3D instances listen to this kind of change.
Are you sure the materials changed? No stack trace of an exception?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by Michely at Mar 26, 2014, 11:08:13 PM
Re: Modifying Furniture Textures from plugin fails to refresh automatically
Hi, Thanks for the quick reply. The moment I move a furniture piece that had its materials changed via the plugin it will redraw using the new materials.
What would be the best way to force a complete redraw/refresh of a piece of furniture? (firePropertyChange?)
Thanks, Roland