aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Tween.reel
diff options
context:
space:
mode:
authorJonathan Duran2012-05-14 23:08:24 -0700
committerJonathan Duran2012-05-14 23:08:24 -0700
commit13ebb58be961e92ba7c109298ef73daa7dea79c7 (patch)
tree262357a452bcf23d407682dd077c0982b576647c /js/panels/Timeline/Tween.reel
parentb38e020fb5e64c7d9a1d42c97393a0a84f9841a8 (diff)
downloadninja-13ebb58be961e92ba7c109298ef73daa7dea79c7.tar.gz
fix keyframe bug when adding keyframes to sub properties
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline/Tween.reel')
-rw-r--r--js/panels/Timeline/Tween.reel/Tween.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js
index bcd3d75f..846c2f1c 100644
--- a/js/panels/Timeline/Tween.reel/Tween.js
+++ b/js/panels/Timeline/Tween.reel/Tween.js
@@ -240,22 +240,18 @@ var Tween = exports.Tween = Montage.create(Component, {
240 240
241 setStyleTweenProperty:{ 241 setStyleTweenProperty:{
242 value:function (eventDetail) { 242 value:function (eventDetail) {
243 console.log("Setting style tween properties for: " + this.parentComponent.parentComponent.trackEditorProperty); 243 //console.log("Setting style tween properties for: " + this.parentComponent.parentComponent.trackEditorProperty);
244 console.log(eventDetail); 244 //console.log(eventDetail);
245 245
246 if(eventDetail.type == "setProperties"){ 246 if(eventDetail.type == "setProperties"){
247 // ignore top, left, width, and height 247 // ignore top, left, width, and height
248 console.log(eventDetail.data.value[0]); 248 console.log(eventDetail.data.value[0]);
249 this.tweenedProperties[this.parentComponent.parentComponent.trackEditorProperty] = eventDetail.data.value[0]; 249 this.tweenedProperties[this.parentComponent.parentComponent.trackEditorProperty] = eventDetail.data.value[0];
250 console.log(this.tweenedProperties); 250 console.log(this.tweenedProperties);
251
252 } else if(eventDetail.type == "setColor"){ 251 } else if(eventDetail.type == "setColor"){
253 console.log(eventDetail.data.value.color.css);
254 var prop = this.parentComponent.parentComponent.trackEditorProperty; 252 var prop = this.parentComponent.parentComponent.trackEditorProperty;
255 this.tweenedProperties[prop] = eventDetail.data.value.color.css; 253 this.tweenedProperties[prop] = eventDetail.data.value.color.css;
256 console.log(this.tweenedProperties[prop]);
257 this.parentComponent.parentComponent.updatePropKeyframeRule(); 254 this.parentComponent.parentComponent.updatePropKeyframeRule();
258
259 } else if(eventDetail.type == "setProperty"){ 255 } else if(eventDetail.type == "setProperty"){
260 // ignore top, left, width, and height 256 // ignore top, left, width, and height
261 console.log(eventDetail.data.value[0]); 257 console.log(eventDetail.data.value[0]);