@archvisioninc/canvas 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -182,12 +182,11 @@ export const updateMaterial = inboundData => {
|
|
|
182
182
|
|
|
183
183
|
// Reset supported texture channels, useful when manually importing a new material.
|
|
184
184
|
if (clearTextureChannels) {
|
|
185
|
-
material.
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
material.opacityTexture = null;
|
|
185
|
+
Object.keys(material).forEach(key => {
|
|
186
|
+
if (key.endsWith('Texture')) {
|
|
187
|
+
material[key] = null;
|
|
188
|
+
}
|
|
189
|
+
});
|
|
191
190
|
}
|
|
192
191
|
|
|
193
192
|
// Back-face culling
|
package/package.json
CHANGED
|
@@ -220,12 +220,11 @@ export const updateMaterial = inboundData => {
|
|
|
220
220
|
|
|
221
221
|
// Reset supported texture channels, useful when manually importing a new material.
|
|
222
222
|
if (clearTextureChannels) {
|
|
223
|
-
material.
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
material.opacityTexture = null;
|
|
223
|
+
Object.keys(material).forEach(key => {
|
|
224
|
+
if (key.endsWith('Texture')) {
|
|
225
|
+
material[key] = null;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
229
228
|
}
|
|
230
229
|
|
|
231
230
|
// Back-face culling
|