+ allow to always run macros, fix disappearing grid in sketcher

This commit is contained in:
wmayer
2014-05-13 16:20:51 +02:00
parent 0874bfac75
commit c212e75fcc
3 changed files with 3 additions and 2 deletions

View File

@@ -198,8 +198,8 @@ void ViewProvider2DObject::updateData(const App::Property* prop)
if (prop->getTypeId() == Part::PropertyPartShape::getClassTypeId()) {
Base::BoundBox3d bbox = static_cast<const Part::PropertyPartShape*>(prop)->getBoundingBox();
GridRoot->removeAllChildren();
if (!bbox.IsValid()) return;
GridRoot->removeAllChildren();
Base::Placement place = static_cast<const Part::PropertyPartShape*>(prop)->getComplexData()->getPlacement();
place.invert();
Base::ViewProjMatrix proj(place.toMatrix());