From 5ab7e0c56b9e9ea33eef64734ba403d16662df36 Mon Sep 17 00:00:00 2001 From: Lee Morgan Date: Fri, 23 Oct 2015 13:38:18 +0100 Subject: [PATCH] Path registration with type registry Change-Id: I7d8c34e8a7822dc76129e0da008c99b0b27094c3 --- dali/internal/event/animation/path-impl.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dali/internal/event/animation/path-impl.cpp b/dali/internal/event/animation/path-impl.cpp index ad34ce7..afd9d99 100644 --- a/dali/internal/event/animation/path-impl.cpp +++ b/dali/internal/event/animation/path-impl.cpp @@ -24,6 +24,7 @@ // INTERNAL INCLUDES #include #include +#include namespace Dali { @@ -61,6 +62,14 @@ const float BezierBasisCoeff[] = { -1.0f, 3.0f, -3.0f, 1.0f, const Dali::Matrix BezierBasis = Dali::Matrix( BezierBasisCoeff ); + +Dali::BaseHandle Create() +{ + return Dali::Path::New(); +} + +Dali::TypeRegistration mType( typeid(Dali::Path), typeid(Dali::Handle), Create ); + } //Unnamed namespace Path* Path::New() -- 2.7.4