@archvisioninc/canvas 3.1.2 → 3.1.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.
@@ -450,7 +450,7 @@ export const updateMaterial = inboundData => {
450
450
  }
451
451
 
452
452
  // Ambient
453
- if (ambientColor) material.ambientColor = newColor(emissiveColor);
453
+ if (ambientColor) material.ambientColor = newColor(ambientColor);
454
454
  if (ambientTextureStrength !== undefined) material.ambientTextureStrength = ambientTextureStrength;
455
455
  if (!_.isEmpty(ambientTexture?.src || ambientTexture?.url)) {
456
456
  material.ambientTexture = newTexture(ambientTexture?.src || ambientTexture?.url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archvisioninc/canvas",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "private": false,
5
5
  "main": "dist/Canvas.js",
6
6
  "module": "dist/Canvas.js",
@@ -506,7 +506,7 @@ export const updateMaterial = inboundData => {
506
506
  }
507
507
 
508
508
  // Ambient
509
- if (ambientColor) material.ambientColor = newColor(emissiveColor);
509
+ if (ambientColor) material.ambientColor = newColor(ambientColor);
510
510
  if (ambientTextureStrength !== undefined) material.ambientTextureStrength = ambientTextureStrength;
511
511
  if (!_.isEmpty(ambientTexture?.src || ambientTexture?.url)) {
512
512
  material.ambientTexture = newTexture(ambientTexture?.src || ambientTexture?.url);