diff options
author | Jon Reid | 2012-03-15 15:01:15 -0700 |
---|---|---|
committer | Jon Reid | 2012-03-15 15:01:15 -0700 |
commit | 75dd0a2d333be1448f3f8bc0edd10f1c9199f84c (patch) | |
tree | f3a157f8cd92a8defb47edc68d8881db46f20586 /js/panels/properties.reel | |
parent | 21c941bd1fe55e511a72bfa5dc3019748158bd4a (diff) | |
parent | 68d82cb56cb0235599c46caf349f328f15300fdf (diff) | |
download | ninja-75dd0a2d333be1448f3f8bc0edd10f1c9199f84c.tar.gz |
Merge remote-tracking branch 'ninja-jduran/TimelineUber' into Timeline-local
Diffstat (limited to 'js/panels/properties.reel')
-rwxr-xr-x | js/panels/properties.reel/properties.js | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/js/panels/properties.reel/properties.js b/js/panels/properties.reel/properties.js index 947d7937..580d945d 100755 --- a/js/panels/properties.reel/properties.js +++ b/js/panels/properties.reel/properties.js | |||
@@ -283,7 +283,7 @@ exports.Properties = Montage.create(Component, { | |||
283 | this.customPi = el.elementModel.pi; | 283 | this.customPi = el.elementModel.pi; |
284 | this.displayCustomProperties(el, el.elementModel.pi); | 284 | this.displayCustomProperties(el, el.elementModel.pi); |
285 | } | 285 | } |
286 | 286 | var previousInput = this.application.ninja.colorController.colorModel.input; | |
287 | customPI = PiData[this.customPi]; | 287 | customPI = PiData[this.customPi]; |
288 | // Get all the custom section for the custom PI | 288 | // Get all the custom section for the custom PI |
289 | for(var i = 0, customSec; customSec = customPI[i]; i++) { | 289 | for(var i = 0, customSec; customSec = customPI[i]; i++) { |
@@ -352,6 +352,33 @@ exports.Properties = Montage.create(Component, { | |||
352 | } | 352 | } |
353 | } | 353 | } |
354 | } | 354 | } |
355 | this.application.ninja.colorController.colorModel.input = previousInput; | ||
356 | var color = this.application.ninja.colorController.colorModel.colorHistory[previousInput][this.application.ninja.colorController.colorModel.colorHistory[previousInput].length-1]; | ||
357 | color.c.wasSetByCode = true; | ||
358 | color.c.type = 'change'; | ||
359 | switch (color.m) { | ||
360 | case 'rgb': | ||
361 | this.application.ninja.colorController.colorModel.alpha = {value: color.a, wasSetByCode: true, type: 'change'}; | ||
362 | this.application.ninja.colorController.colorModel.rgb = color.c; | ||
363 | break; | ||
364 | case 'hsl': | ||
365 | this.application.ninja.colorController.colorModel.alpha = {value: color.a, wasSetByCode: true, type: 'change'}; | ||
366 | this.application.ninja.colorController.colorModel.hsl = color.c; | ||
367 | break; | ||
368 | case 'hex': | ||
369 | //TODO: Check if anything needed here | ||
370 | break; | ||
371 | case 'gradient': | ||
372 | this.application.ninja.colorController.colorModel.gradient = color.c; | ||
373 | break; | ||
374 | case 'hsv': | ||
375 | this.application.ninja.colorController.colorModel.alpha = {value: color.a, wasSetByCode: true, type: 'change'}; | ||
376 | this.application.ninja.colorController.colorModel.hsv = color.c; | ||
377 | break; | ||
378 | default: | ||
379 | this.application.ninja.colorController.colorModel.applyNoColor(); | ||
380 | break; | ||
381 | } | ||
355 | } | 382 | } |
356 | } | 383 | } |
357 | }, | 384 | }, |