We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f25cb5b commit d8aa85dCopy full SHA for d8aa85d
libs/soba/misc/src/lib/intersect.ts
@@ -22,7 +22,7 @@ export function injectIntersect<TObject extends THREE.Object3D>(
22
});
23
24
// If the object is inside the frustum three will call onRender
25
- const oldOnRender = obj.onBeforeRender.bind(obj);
+ const oldOnRender = obj.onBeforeRender?.bind(obj);
26
obj.onBeforeRender = () => (check = true);
27
28
// Compare the check value against the temp value, if it differs set state
0 commit comments