Closed TristanLecallier closed 11 months ago
Hi @TristanLecallier!
Could you please update to 1.1.9 and tell us if the error continues?
Hi @HoyosJuan ! After the update, I still have the error...
Ok @TristanLecallier! Got you covered ๐ will let you know when it's fixed.
Hey @TristanLecallier! I just solved this in PR https://github.com/IFCjs/components/pull/199. We need to wait until this gets published as a new patch in NPM along with other bugs I'm solving. Thanks!
Hi @HoyosJuan I think there was an oversight in the PR : the viewer container is still taken from the UI Manager in LengthMeasurement component, here : https://github.com/IFCjs/components/blob/a8472b228f955fd03a9c1e16d05d46106f496466/src/measurement/LengthMeasurement/index.ts#L304C4-L304C64
Also with FragmentPlans component : https://github.com/IFCjs/components/blob/a8472b228f955fd03a9c1e16d05d46106f496466/src/fragments/FragmentPlans/index.ts#L165
The "add" method will create a ui.Button whereas ui is disabled.
@HoyosJuan
This also happens now with the FragmentIfcLoader. We don't have the UI declared anywhere, but still get a crash.
The line it crashes on is: const ifcLoader = new OBC.FragmentIfcLoader(newComponents);
In 1.1.0
it worked fine.
@tb-viktor have you put newComponents.uiEnabled = false;
? before calling const ifcLoader = new OBC.FragmentIfcLoader(newComponents);
@tb-viktor have you put
newComponents.uiEnabled = false;
? before callingconst ifcLoader = new OBC.FragmentIfcLoader(newComponents);
That solves it, thank you ๐
Describe the bug ๐
since I updated OBC from 1.1.5 to 1.1.7., I have the following error "UIManager hasn't been initialised". It happens when I create LengthMeasurement components. Yet I disabled ui (because I'm using my own) with : this.components.uiEnabled = false;
After a deeper investigation, it seems that the issue raises inside VertexPicker Class in setupEvents function (here : https://github.com/IFCjs/components/blob/main/src/utils/VertexPicker/index.ts#L164 )
Reproduction โถ๏ธ
No response
Steps to reproduce ๐ข
` this.components = new OBC.Components(); const sceneComponent = new OBC.SimpleScene(this.components); const scene = sceneComponent.get();
System Info ๐ป
Used Package Manager ๐ฆ
npm
Error Trace/Logs ๐
No response
Validations โ