UserDataNode.js 388 B

1234567891011121314151617181920212223
  1. import ReferenceNode from './ReferenceNode.js';
  2. class UserDataNode extends ReferenceNode {
  3. constructor( property, inputType, userData = null ) {
  4. super( property, inputType, userData );
  5. this.userData = userData;
  6. }
  7. update( frame ) {
  8. this.object = this.userData !== null ? this.userData : frame.object.userData;
  9. super.update( frame );
  10. }
  11. }
  12. export default UserDataNode;