File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,13 @@ Object.assign(MaterialHandler.prototype, {
106
106
107
107
// this should only happen in the editor?
108
108
if ( subclass == 'Node' && ! ( asset . resource instanceof NodeMaterial ) ) {
109
- if ( asset . resource instanceof StandardMaterial ) {
109
+ // TODO: Migrate standard material data to node material data
110
+ // if (asset.resource instanceof StandardMaterial) {
110
111
// migrate from StandardMaterial
111
- asset . resource = this . _parsers [ subclass ] . parse ( asset . data , true ) ;
112
- } else {
113
- asset . resource = this . _parsers [ subclass ] . parse ( asset . data ) ;
114
- }
112
+ // asset.resource = this._parsers[subclass].parse(asset.data, true);
113
+ // } else {
114
+ asset . resource = this . _parsers [ subclass ] . parse ( asset . data ) ;
115
+ // }
115
116
} else if ( subclass == 'Standard' && ! ( asset . resource instanceof StandardMaterial ) ) {
116
117
asset . resource = this . _parsers [ subclass ] . parse ( asset . data ) ;
117
118
}
You can’t perform that action at this time.
0 commit comments