BGE: bookmark option on controller to make them run before all other controllers.
[blender.git] / source / gameengine / Converter / KX_ConvertControllers.cpp
index 9b0e27b573a422634bb2393bf13285fecacdc6c5..85ab8e4f8b8d7e59c877f0ccbaabd4d0c39df1fc 100644 (file)
@@ -199,6 +199,7 @@ void BL_ConvertControllers(
                {
                        LinkControllerToActuators(gamecontroller,bcontr,logicmgr,converter);
                        gamecontroller->SetExecutePriority(executePriority++);
+                       gamecontroller->SetBookmark((bcontr->flag & CONT_PRIO) != 0);
                        gamecontroller->SetState(bcontr->state_mask);
                        STR_String uniquename = bcontr->name;
                        uniquename += "#CONTR#";