Browse Source

Don't dispatch Module::onUnsetPrimary() and Module::onSetPrimary() in setPrimaryModule() if module is already primary.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
90cf9af4a2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/engine/Engine.cpp

+ 2
- 0
src/engine/Engine.cpp View File

@@ -610,6 +610,8 @@ void Engine::stepBlock(int frames) {


void Engine::setPrimaryModule(Module* module) {
if (module == internal->primaryModule)
return;
WriteLock lock(internal->mutex);

if (internal->primaryModule) {


Loading…
Cancel
Save