aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Materials
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Materials')
-rwxr-xr-xjs/panels/Materials/materials-popup.reel/materials-popup.html2
-rwxr-xr-xjs/panels/Materials/materials-popup.reel/materials-popup.js7
2 files changed, 7 insertions, 2 deletions
diff --git a/js/panels/Materials/materials-popup.reel/materials-popup.html b/js/panels/Materials/materials-popup.reel/materials-popup.html
index d18599d6..bac722cd 100755
--- a/js/panels/Materials/materials-popup.reel/materials-popup.html
+++ b/js/panels/Materials/materials-popup.reel/materials-popup.html
@@ -43,7 +43,7 @@
43 "data": { 43 "data": {
44 "boundObject": {"@": "materialsProperties"}, 44 "boundObject": {"@": "materialsProperties"},
45 "boundObjectPropertyPath": "objectAtCurrentIteration", 45 "boundObjectPropertyPath": "objectAtCurrentIteration",
46 "oneway": false 46 "oneway": true
47 } 47 }
48 }, 48 },
49 "listeners": [ 49 "listeners": [
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 }