Gui: Enable SoModelMatrixElement

The element type SoModelMatrixElement must be enabled for the node types SoHighlightElementAction and SoSelectionElementAction.
Otherwise an assert() will fail and causes a crash in debug mode.
This commit is contained in:
wmayer
2024-03-04 10:27:18 +01:00
committed by wwmayer
parent 0420f72ca0
commit cc8fbf83e7

View File

@@ -782,6 +782,7 @@ void SoHighlightElementAction::initClass()
SO_ACTION_INIT_CLASS(SoHighlightElementAction,SoAction);
SO_ENABLE(SoHighlightElementAction, SoSwitchElement);
SO_ENABLE(SoHighlightElementAction, SoModelMatrixElement);
SO_ACTION_ADD_METHOD(SoNode,nullAction);
@@ -849,6 +850,7 @@ void SoSelectionElementAction::initClass()
SO_ACTION_INIT_CLASS(SoSelectionElementAction,SoAction);
SO_ENABLE(SoSelectionElementAction, SoSwitchElement);
SO_ENABLE(SoSelectionElementAction, SoModelMatrixElement);
SO_ACTION_ADD_METHOD(SoNode,nullAction);