+ Return an emtpy array if something fails inside getPickedPoints()
This commit is contained in:
parent
1333cb8734
commit
61bb8ea931
|
@ -514,8 +514,10 @@ std::vector<Base::Vector3d> ViewProviderPartExt::getPickedPoints(const SoPickedP
|
|||
return pts;
|
||||
}
|
||||
catch (...) {
|
||||
return ViewProvider::getPickedPoints(pp);
|
||||
}
|
||||
|
||||
// if something went wrong returns an empty array
|
||||
return std::vector<Base::Vector3d>();
|
||||
}
|
||||
|
||||
std::vector<Base::Vector3d> ViewProviderPartExt::getSelectionShape(const char* Element) const
|
||||
|
|
Loading…
Reference in New Issue
Block a user