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.
24 lines
399 B
24 lines
399 B
2 years ago
|
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;
|