diff options
author | Jon Reid | 2012-02-23 17:10:08 -0800 |
---|---|---|
committer | Jon Reid | 2012-02-23 17:10:08 -0800 |
commit | 5570a42a3220a14a614b6dd52fe530e8f436c8b0 (patch) | |
tree | e368f458b89dc20b25a6f09157a3c9ab62307257 /js/panels/properties/content.reel | |
parent | 0b18fb2fef124a26204d5dba90cd82c975b69df3 (diff) | |
parent | db2fd02a1b0e909bb536fa63cefd2144f4642ead (diff) | |
download | ninja-5570a42a3220a14a614b6dd52fe530e8f436c8b0.tar.gz |
Merge remote-tracking branch 'ninja-internal/master' into Timeline-local
Conflicts:
js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
Diffstat (limited to 'js/panels/properties/content.reel')
-rwxr-xr-x | js/panels/properties/content.reel/content.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/js/panels/properties/content.reel/content.js b/js/panels/properties/content.reel/content.js index 9b6416c7..8fa33a75 100755 --- a/js/panels/properties/content.reel/content.js +++ b/js/panels/properties/content.reel/content.js | |||
@@ -255,6 +255,12 @@ exports.Content = Montage.create(Component, { | |||
255 | 255 | ||
256 | if(currentValue) | 256 | if(currentValue) |
257 | { | 257 | { |
258 | if(currentValue.color) | ||
259 | { | ||
260 | currentValue.color.wasSetByCode = true; | ||
261 | currentValue.color.type = "change"; | ||
262 | } | ||
263 | |||
258 | if(currentValue.mode === "gradient") | 264 | if(currentValue.mode === "gradient") |
259 | { | 265 | { |
260 | this.application.ninja.colorController.colorModel["gradient"] = | 266 | this.application.ninja.colorController.colorModel["gradient"] = |
@@ -267,7 +273,14 @@ exports.Content = Montage.create(Component, { | |||
267 | this.application.ninja.colorController.colorModel.alpha = | 273 | this.application.ninja.colorController.colorModel.alpha = |
268 | {value: currentValue.color.a, wasSetByCode: true, type: 'change'}; | 274 | {value: currentValue.color.a, wasSetByCode: true, type: 'change'}; |
269 | } | 275 | } |
270 | this.application.ninja.colorController.colorModel[currentValue.color.mode] = currentValue.color; | 276 | if(currentValue.color.mode) |
277 | { | ||
278 | this.application.ninja.colorController.colorModel[currentValue.color.mode] = currentValue.color; | ||
279 | } | ||
280 | else | ||
281 | { | ||
282 | this.application.ninja.colorController.colorModel["rgb"] = currentValue.color; | ||
283 | } | ||
271 | } | 284 | } |
272 | } | 285 | } |
273 | else | 286 | else |