fix in Plane and Placement visual
This commit is contained in:
parent
09f199ed9e
commit
ea57c04117
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user