@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
21 lines (20 loc) • 450 B
JavaScript
;
import { NamedFunction1 } from "./_Base";
export function dummyReadRefVal(value) {
}
function _getNode(scene, nodePath) {
dummyReadRefVal(scene.graphNodesController.pathRef(nodePath).value);
const node = scene.node(nodePath);
if (!node) {
return;
}
return node;
}
export class getNode extends NamedFunction1 {
static type() {
return "getNode";
}
func(nodePath) {
return _getNode(this.scene, nodePath);
}
}