diff options
Diffstat (limited to 'js/panels/Timeline/Tween.reel/Tween.js')
-rw-r--r-- | js/panels/Timeline/Tween.reel/Tween.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js index 0f567fbd..9ad88a69 100644 --- a/js/panels/Timeline/Tween.reel/Tween.js +++ b/js/panels/Timeline/Tween.reel/Tween.js | |||
@@ -299,6 +299,10 @@ var Tween = exports.Tween = Montage.create(Component, { | |||
299 | this.parentComponent.parentComponent.updateKeyframeRule(); | 299 | this.parentComponent.parentComponent.updateKeyframeRule(); |
300 | this.isTweenAnimated = true; | 300 | this.isTweenAnimated = true; |
301 | } | 301 | } |
302 | |||
303 | if(!this.parentComponent.parentComponent.enabled3D){ | ||
304 | this.parentComponent.parentComponent.initial3DforAllTweens(); | ||
305 | } | ||
302 | 306 | ||
303 | if (eventDetail.source === "translateTool" || eventDetail.source === "rotateTool") { | 307 | if (eventDetail.source === "translateTool" || eventDetail.source === "rotateTool") { |
304 | var arrMat = eventDetail.data.value[0].properties.mat, | 308 | var arrMat = eventDetail.data.value[0].properties.mat, |
@@ -308,6 +312,15 @@ var Tween = exports.Tween = Montage.create(Component, { | |||
308 | this.parentComponent.parentComponent.updateKeyframeRule(); | 312 | this.parentComponent.parentComponent.updateKeyframeRule(); |
309 | this.isTweenAnimated = true; | 313 | this.isTweenAnimated = true; |
310 | } | 314 | } |
315 | |||
316 | if(eventDetail.source === "pi" && eventDetail.type === "setMatrix"){ | ||
317 | var piArrMat = eventDetail.data.value, | ||
318 | piStrTweenProperty = "perspective(1400) matrix3d(" + piArrMat.join() + ")"; | ||
319 | |||
320 | this.tweenedProperties["-webkit-transform"] = piStrTweenProperty; | ||
321 | this.parentComponent.parentComponent.updateKeyframeRule(); | ||
322 | this.isTweenAnimated = true; | ||
323 | } | ||
311 | } | 324 | } |
312 | }, | 325 | }, |
313 | 326 | ||
@@ -373,6 +386,12 @@ var Tween = exports.Tween = Montage.create(Component, { | |||
373 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "left", [currentLeft], "Change", "tween"); | 386 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "left", [currentLeft], "Change", "tween"); |
374 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "width", [currentWidth], "Change", "tween"); | 387 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "width", [currentWidth], "Change", "tween"); |
375 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "height", [currentHeight], "Change", "tween"); | 388 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "height", [currentHeight], "Change", "tween"); |
389 | |||
390 | if(this.parentComponent.parentComponent.enabled3D){ | ||
391 | var current3DMatrix = this.tweenedProperties["-webkit-transform"]; | ||
392 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "-webkit-transform", [current3DMatrix], "Change", "tween"); | ||
393 | } | ||
394 | |||
376 | } | 395 | } |
377 | } | 396 | } |
378 | }, | 397 | }, |