aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties/fill-properties.reel/fill-properties.js
diff options
context:
space:
mode:
authorJonathan Duran2012-06-06 11:22:43 -0700
committerJonathan Duran2012-06-06 11:22:43 -0700
commit020a8147088f09547b7e84db2ada7c48f25c089f (patch)
tree5ec53061c4437d7a7cd8c983ef8a17aa6cfe0e19 /js/components/tools-properties/fill-properties.reel/fill-properties.js
parentb73cc6e348f3eb4cd57b5afeb7a6f5d3633b7e6b (diff)
parent18e212dca48066d1ddaca96875a3f40adcc859b6 (diff)
downloadninja-020a8147088f09547b7e84db2ada7c48f25c089f.tar.gz
Merge branch 'refs/heads/NINJAmaster' into TimelineUber
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