@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
22 lines (21 loc) • 494 B
JavaScript
;
import { CoreGraphNode } from "../../../core/graph/CoreGraphNode";
export class BaseCopyStamp extends CoreGraphNode {
constructor(scene) {
super(scene, "CopyStamp");
}
reset() {
this.setGlobalIndex(0);
}
setGlobalIndex(index) {
const oldIndex = this._globalIndex;
this._globalIndex = index;
if (oldIndex != this._globalIndex) {
this.setDirty();
this.removeDirtyState();
}
}
value(attribName) {
return this._globalIndex;
}
}