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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user