UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

12 lines (10 loc) 255 B
import {Object3D} from 'three'; import {ObjectNamedFunction0} from './_Base'; export class getParent extends ObjectNamedFunction0 { static override type() { return 'getParent'; } func(object3D: Object3D) { return object3D.parent || object3D; } }