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 38c6d842f2
commit d3f6f3e49e

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);