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

* applied review hints

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
This commit is contained in:
CalligaroV
2024-09-08 10:39:54 +02:00
parent 819ae560f1
commit 62f9d10321

View File

@@ -11374,7 +11374,6 @@ Data::IndexedName SketchObject::checkSubName(const char *subname) const{
if (!valid) {
FC_ERR("invalid subname " << subname);
// return sub;
return Data::IndexedName();
}
@@ -11405,7 +11404,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);