aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline
diff options
context:
space:
mode:
authorJonathan Duran2012-07-24 10:06:08 -0700
committerJonathan Duran2012-07-24 10:06:08 -0700
commit57f5e9362d1f858495d20fbadd2c09fc39d1ffff (patch)
tree44e24eb6aadb2ac32d425216a379fc14e7efbf70 /js/panels/Timeline
parente7268388a99722dd7bb64506893538fd0ee96a71 (diff)
downloadninja-57f5e9362d1f858495d20fbadd2c09fc39d1ffff.tar.gz
FIX IK-1485
Fix 3D bug IK 1485 Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline')
-rw-r--r--js/panels/Timeline/Tween.reel/Tween.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js
index c9b59253..14ce3090 100644
--- a/js/panels/Timeline/Tween.reel/Tween.js
+++ b/js/panels/Timeline/Tween.reel/Tween.js
@@ -282,6 +282,8 @@ var Tween = exports.Tween = Montage.create(Component, {
282 // ==== Begin Controllers 282 // ==== Begin Controllers
283 setTweenProperties:{ 283 setTweenProperties:{
284 value:function (eventDetail) { 284 value:function (eventDetail) {
285 console.log("EVENT DETAIL");
286 console.log(eventDetail);
285 if (eventDetail.source === "SelectionTool" || eventDetail.source === "timeline" || eventDetail.source === "pi" || eventDetail.source === "cssPanelChange") { 287 if (eventDetail.source === "SelectionTool" || eventDetail.source === "timeline" || eventDetail.source === "pi" || eventDetail.source === "cssPanelChange") {
286 if(this.parentComponent.parentComponent.animatedElement.offsetTop != this.tweenedProperties["top"]){ 288 if(this.parentComponent.parentComponent.animatedElement.offsetTop != this.tweenedProperties["top"]){
287 this.tweenedProperties["top"] = this.parentComponent.parentComponent.animatedElement.offsetTop + "px"; 289 this.tweenedProperties["top"] = this.parentComponent.parentComponent.animatedElement.offsetTop + "px";
@@ -312,6 +314,15 @@ var Tween = exports.Tween = Montage.create(Component, {
312 this.parentComponent.parentComponent.updateKeyframeRule(); 314 this.parentComponent.parentComponent.updateKeyframeRule();
313 this.isTweenAnimated = true; 315 this.isTweenAnimated = true;
314 } 316 }
317
318 if(eventDetail.source === "pi" && eventDetail.type === "setMatrix"){
319 var piArrMat = eventDetail.data.value,
320 piStrTweenProperty = "perspective(1400) matrix3d(" + piArrMat.join() + ")";
321
322 this.tweenedProperties["-webkit-transform"] = piStrTweenProperty;
323 this.parentComponent.parentComponent.updateKeyframeRule();
324 this.isTweenAnimated = true;
325 }
315 } 326 }
316 }, 327 },
317 328