From a138fb0e8c6eec637ccd213da78f9b72c5c0a00a Mon Sep 17 00:00:00 2001 From: jriegel Date: Fri, 6 Apr 2012 16:50:51 +0200 Subject: [PATCH] testing selection --- src/Mod/Assembly/Gui/Command.cpp | 2 +- src/Mod/Assembly/Gui/ViewProvider.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Assembly/Gui/Command.cpp b/src/Mod/Assembly/Gui/Command.cpp index 65d004f72f..b626b2e66b 100644 --- a/src/Mod/Assembly/Gui/Command.cpp +++ b/src/Mod/Assembly/Gui/Command.cpp @@ -82,7 +82,7 @@ void CmdAssemblyAddNewPart::activated(int iMsg) Command::addModule(App,"PartDesign"); Command::addModule(Gui,"PartDesignGui"); -#if 0 // test code for children nesting +#if 1 // test code for children nesting Command::addModule(App,"Part"); std::string BodyName = getUniqueObjectName("Box"); doCommand(Doc,"App.activeDocument().addObject('Part::Box','%s')",BodyName.c_str()); diff --git a/src/Mod/Assembly/Gui/ViewProvider.h b/src/Mod/Assembly/Gui/ViewProvider.h index a28bb51a38..e3462c28cc 100644 --- a/src/Mod/Assembly/Gui/ViewProvider.h +++ b/src/Mod/Assembly/Gui/ViewProvider.h @@ -40,6 +40,8 @@ public: /// destructor virtual ~ViewProviderItem(); + virtual bool useNewSelectionModel(void) const {return false;} + // returns the root node where the children gets collected(3D) virtual SoGroup* getChildRoot(void) const {return pcChildren;}