Fixed Actor not callind mAttachment->Connect if Actor::AddRenderer is called after... 39/43839/3
authorChu Hoang <c.hoang@samsung.com>
Tue, 14 Jul 2015 11:18:21 +0000 (12:18 +0100)
committerChu Hoang <c.hoang@samsung.com>
Tue, 14 Jul 2015 16:03:34 +0000 (09:03 -0700)
Change-Id: Icda4d33e0abae3b91c790076f82493c4062242d6

dali/internal/event/actors/actor-impl.cpp

index b55aae3..ccbd15e 100644 (file)
@@ -1420,6 +1420,10 @@ unsigned int Actor::AddRenderer( Renderer& renderer )
   if ( ! mAttachment )
   {
     mAttachment = RendererAttachment::New( GetEventThreadServices(), *mNode, renderer );
+    if( mIsOnStage )
+    {
+      mAttachment->Connect();
+    }
   }
 
   return 0;