bugfix 8183, Ray sensor with material/property filter always triggers when hitting...
authorHamed Zaghaghi <hamed.zaghaghi@gmail.com>
Mon, 4 Feb 2008 03:48:46 +0000 (03:48 +0000)
committerHamed Zaghaghi <hamed.zaghaghi@gmail.com>
Mon, 4 Feb 2008 03:48:46 +0000 (03:48 +0000)
source/gameengine/GameLogic/SCA_2DFilterActuator.cpp
source/gameengine/GameLogic/SCA_2DFilterActuator.h
source/gameengine/Ketsji/KX_RaySensor.cpp

index 9627ad9..f3b5b1f 100644 (file)
@@ -31,7 +31,7 @@ SCA_2DFilterActuator::SCA_2DFilterActuator(
 {
 }
 
-void SCA_2DFilterActuator::SetShaderText(STR_String& text)
+void SCA_2DFilterActuator::SetShaderText(STR_String text)
 {
        m_shaderText = text;
 }
index 76df95a..7b0cfff 100644 (file)
@@ -33,7 +33,7 @@ public:
         PyTypeObject* T=&Type
         );
 
-       void    SetShaderText(STR_String& text);
+       void    SetShaderText(STR_String text);
     virtual ~SCA_2DFilterActuator();
     virtual bool Update();
 
index ef3ec3e..5c56f8f 100644 (file)
@@ -143,7 +143,7 @@ bool KX_RaySensor::RayHit(KX_ClientObjectInfo* client, MT_Point3& hit_point, MT_
                        
        }
 
-       return true;
+       return bFound;
        
 }