From e5c4d2aa7001938a347fbbb23d1c1bafa6ad9289 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 65d004f72..b626b2e66 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 a28bb51a3..e3462c28c 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;}