Skip to content

Commit fdfdf58

Browse files
committed
disable WIP to migrate Standard material to Node material - add TODO
1 parent ec26c52 commit fdfdf58

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/resources/material.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,13 @@ Object.assign(MaterialHandler.prototype, {
106106

107107
// this should only happen in the editor?
108108
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) {
110111
// 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+
// }
115116
} else if (subclass == 'Standard' && !(asset.resource instanceof StandardMaterial)) {
116117
asset.resource = this._parsers[subclass].parse(asset.data);
117118
}

0 commit comments

Comments
 (0)