svn merge -r 15392:15551 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / gameengine / Converter / KX_ConvertSensors.cpp
index e7e4eeae7d2a801cb23e3325fc76429027ce6187..7c9df688d45ca4819915b8071b2b5cdb4db09b47 100644 (file)
@@ -64,6 +64,7 @@ probably misplaced */
 #include "KX_MouseFocusSensor.h"
 #include "SCA_JoystickSensor.h"
 #include "KX_NetworkMessageSensor.h"
+#include "SCA_ActuatorSensor.h"
 
 
 #include "SCA_PropertySensor.h"
@@ -538,6 +539,19 @@ void BL_ConvertSensors(struct Object* blenderobject,
                                
                                break;
                        }
+               case SENS_ACTUATOR:
+                       {
+                               bActuatorSensor* blenderactsensor = (bActuatorSensor*) sens->data;
+                               // we will reuse the property event manager, there is nothing special with this sensor
+                               SCA_EventManager* eventmgr 
+                                       = logicmgr->FindEventManager(SCA_EventManager::ACTUATOR_EVENTMGR);
+                               if (eventmgr)
+                               {
+                                       STR_String propname=blenderactsensor->name;
+                                       gamesensor = new SCA_ActuatorSensor(eventmgr,gameobj,propname);
+                               }
+                               break;
+                       }
                        
                case SENS_RADAR:
                        {