@archvisioninc/canvas 2.5.5 → 2.5.6

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.
@@ -233,7 +233,9 @@ export const updateMaterial = inboundData => {
233
233
  }
234
234
 
235
235
  // Normal/Bump
236
- if (bumpIntensity !== undefined && material?.bumpTexture) material.bumpTexture.level = bumpIntensity;
236
+ if (bumpIntensity !== undefined) {
237
+ material.bumpTexture.level = bumpIntensity;
238
+ }
237
239
  if (!_.isEmpty(bumpTexture)) {
238
240
  material.bumpTexture = newTexture(bumpTexture.src);
239
241
  material.bumpTexture.name = bumpTexture.name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archvisioninc/canvas",
3
- "version": "2.5.5",
3
+ "version": "2.5.6",
4
4
  "private": false,
5
5
  "main": "dist/Canvas.js",
6
6
  "module": "dist/Canvas.js",
@@ -266,7 +266,10 @@ export const updateMaterial = inboundData => {
266
266
  }
267
267
 
268
268
  // Normal/Bump
269
- if (bumpIntensity !== undefined && material?.bumpTexture) material.bumpTexture.level = bumpIntensity;
269
+ if (bumpIntensity !== undefined) {
270
+ material.bumpTexture.level = bumpIntensity;
271
+ }
272
+
270
273
  if (!_.isEmpty(bumpTexture)) {
271
274
  material.bumpTexture = newTexture(bumpTexture.src);
272
275
  material.bumpTexture.name = bumpTexture.name;