diff options
Diffstat (limited to 'js/panels/Materials/materials-popup.reel/materials-popup.js')
-rwxr-xr-x | js/panels/Materials/materials-popup.reel/materials-popup.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/panels/Materials/materials-popup.reel/materials-popup.js b/js/panels/Materials/materials-popup.reel/materials-popup.js index 1237e602..db3f7652 100755 --- a/js/panels/Materials/materials-popup.reel/materials-popup.js +++ b/js/panels/Materials/materials-popup.reel/materials-popup.js | |||
@@ -681,6 +681,11 @@ exports.MaterialsPopup = Montage.create(Component, { | |||
681 | } | 681 | } |
682 | ] | 682 | ] |
683 | }, | 683 | }, |
684 | |||
685 | materialsProperties: { | ||
686 | serializable: true, | ||
687 | value: null | ||
688 | }, | ||
684 | 689 | ||
685 | _materialsData: { | 690 | _materialsData: { |
686 | enumerable: true, | 691 | enumerable: true, |
@@ -697,7 +702,7 @@ exports.MaterialsPopup = Montage.create(Component, { | |||
697 | }, | 702 | }, |
698 | set: function(data) { | 703 | set: function(data) { |
699 | this._materialsData = data; | 704 | this._materialsData = data; |
700 | if(this.materialsProperties) | 705 | if(this.materialsProperties && data.length) |
701 | { | 706 | { |
702 | this.materialsProperties.needsDraw = true; | 707 | this.materialsProperties.needsDraw = true; |
703 | } | 708 | } |