Browse Source

Actor::onAdded2Stage called at the end

dmuratshin 9 years ago
parent
commit
b1dfd06fd2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      oxygine/src/Actor.cpp

+ 2 - 2
oxygine/src/Actor.cpp

@@ -105,8 +105,6 @@ namespace oxygine
         OX_ASSERT(_stage == 0);
         _stage = stage;
 
-        onAdded2Stage();
-
         spActor actor = _children._first;
         while (actor)
         {
@@ -114,6 +112,8 @@ namespace oxygine
             actor->added2stage(stage);
             actor = next;
         }
+
+        onAdded2Stage();
     }
 
     void Actor::removedFromStage()