X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fshader-effects%2Fmotion-stretch-effect.cpp;h=bc69f724ad8dfc49134b3745a40434cef551f988;hb=ac2e82e276fadecf2b202dd4841d0d497aca1df7;hp=eecf1d00cb699ecfb762920a6c410d2c4acc5202;hpb=4b38b709efae6ba534f7d336b70dabb74c804e03;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/shader-effects/motion-stretch-effect.cpp b/dali-toolkit/public-api/shader-effects/motion-stretch-effect.cpp index eecf1d0..bc69f72 100644 --- a/dali-toolkit/public-api/shader-effects/motion-stretch-effect.cpp +++ b/dali-toolkit/public-api/shader-effects/motion-stretch-effect.cpp @@ -22,6 +22,7 @@ #include #include #include +#include namespace Dali { @@ -98,12 +99,17 @@ MotionStretchEffect::~MotionStretchEffect() MotionStretchEffect MotionStretchEffect::Apply( RenderableActor renderable ) { MotionStretchEffect newEffect = New(); - renderable.SetShaderEffect( newEffect ); - Property::Index uModelProperty = newEffect.GetPropertyIndex( MOTION_STRETCH_MODELVIEW_LASTFRAME ); + ImageActor imageActor = ImageActor::DownCast(renderable); + if( imageActor ) + { + imageActor.SetShaderEffect( newEffect ); + } + + Dali::Property::Index uModelProperty = newEffect.GetPropertyIndex( MOTION_STRETCH_MODELVIEW_LASTFRAME ); Constraint constraint = Constraint::New( uModelProperty, - Source( renderable, Actor::WORLD_MATRIX ), + Source( renderable, Actor::Property::WorldMatrix ), EqualToConstraint() ); // and set up constraint.