Lines 121-126
define( [ 'resources' ], function( Resources ) {
Link Here
|
121 |
materialInfo[ $(this).attr('id') ] = this; |
121 |
materialInfo[ $(this).attr('id') ] = this; |
122 |
} ); |
122 |
} ); |
123 |
|
123 |
|
|
|
124 |
if (widget.getMaterial) { |
125 |
const material = widget.getMaterial(); |
126 |
if (material) { |
127 |
$matSelect.val(material); |
128 |
} |
129 |
} |
130 |
|
124 |
$matSelect.change( function() { |
131 |
$matSelect.change( function() { |
125 |
widget.loadXMLMaterial( materialInfo[ $matSelect.val() ] ); |
132 |
widget.loadXMLMaterial( materialInfo[ $matSelect.val() ] ); |
126 |
widget.nodeChanged(); |
133 |
widget.nodeChanged(); |