Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 4348 times and has 2 replies Next Thread
Michely
Newbie




Joined: Oct 30, 2013
Post Count: 5
Status: Offline
Reply to this Post  Reply with Quote 
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....
[Mar 25, 2014, 6:04:33 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
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 developer
[Mar 25, 2014, 8:20:08 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Michely
Newbie




Joined: Oct 30, 2013
Post Count: 5
Status: Offline
Reply to this Post  Reply with Quote 
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
[Mar 26, 2014, 11:08:13 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved