We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06529fc commit c703e4fCopy full SHA for c703e4f
1 file changed
Sofa/GUI/Component/src/sofa/gui/component/performer/MouseInteractor.inl
@@ -34,7 +34,9 @@ void MouseInteractor<DataTypes>::init()
34
mouseInSofa = dynamic_cast< MouseContainer*>(this->getContext()->getMechanicalState());
35
if (!mouseInSofa)
36
{
37
- msg_error() << "MouseInteractor requires a MechanicalState of the correct type in its context";
+ msg_error() << "MouseInteractor requires a MechanicalState of the correct type (" << DataTypes::Name() << ") in its context";
38
+ this->d_componentState.setValue(sofa::core::objectmodel::ComponentState::Invalid);
39
+
40
return;
41
}
42
0 commit comments