From c1552fb5906705fcf7a783d73da25bcd719d6cdb Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 4 Mar 2024 10:27:18 +0100 Subject: [PATCH] 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. --- src/Gui/SoFCUnifiedSelection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Gui/SoFCUnifiedSelection.cpp b/src/Gui/SoFCUnifiedSelection.cpp index ff66d3a678..c853ce333b 100644 --- a/src/Gui/SoFCUnifiedSelection.cpp +++ b/src/Gui/SoFCUnifiedSelection.cpp @@ -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);