From 57f5e9362d1f858495d20fbadd2c09fc39d1ffff Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Tue, 24 Jul 2012 10:06:08 -0700 Subject: FIX IK-1485 Fix 3D bug IK 1485 Signed-off-by: Jonathan Duran --- js/panels/Timeline/Tween.reel/Tween.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'js/panels/Timeline/Tween.reel/Tween.js') 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, { // ==== Begin Controllers setTweenProperties:{ value:function (eventDetail) { + console.log("EVENT DETAIL"); + console.log(eventDetail); if (eventDetail.source === "SelectionTool" || eventDetail.source === "timeline" || eventDetail.source === "pi" || eventDetail.source === "cssPanelChange") { if(this.parentComponent.parentComponent.animatedElement.offsetTop != this.tweenedProperties["top"]){ this.tweenedProperties["top"] = this.parentComponent.parentComponent.animatedElement.offsetTop + "px"; @@ -312,6 +314,15 @@ var Tween = exports.Tween = Montage.create(Component, { this.parentComponent.parentComponent.updateKeyframeRule(); this.isTweenAnimated = true; } + + if(eventDetail.source === "pi" && eventDetail.type === "setMatrix"){ + var piArrMat = eventDetail.data.value, + piStrTweenProperty = "perspective(1400) matrix3d(" + piArrMat.join() + ")"; + + this.tweenedProperties["-webkit-transform"] = piStrTweenProperty; + this.parentComponent.parentComponent.updateKeyframeRule(); + this.isTweenAnimated = true; + } } }, -- cgit v1.2.3 From 4f0b38baec63b4d1a666d1d9b4e5720553de2983 Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Tue, 24 Jul 2012 10:26:27 -0700 Subject: Remove console logs Signed-off-by: Jonathan Duran --- js/panels/Timeline/Tween.reel/Tween.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'js/panels/Timeline/Tween.reel/Tween.js') diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js index 14ce3090..9ad88a69 100644 --- a/js/panels/Timeline/Tween.reel/Tween.js +++ b/js/panels/Timeline/Tween.reel/Tween.js @@ -282,8 +282,6 @@ var Tween = exports.Tween = Montage.create(Component, { // ==== Begin Controllers setTweenProperties:{ value:function (eventDetail) { - console.log("EVENT DETAIL"); - console.log(eventDetail); if (eventDetail.source === "SelectionTool" || eventDetail.source === "timeline" || eventDetail.source === "pi" || eventDetail.source === "cssPanelChange") { if(this.parentComponent.parentComponent.animatedElement.offsetTop != this.tweenedProperties["top"]){ this.tweenedProperties["top"] = this.parentComponent.parentComponent.animatedElement.offsetTop + "px"; -- cgit v1.2.3