Fix box selection in sketcher
This commit is contained in:
parent
49f66c5fba
commit
5dd72b9501
|
@ -1464,12 +1464,8 @@ void ViewProviderSketch::doBoxSelection(const SbVec2s &startPos, const SbVec2s &
|
|||
|
||||
Gui::ViewVolumeProjection proj(viewer->getCamera()->getViewVolume());
|
||||
|
||||
App::Document* doc = App::GetApplication().getActiveDocument();
|
||||
Sketcher::SketchObject *sketchObject = NULL;
|
||||
if (doc)
|
||||
sketchObject = dynamic_cast<Sketcher::SketchObject *>(doc->getActiveObject());
|
||||
if (!sketchObject)
|
||||
return;
|
||||
Sketcher::SketchObject *sketchObject = getSketchObject();
|
||||
App::Document *doc = sketchObject->getDocument();
|
||||
|
||||
Base::Placement Plm = sketchObject->Placement.getValue();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user