Core: GetGlobalPlacement: empty subname should not return.

This commit is contained in:
PaddleStroke
2024-11-25 18:52:30 +01:00
committed by Chris Hennes
parent 3070832e54
commit 5eb09c8e45

View File

@@ -304,7 +304,7 @@ Base::Placement GeoFeature::getGlobalPlacement(App::DocumentObject* targetObj,
App::DocumentObject* rootObj,
const std::string& sub)
{
if (!targetObj || !rootObj || sub.empty()) {
if (!targetObj || !rootObj) {
return Base::Placement();
}
std::vector<std::string> names = Base::Tools::splitSubName(sub);