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....
Modifying Furniture Textures from plugin fails to refresh automatically
This topic has been viewed 5564 times and has 2 replies
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?
Are you sure the materials changed? No stack trace of an exception?
Emmanuel Puybaret, Sweet Home 3D creator
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
What would be the best way to force a complete redraw/refresh of a piece of furniture? (firePropertyChange?)
Thanks, Roland
Who is online
Users browsing this forum: No registered users and 2 guests