[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14344] trunk/blender/source/gameengine/ GameLogic: Removed my own patch #8208: export SCA_ISensor::Evaluate() to Python.

Benoit Bolsee benoit.bolsee at online.be
Sun Apr 6 21:14:04 CEST 2008


Revision: 14344
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14344
Author:   ben2610
Date:     2008-04-06 21:14:04 +0200 (Sun, 06 Apr 2008)

Log Message:
-----------
Removed my own patch #8208: export SCA_ISensor::Evaluate() to Python. It was only useful for the ray sensor and the new rayCastTo() function provides better functionality

Modified Paths:
--------------
    trunk/blender/source/gameengine/GameLogic/SCA_ISensor.cpp
    trunk/blender/source/gameengine/GameLogic/SCA_ISensor.h

Modified: trunk/blender/source/gameengine/GameLogic/SCA_ISensor.cpp
===================================================================
--- trunk/blender/source/gameengine/GameLogic/SCA_ISensor.cpp	2008-04-06 19:04:17 UTC (rev 14343)
+++ trunk/blender/source/gameengine/GameLogic/SCA_ISensor.cpp	2008-04-06 19:14:04 UTC (rev 14344)
@@ -160,8 +160,6 @@
 	 METH_VARARGS, GetInvert_doc},
 	{"setInvert", (PyCFunction) SCA_ISensor::sPySetInvert, 
 	 METH_VARARGS, SetInvert_doc},
-	{"evaluate", (PyCFunction) SCA_ISensor::sPyEvaluate, 
-	 METH_VARARGS, Evaluate_doc},
 	{NULL,NULL} //Sentinel
 };
 
@@ -333,14 +331,4 @@
 	Py_Return;
 }
 
-char SCA_ISensor::Evaluate_doc[] = 
-"evaluate()\n"
-"\tRe-evaluate the sensor so that isPositive() and other methods are up to date\n"
-"\twith current game conditions. BGE does it automatically on each frame so it's\n"
-"\tnot usually needed.\n"
-"\tReturns True or False if the sensor evaluates positively or negatively\n";
-PyObject* SCA_ISensor::PyEvaluate(PyObject* self, PyObject* args, PyObject* kwds)
-{
-	return BoolToPyArg(Evaluate(NULL));
-}
 /* eof */

Modified: trunk/blender/source/gameengine/GameLogic/SCA_ISensor.h
===================================================================
--- trunk/blender/source/gameengine/GameLogic/SCA_ISensor.h	2008-04-06 19:04:17 UTC (rev 14343)
+++ trunk/blender/source/gameengine/GameLogic/SCA_ISensor.h	2008-04-06 19:14:04 UTC (rev 14344)
@@ -127,7 +127,6 @@
 	KX_PYMETHOD_DOC(SCA_ISensor,SetUseNegPulseMode);
 	KX_PYMETHOD_DOC(SCA_ISensor,GetInvert);
 	KX_PYMETHOD_DOC(SCA_ISensor,SetInvert);
-	KX_PYMETHOD_DOC(SCA_ISensor,Evaluate);
 
 };
 





More information about the Bf-blender-cvs mailing list