testing selection

This commit is contained in:
jriegel
2012-04-06 16:50:51 +02:00
committed by Stefan Tröger
parent e60b7eb89c
commit a138fb0e8c
2 changed files with 3 additions and 1 deletions

View File

@@ -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());

View File

@@ -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;}