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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user