Skip to content

Commit

Permalink
fixes #2964, #2968
Browse files Browse the repository at this point in the history
0002964: PartDesign Datum geometry invisible in 3D view if no geometry
present in Body
0002968: Datum items invisible on opening saved files
  • Loading branch information
AjinkyaDahale authored and yorikvanhavre committed Mar 19, 2017
1 parent b60fe48 commit c4fdc92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/PartDesign/Gui/ViewProviderDatum.cpp
Expand Up @@ -357,7 +357,7 @@ SbBox3f ViewProviderDatum::getRelevantBoundBox () const {
SbBox3f ViewProviderDatum::getRelevantBoundBox (
SoGetBoundingBoxAction &bboxAction, const std::vector <App::DocumentObject *> &objs )
{
SbBox3f bbox(0,0,0, 0,0,0);
SbBox3f bbox = defaultBoundBox();

// Adds the bbox of given feature to the output
for (auto obj :objs) {
Expand All @@ -380,6 +380,7 @@ SbBox3f ViewProviderDatum::getRelevantBoundBox (
}
}

// TODO: shrink bbox when all other elements are too small
return bbox;
}

Expand Down

0 comments on commit c4fdc92

Please sign in to comment.