You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this bug fix critical for your commercial enterprise?
We have potential workarounds, but this affects required functionality for our application
Describe the bug
When loading a model in .glb or .gltf format, scene. objects is empty. This prevents the use of methods and properties such as scene.objectIds and scene.setObjectsVisible to show or isolate objects in the scene.
To Reproduce
Steps to reproduce the behavior:
Load a model using GLTFLoaderPlugin, providing urls for src and metaModelSrc
Inspect viewer.scene.objects using a breakpoint or console log statement
viewer.scene.objects is empty and scene.setObjectsVisible does not change visibility of objects
Expected behavior viewer.scene.objects should be populated, and scene.setObjectsVisible should update the visibility of objects
Screenshots
xeokit-issue.mov
Desktop (please complete the following information):
OS: MacOS 14.4.1
Browser: Chrome
Version: 125.0.6422.61
Additional context
It appears the issue arises because the loadNode function in GLTFSceneModelLoader calls sceneModel.createEntity without specifying the isObject property in the config object (example here). Adding isObject: true to the config fixes the issue I am experiencing
The text was updated successfully, but these errors were encountered:
Is this bug fix critical for your commercial enterprise?
We have potential workarounds, but this affects required functionality for our application
Describe the bug
When loading a model in
.glb
or.gltf
format,scene. objects
is empty. This prevents the use of methods and properties such asscene.objectIds
andscene.setObjectsVisible
to show or isolate objects in the scene.To Reproduce
Steps to reproduce the behavior:
GLTFLoaderPlugin
, providing urls forsrc
andmetaModelSrc
viewer.scene.objects
using a breakpoint or console log statementviewer.scene.objects
is empty andscene.setObjectsVisible
does not change visibility of objectsExpected behavior
viewer.scene.objects
should be populated, andscene.setObjectsVisible
should update the visibility of objectsScreenshots
xeokit-issue.mov
Desktop (please complete the following information):
Additional context
It appears the issue arises because the
loadNode
function inGLTFSceneModelLoader
callssceneModel.createEntity
without specifying theisObject
property in the config object (example here). AddingisObject: true
to the config fixes the issue I am experiencingThe text was updated successfully, but these errors were encountered: