Material: add workbench manipulator

Implement a workbench manipulator to inject Std_Material and Std_Appearance to (context) menu.
This commit is contained in:
wmayer
2024-04-05 08:23:35 +02:00
committed by wwmayer
parent 384902c26c
commit dfc74591cc
6 changed files with 138 additions and 6 deletions

View File

@@ -33,6 +33,7 @@
#include "DlgSettingsMaterial.h"
#include "Workbench.h"
#include "WorkbenchManipulator.h"
// use a different name to CreateCommand()
void CreateMaterialCommands();
@@ -89,6 +90,8 @@ PyMOD_INIT_FUNC(MatGui)
Base::Console().Log("Loading GUI of Material module... done\n");
MatGui::Workbench ::init();
auto manip = std::make_shared<MatGui::WorkbenchManipulator>();
Gui::WorkbenchManipulator::installManipulator(manip);
// instantiating the commands
CreateMaterialCommands();