BGE - button for deactivate sensors, controllers and actuators
[blender.git] / source / gameengine / Converter / KX_ConvertControllers.cpp
index ab5f1611cb9de43afad4bcc154e6a1330369fad7..cd7a560edad84b638b2c2df4c8081198ddd1ac48 100644 (file)
@@ -197,7 +197,7 @@ void BL_ConvertControllers(
                        }
                }
 
-               if (gamecontroller)
+               if (gamecontroller && !(bcontr->flag & CONT_DEACTIVATE))
                {
                        LinkControllerToActuators(gamecontroller,bcontr,logicmgr,converter);
                        gamecontroller->SetExecutePriority(executePriority++);