fix in Plane and Placement visual

This commit is contained in:
jriegel 2012-04-06 16:19:11 +02:00 committed by Stefan Tröger
parent 09f199ed9e
commit ea57c04117
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,9 @@ App::DocumentObjectExecReturn *ItemAssembly::execute(void)
std::vector<App::DocumentObject*>::iterator it;
for (it = obj.begin(); it != obj.end(); ++it) {
if ((*it)->getTypeId().isDerivedFrom(Assembly::Item::getClassTypeId())) {
s.push_back(static_cast<Assembly::Item*>(*it)->Shape.getValue());
TopoDS_Shape aShape = static_cast<Assembly::Item*>(*it)->Shape.getValue();
if (!aShape.IsNull())
s.push_back(aShape);
}
}

View File

@ -82,7 +82,7 @@ void CmdAssemblyAddNewPart::activated(int iMsg)
Command::addModule(App,"PartDesign");
Command::addModule(Gui,"PartDesignGui");
#if 1 // test code for children nesting
#if 0 // 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());