@colijnit/homedecorator 260.1.2 → 260.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.
@@ -12,6 +12,7 @@ import { ChildParams } from '../../../core/interface/child-params.interface';
12
12
  */
13
13
  export declare class Item extends BaseItem {
14
14
  rawMetadata: Metadata;
15
+ private _metadataSet;
15
16
  set allwaysConfigureMode(value: boolean);
16
17
  get allwaysConfigureMode(): boolean;
17
18
  set configuring(value: boolean);
@@ -1881,6 +1881,7 @@
1881
1881
  function Item(rawMetadata, object, texture, handlers) {
1882
1882
  var _this = _super.call(this, rawMetadata, object, texture) || this;
1883
1883
  _this.rawMetadata = rawMetadata;
1884
+ _this._metadataSet = false;
1884
1885
  _this.obsolete = false;
1885
1886
  _this.highLightDisabled = false;
1886
1887
  _this.originalLength = 0;
@@ -2184,7 +2185,7 @@
2184
2185
  };
2185
2186
  Item.prototype.handleRawMetadata = function () {
2186
2187
  var rawMetadata = this.rawMetadata;
2187
- if (rawMetadata) {
2188
+ if (rawMetadata && !this._metadataSet) {
2188
2189
  this.initObject(rawMetadata.itemType, rawMetadata.itemId, rawMetadata.itemIdentifier, rawMetadata.modelUrl);
2189
2190
  if (rawMetadata.rotation) {
2190
2191
  if (rawMetadata.rotation instanceof THREE.Euler) {
@@ -2219,6 +2220,7 @@
2219
2220
  else {
2220
2221
  this.elevation = 0;
2221
2222
  }
2223
+ this._metadataSet = true;
2222
2224
  }
2223
2225
  this.calculateHalfSize();
2224
2226
  this.setYPositionBasedOnElevation();