Adding ViewProvider

This commit is contained in:
jriegel
2012-01-15 21:44:52 +01:00
committed by Stefan Tröger
parent 075bd74d9b
commit cb499ac2c7
9 changed files with 174 additions and 11 deletions

View File

@@ -52,7 +52,12 @@ short ItemPart::mustExecute() const
App::DocumentObjectExecReturn *ItemPart::execute(void)
{
App::DocumentObject* obj = Model.getValue();
if (obj->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) {
this->Shape.setValue(static_cast<Part::Feature*>(obj)->Shape.getValue());
}
return App::DocumentObject::StdReturn;
}