Browse Source

Merge pull request #426 from AtomicGameEngine/JME-ATOMIC-424

Check if launched by editor
JoshEngebretson 10 years ago
parent
commit
9681ff7263
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/AtomicEditor/PlayerMode/AEPlayerMode.cpp

+ 1 - 1
Source/AtomicEditor/PlayerMode/AEPlayerMode.cpp

@@ -204,7 +204,7 @@ void PlayerMode::HandleViewRender(StringHash eventType, VariantMap& eventData)
 // BEGIN LICENSE MANAGEMENT
 // BEGIN LICENSE MANAGEMENT
     static bool done = false;
     static bool done = false;
 
 
-    if (licenseModule3D_)
+    if (!launchedByEditor_ || licenseModule3D_)
         return;
         return;
 
 
     Camera* camera = static_cast<Camera*>(eventData[BeginViewRender::P_CAMERA].GetPtr());
     Camera* camera = static_cast<Camera*>(eventData[BeginViewRender::P_CAMERA].GetPtr());