fixing some issues: force needs to wake up objects, property sensor issue, island...
[blender.git] / source / gameengine / Ketsji / KXNetwork / KX_NetworkMessageSensor.cpp
index ab5f9b989a70aac1017dcfd2b5764ab7345d9a6d..a01673f569fbadf3d366bac0372ac1b2aca76451 100644 (file)
@@ -90,7 +90,8 @@ bool KX_NetworkMessageSensor::Evaluate(CValue* event)
        bool result = false;
        bool WasUp = m_IsUp;
 
        bool result = false;
        bool WasUp = m_IsUp;
 
-       m_IsUp = false;
+//     m_IsUp = false;
+
        if (m_BodyList) {
                m_BodyList->Release();
                m_BodyList = NULL;
        if (m_BodyList) {
                m_BodyList->Release();
                m_BodyList = NULL;
@@ -149,7 +150,10 @@ bool KX_NetworkMessageSensor::Evaluate(CValue* event)
 bool KX_NetworkMessageSensor::IsPositiveTrigger()
 {
 //     printf("KX_NetworkMessageSensor IsPositiveTrigger\n");
 bool KX_NetworkMessageSensor::IsPositiveTrigger()
 {
 //     printf("KX_NetworkMessageSensor IsPositiveTrigger\n");
-       return m_IsUp;
+       //attempt to fix [ #3809 ] IPO Actuator does not work with some Sensors
+       //a better solution is to properly introduce separate Edge and Level triggering concept
+
+       return true;//m_IsUp;
 }
 
 /* --------------------------------------------------------------------- */
 }
 
 /* --------------------------------------------------------------------- */
@@ -203,7 +207,7 @@ PyMethodDef KX_NetworkMessageSensor::Methods[] = {
        {NULL,NULL} //Sentinel
 };
 
        {NULL,NULL} //Sentinel
 };
 
-PyObject* KX_NetworkMessageSensor::_getattr(char* attr) {
+PyObject* KX_NetworkMessageSensor::_getattr(const STR_String& attr) {
        _getattr_up(SCA_ISensor); // implicit return!
 }
 
        _getattr_up(SCA_ISensor); // implicit return!
 }