aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties/fill-properties.reel/fill-properties.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-05 15:20:13 -0700
committerValerio Virgillito2012-06-05 15:20:13 -0700
commitb23a684a6aba38946867463bbbf4184ba2a2ff4a (patch)
treeda14f63082178ca11c908c008d475ac2d20006c2 /js/components/tools-properties/fill-properties.reel/fill-properties.js
parent783097854612a292ac1be18ff15d88343013f773 (diff)
parent7b02dcf3ae97674bd8d87ad9909abcb439350b61 (diff)
downloadninja-b23a684a6aba38946867463bbbf4184ba2a2ff4a.tar.gz
Merge pull request #267 from mqg734/ToolOptions
Updated ink bottle and fill tools to support tool options checkboxes and materials.
Diffstat (limited to 'js/components/tools-properties/fill-properties.reel/fill-properties.js')
-rwxr-xr-xjs/components/tools-properties/fill-properties.reel/fill-properties.js19
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
11var FillProperties = exports.FillProperties = Montage.create(ToolProperties, { 11var 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