Explorar o código

Silence unnecessary LogicComponent warning at construction time; event subscription will be handled later when the component has access to the scene.

Lasse Öörni %!s(int64=10) %!d(string=hai) anos
pai
achega
56d1cbba1f
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      Source/Urho3D/Scene/LogicComponent.cpp

+ 0 - 3
Source/Urho3D/Scene/LogicComponent.cpp

@@ -108,10 +108,7 @@ void LogicComponent::UpdateEventSubscription()
 {
     Scene* scene = GetScene();
     if (!scene)
-    {
-        LOGWARNING("Node is detached from scene, can not subscribe to update events");
         return;
-    }
     
     bool enabled = IsEnabledEffective();