Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Regression] metaModel is no longer available in metaObjects #1705

Open
hamza-hajji opened this issue Oct 22, 2024 · 0 comments
Open

[Regression] metaModel is no longer available in metaObjects #1705

hamza-hajji opened this issue Oct 22, 2024 · 0 comments

Comments

@hamza-hajji
Copy link
Contributor

Describe the bug
Meta model is no longer available in meta objects

To Reproduce
Steps to reproduce the behavior:

Render the example XKT model

const viewer = new Viewer({
  canvasId: "myCanvas",
  transparent: true,
  saoEnabled: false,
});

viewer.scene.camera.eye = [
  14.915582703146043, 14.396781491179095, 5.431098754133695,
];
viewer.scene.camera.look = [
  6.599999999999998, 8.34099990051474, -4.159999575600315,
];
viewer.scene.camera.up = [
  -0.2820584034861215, 0.9025563895259413, -0.3253229483893775,
];

const xktLoader = new XKTLoaderPlugin(viewer);

const sceneModel = xktLoader.load({
  id: "myModel",
  src: "./models/Duplex_A_20110505.glTFEmbedded.xkt",
  saoEnabled: false,
  edges: true,
  dtxEnabled: true,
});

Try to log any metaObject viewer.metaScene.metaObjects['06uoIsbYr35x9JXU7VZ77u'], its metaModel is null

Expected behavior
The meta model is there

Screenshots
If applicable, add screenshots to help explain your problem.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant