Sketcher/Toponaming: import code for SketchObject::checkSubName() from LS3

* applied review hints

Signed-off-by: CalligaroV <[email protected]>
This commit is contained in:
CalligaroV
2024-09-12 21:12:17 -05:00
committed by Chris Hennes
parent 8e7fe5c5f2
commit 0a5ceb636c
-2
View File
@@ -11375,7 +11375,6 @@ Data::IndexedName SketchObject::checkSubName(const char *subname) const{
if (!valid) {
FC_ERR("invalid subname " << subname);
// return sub;
return Data::IndexedName();
}
@@ -11406,7 +11405,6 @@ Data::IndexedName SketchObject::checkSubName(const char *subname) const{
int idx = getVertexIndexGeoPos(geoId, static_cast<PointPos>(posId));
if (idx < 0) {
FC_ERR("invalid subname " << subname);
// return sub;
return Data::IndexedName();
}
return Data::IndexedName::fromConst("Vertex", idx + 1);