You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
388 B
23 lines
388 B
import ReferenceNode from './ReferenceNode.js';
|
|
|
|
class UserDataNode extends ReferenceNode {
|
|
|
|
constructor( property, inputType, userData = null ) {
|
|
|
|
super( property, inputType, userData );
|
|
|
|
this.userData = userData;
|
|
|
|
}
|
|
|
|
update( frame ) {
|
|
|
|
this.object = this.userData !== null ? this.userData : frame.object.userData;
|
|
|
|
super.update( frame );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default UserDataNode;
|
|
|