}
}
-void ActorParentImpl::RecursiveConnectToScene(ActorContainer& connectionList, uint32_t layer3DParentsCount, uint32_t depth)
+void ActorParentImpl::RecursiveConnectToScene(ActorContainer& connectionList, uint32_t depth)
{
DALI_ASSERT_ALWAYS(!mOwner.OnScene());
- if(mOwner.mIsLayer)
- {
- if(static_cast<Dali::Internal::Layer*>(&mOwner)->GetBehavior() == Dali::Layer::Behavior::LAYER_3D)
- {
- // This is 3d layer. Propagate it to all children.
- ++layer3DParentsCount;
- }
- }
-
- mOwner.mIsOnScene = true;
- mOwner.mDepth = static_cast<uint16_t>(depth); // overflow ignored, not expected in practice
- mOwner.mLayer3DParentsCount = static_cast<uint16_t>(layer3DParentsCount); // overflow ignored, not expected in practice
+ mOwner.mIsOnScene = true;
+ mOwner.mDepth = static_cast<uint16_t>(depth); // overflow ignored, not expected in practice
mOwner.ConnectToSceneGraph();
// Notification for internal derived classes
for(const auto& actor : *mChildren)
{
actor->SetScene(*mOwner.mScene);
- actor->mParentImpl.RecursiveConnectToScene(connectionList, layer3DParentsCount, depth + 1);
+ actor->mParentImpl.RecursiveConnectToScene(connectionList, depth + 1);
}
}
}
void ActorParentImpl::RecursiveDisconnectFromScene(ActorContainer& disconnectionList)
{
// need to change state first so that internals relying on IsOnScene() inside OnSceneDisconnectionInternal() get the correct value
- mOwner.mIsOnScene = false;
- mOwner.mScene = nullptr;
- mOwner.mLayer3DParentsCount = 0;
+ mOwner.mIsOnScene = false;
+ mOwner.mScene = nullptr;
// Recursively disconnect children
if(mChildren)
mOwner.DisconnectFromSceneGraph();
}
-void ActorParentImpl::RecursiveChangeLayer3dCount(int32_t layer3DParentsCountDiff)
-{
- mOwner.mLayer3DParentsCount += layer3DParentsCountDiff; // overflow ignored, not expected in practice
-
- // Recursively change the value
- if(mChildren)
- {
- for(const auto& actor : *mChildren)
- {
- actor->mParentImpl.RecursiveChangeLayer3dCount(layer3DParentsCountDiff);
- }
- }
-}
-
void ActorParentImpl::InheritLayoutDirectionRecursively(Dali::LayoutDirection::Type direction, bool set)
{
if(mOwner.mInheritLayoutDirection || set)