Quellcode durchsuchen

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

Lasse Öörni vor 10 Jahren
Ursprung
Commit
56d1cbba1f
1 geänderte Dateien mit 0 neuen und 3 gelöschten Zeilen
  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();
     Scene* scene = GetScene();
     if (!scene)
     if (!scene)
-    {
-        LOGWARNING("Node is detached from scene, can not subscribe to update events");
         return;
         return;
-    }
     
     
     bool enabled = IsEnabledEffective();
     bool enabled = IsEnabledEffective();