Closed agonzalezesteve closed 12 months ago
Hey @agonzalezesteve! Just for the note, you're disposing the whole tool, not just the model. If you want to dispose the model (FragmentsGroup) then use FragmentsManager.disposeGroup()
. Maybe this could help you someway!
Hey @agonzalezesteve! Just for the note, you're disposing the whole tool, not just the model. If you want to dispose the model (FragmentsGroup) then use
FragmentsManager.disposeGroup()
. Maybe this could help you someway!
Ok, good to know, thanks!
I will take care of this by adding a new onFragmentsGroupDispose
event in the FragmentsManager tool to clean up any information in other tools that are model-specific.
Solved in PR https://github.com/IFCjs/components/pull/197.
Describe the bug 📝
Fragments data from different tools is not reseted after fragments.dispose().
Similar to #134.
Reproduction ▶️
No response
Steps to reproduce 🔢
Every time that I load an IFC file, I delete the previous one using this method:
Once I load the new IFC, I run a components.init() in order to update all the current tools.
System Info 💻
Used Package Manager 📦
npm
Error Trace/Logs 📃
I get the following error:
Validations ✅