From d0da403adcdfbc026d782275bb368be7c8e68acb Mon Sep 17 00:00:00 2001 From: AjinkyaDahale Date: Fri, 17 Mar 2017 02:57:00 +0530 Subject: [PATCH] fixes #2964, #2968 0002964: PartDesign Datum geometry invisible in 3D view if no geometry present in Body 0002968: Datum items invisible on opening saved files --- src/Mod/PartDesign/Gui/ViewProviderDatum.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/ViewProviderDatum.cpp b/src/Mod/PartDesign/Gui/ViewProviderDatum.cpp index 915f0f30f8..2b6f7a8f4a 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderDatum.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderDatum.cpp @@ -357,7 +357,7 @@ SbBox3f ViewProviderDatum::getRelevantBoundBox () const { SbBox3f ViewProviderDatum::getRelevantBoundBox ( SoGetBoundingBoxAction &bboxAction, const std::vector &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) { @@ -380,6 +380,7 @@ SbBox3f ViewProviderDatum::getRelevantBoundBox ( } } + // TODO: shrink bbox when all other elements are too small return bbox; }