bugfix 8183, Ray sensor with material/property filter always triggers when hitting object without the required characteristic fixed by Benoit Blosee(ben2610), and some minor changes for 2d-filters.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ public:
|
||||
PyTypeObject* T=&Type
|
||||
);
|
||||
|
||||
void SetShaderText(STR_String& text);
|
||||
void SetShaderText(STR_String text);
|
||||
virtual ~SCA_2DFilterActuator();
|
||||
virtual bool Update();
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ bool KX_RaySensor::RayHit(KX_ClientObjectInfo* client, MT_Point3& hit_point, MT_
|
||||
|
||||
}
|
||||
|
||||
return true;
|
||||
return bFound;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user