redhotmagma-visualization 1.35.3 → 1.35.5

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.
package/Three/Three2D.js CHANGED
@@ -1135,10 +1135,11 @@ var Three2D = /*#__PURE__*/function (_ThreeBase) {
1135
1135
  key: "getModelPathFromDesignView",
1136
1136
  value: function getModelPathFromDesignView(designView) {
1137
1137
  var images = (0, _get2["default"])(designView, "images");
1138
+ var isImageArray = images instanceof Array;
1138
1139
 
1139
- if (this._materialVariantPath && images.hasOwnProperty(this._materialVariantPath)) {
1140
+ if (images && !isImageArray && this._materialVariantPath && images.hasOwnProperty(this._materialVariantPath)) {
1140
1141
  return images[this._materialVariantPath];
1141
- } else if (images.hasOwnProperty(this._itemPath)) {
1142
+ } else if (images && !isImageArray && images.hasOwnProperty(this._itemPath)) {
1142
1143
  return images[this._itemPath];
1143
1144
  } else {
1144
1145
  return this._materialVariantPath ? (0, _get2["default"])(designView, "images[".concat(this._materialVariantPath, "]")) : (0, _get2["default"])(designView, "images[".concat(this._itemPath, "]"));
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "redhotmagma-visualization",
3
- "version": "1.35.3",
3
+ "version": "1.35.5",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
6
  "main": "./index.js",
7
7
  "dependencies": {
8
8
  "@babel/polyfill": "^7.12.1",
9
- "@configuratorware/scripts": "1.35.3",
9
+ "@configuratorware/scripts": "1.35.5",
10
10
  "@tweenjs/tween.js": "^17.6.0",
11
11
  "console-polyfill": "^0.3.0",
12
12
  "css-element-queries": "^1.2.3",
@@ -642,9 +642,10 @@ export class Three2D extends ThreeBase {
642
642
 
643
643
  getModelPathFromDesignView(designView) {
644
644
  const images = get(designView, "images");
645
- if (this._materialVariantPath && images.hasOwnProperty(this._materialVariantPath)) {
645
+ const isImageArray = images instanceof Array;
646
+ if (images && !isImageArray && this._materialVariantPath && images.hasOwnProperty(this._materialVariantPath)) {
646
647
  return images[this._materialVariantPath];
647
- } else if (images.hasOwnProperty(this._itemPath)) {
648
+ } else if (images && !isImageArray && images.hasOwnProperty(this._itemPath)) {
648
649
  return images[this._itemPath];
649
650
  } else {
650
651
  return this._materialVariantPath