UNPKG

polygonjs-engine

Version:

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

22 lines (17 loc) 520 B
import {AttribValue} from '../../../types/GlobalTypes'; import {CoreGraphNode} from '../../../core/graph/CoreGraphNode'; import {PolyScene} from '../../scene/PolyScene'; export class BaseCopyStamp extends CoreGraphNode { protected _global_index: number = 0; constructor(scene: PolyScene) { super(scene, 'CopyStamp'); } set_global_index(index: number) { this._global_index = index; this.setDirty(); this.removeDirtyState(); } value(attrib_name?: string): AttribValue { return this._global_index; } }