diff options
Diffstat (limited to 'js/components/tools-properties/fill-properties.reel/fill-properties.js')
-rwxr-xr-x | js/components/tools-properties/fill-properties.reel/fill-properties.js | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/js/components/tools-properties/fill-properties.reel/fill-properties.js b/js/components/tools-properties/fill-properties.reel/fill-properties.js index ae136956..7331b375 100755 --- a/js/components/tools-properties/fill-properties.reel/fill-properties.js +++ b/js/components/tools-properties/fill-properties.reel/fill-properties.js | |||
@@ -10,7 +10,6 @@ var Montage = require("montage/core/core").Montage, | |||
10 | 10 | ||
11 | var FillProperties = exports.FillProperties = Montage.create(ToolProperties, { | 11 | var FillProperties = exports.FillProperties = Montage.create(ToolProperties, { |
12 | 12 | ||
13 | _use3D: { value: false }, | ||
14 | addedColorChips: { value: false }, | 13 | addedColorChips: { value: false }, |
15 | 14 | ||
16 | _fill: { | 15 | _fill: { |
@@ -59,29 +58,17 @@ var FillProperties = exports.FillProperties = Montage.create(ToolProperties, { | |||
59 | 58 | ||
60 | _subPrepare: { | 59 | _subPrepare: { |
61 | value: function() { | 60 | value: function() { |
62 | Object.defineBinding(this._fillMaterial, "items", { | 61 | Object.defineBinding(this.fillMaterial, "items", { |
63 | boundObject: this.application.ninja.appModel, | 62 | boundObject: this.application.ninja.appModel, |
64 | boundObjectPropertyPath: "materials", | 63 | boundObjectPropertyPath: "materials", |
65 | oneway: false | 64 | oneway: false |
66 | }); | 65 | }); |
67 | |||
68 | this.handleChange(null); | ||
69 | this._useWebGL.addEventListener("change", this, false); | ||
70 | } | 66 | } |
71 | }, | 67 | }, |
72 | 68 | ||
73 | handleChange: { | 69 | handleAction: { |
74 | value: function(event) { | 70 | value: function(event) { |
75 | if(this._useWebGL.checked) | 71 | (this.useWebGL.checked) ? this._materialsContainer.style["display"] = "" : this._materialsContainer.style["display"] = "none"; |
76 | { | ||
77 | this._use3D = true; | ||
78 | this._materialsContainer.style["display"] = ""; | ||
79 | } | ||
80 | else | ||
81 | { | ||
82 | this._use3D = false; | ||
83 | this._materialsContainer.style["display"] = "none"; | ||
84 | } | ||
85 | } | 72 | } |
86 | } | 73 | } |
87 | }); \ No newline at end of file | 74 | }); \ No newline at end of file |