Path registration with type registry 04/50104/2
authorLee Morgan <Lee.morgan@partner.samsung.com>
Fri, 23 Oct 2015 12:38:18 +0000 (13:38 +0100)
committerLee Morgan <Lee.morgan@partner.samsung.com>
Fri, 23 Oct 2015 13:19:54 +0000 (14:19 +0100)
Change-Id: I7d8c34e8a7822dc76129e0da008c99b0b27094c3

dali/internal/event/animation/path-impl.cpp

index ad34ce7..afd9d99 100644 (file)
@@ -24,6 +24,7 @@
 // INTERNAL INCLUDES
 #include <dali/internal/event/common/property-helper.h>
 #include <dali/public-api/object/property-array.h>
+#include <dali/public-api/object/type-registry.h>
 
 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()