We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 569d86e + 75a40e5 commit 4dbd237Copy full SHA for 4dbd237
1 file changed
bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_Controller.cpp
@@ -64,6 +64,13 @@ void Controller_Trampoline::reinit()
64
void Controller_Trampoline::callScriptMethod(
65
const py::object& self, Event* event, const std::string & methodName)
66
{
67
+ if(f_printLog.getValue())
68
+ {
69
+ std::string name = std::string("on")+event->getClassName();
70
+ std::string eventStr = py::str(PythonFactory::toPython(event));
71
+ msg_info() << name << " " << eventStr;
72
+ }
73
+
74
if( py::hasattr(self, methodName.c_str()) )
75
76
py::object fct = self.attr(methodName.c_str());
0 commit comments