Part: add WorkbenchManipulator to Part module

This commit is contained in:
wmayer
2023-10-03 17:37:31 +02:00
committed by wwmayer
parent ac342af190
commit f48e79cd04
4 changed files with 117 additions and 0 deletions

View File

@@ -77,6 +77,7 @@
#include "ViewProviderSpline.h"
#include "ViewProviderTorusParametric.h"
#include "Workbench.h"
#include "WorkbenchManipulator.h"
// use a different name to CreateCommand()
@@ -149,6 +150,7 @@ PyMOD_INIT_FUNC(PartGui)
Py_INCREF(pAttachEngineTextsModule);
PyModule_AddObject(partGuiModule, "AttachEngineResources", pAttachEngineTextsModule);
// clang-format off
PartGui::PropertyEnumAttacherItem ::init();
PartGui::SoBrepFaceSet ::initClass();
PartGui::SoBrepEdgeSet ::initClass();
@@ -212,6 +214,9 @@ PyMOD_INIT_FUNC(PartGui)
PartGui::ArcEngine ::initClass();
PartGui::Workbench ::init();
auto manip = std::make_shared<PartGui::WorkbenchManipulator>();
Gui::WorkbenchManipulator::installManipulator(manip);
// clang-format on
// instantiating the commands
CreatePartCommands();