@archvisioninc/canvas 2.6.3 → 2.6.4
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,7 +182,8 @@ export const updateMaterial = inboundData => {
|
|
|
182
182
|
|
|
183
183
|
// Reset supported texture channels, useful when manually importing a new material.
|
|
184
184
|
if (clearTextureChannels) {
|
|
185
|
-
|
|
185
|
+
const workingMaterial = scene.metadata.materials.find(mat => mat.materialId === id);
|
|
186
|
+
Object.keys(workingMaterial)?.forEach(key => {
|
|
186
187
|
if (key.endsWith('Texture')) {
|
|
187
188
|
material[key] = null;
|
|
188
189
|
}
|
package/package.json
CHANGED
|
@@ -220,7 +220,9 @@ export const updateMaterial = inboundData => {
|
|
|
220
220
|
|
|
221
221
|
// Reset supported texture channels, useful when manually importing a new material.
|
|
222
222
|
if (clearTextureChannels) {
|
|
223
|
-
|
|
223
|
+
const workingMaterial = scene.metadata.materials.find(mat => mat.materialId === id);
|
|
224
|
+
|
|
225
|
+
Object.keys(workingMaterial)?.forEach(key => {
|
|
224
226
|
if (key.endsWith('Texture')) {
|
|
225
227
|
material[key] = null;
|
|
226
228
|
}
|