Get renderer to force update #2592
-
Hi guys, I would like to access the modelViewer.addEventListener(
"load",
(event) => {
sceneObj = Object.getOwnPropertySymbols(modelViewer).find(
(x) => x.description === "scene"
);
controls = Object.getOwnPropertySymbols(modelViewer).find(
(x) => x.description === "controls"
);
controls = modelViewer[controls];
scene = modelViewer[sceneObj];
) But I am not able to get the The problem is that when I disable interaction, no frame is being rendered. transformControls.addEventListener("dragging-changed", function (event) {
if (controls.interactionEnabled) {
controls.disableInteraction();
} else {
controls.enableInteraction();
}
}); I would like to transformControls.addEventListener("change", () => {renderer.render(...)}); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Well, hopefully you already know this, but for anyone else reading this, Symbols are our way of denoting private members within the non-private nature of JS. Therefore this is outside of our public API and I make no promises about stability. However, feel free to enjoy hacking! I think you might like to call |
Beta Was this translation helpful? Give feedback.
Well, hopefully you already know this, but for anyone else reading this, Symbols are our way of denoting private members within the non-private nature of JS. Therefore this is outside of our public API and I make no promises about stability. However, feel free to enjoy hacking! I think you might like to call
modelviewer[$needsRender]()
.