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
399 B
23 lines
399 B
import ReferenceNode from './ReferenceNode.js';
|
|
|
|
class MaterialReferenceNode extends ReferenceNode {
|
|
|
|
constructor( property, inputType, material = null ) {
|
|
|
|
super( property, inputType, material );
|
|
|
|
this.material = material;
|
|
|
|
}
|
|
|
|
update( frame ) {
|
|
|
|
this.object = this.material !== null ? this.material : frame.material;
|
|
|
|
super.update( frame );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default MaterialReferenceNode;
|
|
|