diff options
author | Jonathan Duran | 2012-06-19 08:40:26 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-06-19 08:40:26 -0700 |
commit | 6f25a2e70079de6bcbb8c3411ddef88c2ed1ea39 (patch) | |
tree | 253e5f6dd5923218e3155f78fa67ff3e43de0ebc /js/panels/properties.reel | |
parent | b51c9448bc187f9bfa3ab39c366657ec2bb9e2fb (diff) | |
parent | 483ad57efcd6475776f580c3af5b60e6deeaf781 (diff) | |
download | ninja-6f25a2e70079de6bcbb8c3411ddef88c2ed1ea39.tar.gz |
Merge branch 'refs/heads/NINJAmaster' into TimelineUber
Diffstat (limited to 'js/panels/properties.reel')
-rwxr-xr-x | js/panels/properties.reel/properties.js | 4 | ||||
-rwxr-xr-x | js/panels/properties.reel/sections/custom.reel/custom.js | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/js/panels/properties.reel/properties.js b/js/panels/properties.reel/properties.js index 4aaeda93..5719a63d 100755 --- a/js/panels/properties.reel/properties.js +++ b/js/panels/properties.reel/properties.js | |||
@@ -368,7 +368,7 @@ exports.Properties = Montage.create(Component, { | |||
368 | } | 368 | } |
369 | } else { | 369 | } else { |
370 | this.application.ninja.colorController.colorModel.alpha = {value: 1, wasSetByCode: true, type: 'change'}; | 370 | this.application.ninja.colorController.colorModel.alpha = {value: 1, wasSetByCode: true, type: 'change'}; |
371 | this.application.ninja.colorController.colorModel.applyNoColor(); | 371 | this.application.ninja.colorController.colorModel.applyNoColor(true); |
372 | } | 372 | } |
373 | } | 373 | } |
374 | } | 374 | } |
@@ -398,7 +398,7 @@ exports.Properties = Montage.create(Component, { | |||
398 | this.application.ninja.colorController.colorModel.hsv = color.c; | 398 | this.application.ninja.colorController.colorModel.hsv = color.c; |
399 | break; | 399 | break; |
400 | default: | 400 | default: |
401 | this.application.ninja.colorController.colorModel.applyNoColor(); | 401 | this.application.ninja.colorController.colorModel.applyNoColor(true); |
402 | break; | 402 | break; |
403 | } | 403 | } |
404 | } | 404 | } |
diff --git a/js/panels/properties.reel/sections/custom.reel/custom.js b/js/panels/properties.reel/sections/custom.reel/custom.js index c599dcb0..08434b01 100755 --- a/js/panels/properties.reel/sections/custom.reel/custom.js +++ b/js/panels/properties.reel/sections/custom.reel/custom.js | |||
@@ -116,7 +116,11 @@ exports.CustomSection = Montage.create(Component, { | |||
116 | value: function(event) { | 116 | value: function(event) { |
117 | // Change the stage color for now | 117 | // Change the stage color for now |
118 | //console.log(this, event); | 118 | //console.log(this, event); |
119 | ElementsMediator.setProperty([this.application.ninja.currentDocument.model.documentRoot], this.id, [event._event.color.css], "Change", "pi", ''); | 119 | if (event._event.color && event._event.color.css) { |
120 | ElementsMediator.setProperty([this.application.ninja.currentDocument.model.documentRoot], this.id, [event._event.color.css], "Change", "pi", ''); | ||
121 | } else { | ||
122 | ElementsMediator.setProperty([this.application.ninja.currentDocument.model.documentRoot], this.id, ['none'], "Change", "pi", ''); | ||
123 | } | ||
120 | /* | 124 | /* |
121 | var propEvent = document.createEvent("CustomEvent"); | 125 | var propEvent = document.createEvent("CustomEvent"); |
122 | propEvent.initEvent("propertyChange", true, true); | 126 | propEvent.initEvent("propertyChange", true, true); |