@colijnit/homedecorator 259.1.7 → 259.1.8

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);
@@ -2441,6 +2441,7 @@
2441
2441
  function Item(rawMetadata, object, texture, handlers) {
2442
2442
  var _this = _super.call(this, rawMetadata, object, texture) || this;
2443
2443
  _this.rawMetadata = rawMetadata;
2444
+ _this._metadataSet = false;
2444
2445
  _this.obsolete = false;
2445
2446
  _this.highLightDisabled = false;
2446
2447
  _this.originalLength = 0;
@@ -2706,7 +2707,7 @@
2706
2707
  };
2707
2708
  Item.prototype.handleRawMetadata = function () {
2708
2709
  var rawMetadata = this.rawMetadata;
2709
- if (rawMetadata) {
2710
+ if (rawMetadata && !this._metadataSet) {
2710
2711
  this.initObject(rawMetadata.itemType, rawMetadata.itemId, rawMetadata.itemIdentifier, rawMetadata.modelUrl);
2711
2712
  if (rawMetadata.rotation) {
2712
2713
  if (rawMetadata.rotation instanceof THREE.Euler) {
@@ -2741,6 +2742,7 @@
2741
2742
  else {
2742
2743
  this.elevation = 0;
2743
2744
  }
2745
+ this._metadataSet = true;
2744
2746
  }
2745
2747
  this.calculateHalfSize();
2746
2748
  this.setYPositionBasedOnElevation();