@archvisioninc/canvas 3.3.1 → 3.3.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.
|
@@ -316,7 +316,7 @@ export const updateMaterial = inboundData => {
|
|
|
316
316
|
material.name = newId;
|
|
317
317
|
if (Array.isArray(scene.metadata.selectedMaterials) && scene.metadata.selectedMaterials.length > 0) {
|
|
318
318
|
// We currently only support one selectedMaterial at a time so we should set the changed material to selected
|
|
319
|
-
|
|
319
|
+
newMetaDataEntry('selectedMaterials', [material]);
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
|
package/package.json
CHANGED
|
@@ -377,7 +377,7 @@ export const updateMaterial = inboundData => {
|
|
|
377
377
|
|
|
378
378
|
if (Array.isArray(scene.metadata.selectedMaterials) && scene.metadata.selectedMaterials.length > 0) {
|
|
379
379
|
// We currently only support one selectedMaterial at a time so we should set the changed material to selected
|
|
380
|
-
|
|
380
|
+
newMetaDataEntry('selectedMaterials', [ material ]);
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
|