X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fbouncing-effect-actor.cpp;h=86ade19428c2fffe527aba5cda2e87819417afe8;hp=4e3bb677adb3a062bac7e2510984981d541a56b0;hb=8fef10ea440a32a1536b485dc7a035f9defa537c;hpb=1c3cb32385174b852b8d57b531625f733238f664 diff --git a/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.cpp b/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.cpp index 4e3bb67..86ade19 100644 --- a/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.cpp +++ b/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.cpp @@ -19,14 +19,14 @@ #include // EXTERNAL INCLUDES +#include #include -#include +#include #include +#include #include #include -#include - namespace Dali { @@ -96,7 +96,6 @@ Actor CreateBouncingEffectActor( Property::Index& bouncePropertyIndex ) } meshActor = Dali::MeshActor::New(mesh); - meshActor.SetAffectedByLighting(false); Dali::ShaderEffect shaderEffect = Dali::ShaderEffect::New( "", MESH_FRAGMENT_SHADER, GEOMETRY_TYPE_UNTEXTURED_MESH, @@ -108,10 +107,10 @@ Actor CreateBouncingEffectActor( Property::Index& bouncePropertyIndex ) for( size_t i=0;i( mesh.GetPropertyIndex(j+2, AnimatableVertex::POSITION ), + mesh.ApplyConstraint( Constraint::New( mesh.GetPropertyIndex(j+2, AnimatableVertex::Property::POSITION ), Source(meshActor, bouncePropertyIndex), VertexPositionConstraint(-0.5f, LAYER_HEIGHTS[i]) ) ); - mesh.ApplyConstraint( Constraint::New( mesh.GetPropertyIndex(j+3, AnimatableVertex::POSITION), + mesh.ApplyConstraint( Constraint::New( mesh.GetPropertyIndex(j+3, AnimatableVertex::Property::POSITION), Source(meshActor, bouncePropertyIndex), VertexPositionConstraint(-0.5f, LAYER_HEIGHTS[i]) ) ); }