Merge pull request #10978 from FlachyJoe/modernize-type-check

Modernize type and derived type checking
This commit is contained in:
Chris Hennes
2023-11-06 10:44:32 -06:00
committed by GitHub
182 changed files with 834 additions and 911 deletions

View File

@@ -197,7 +197,7 @@ void CmdSketcherToggleConstruction::activated(int iMsg)
auto geo = Obj->getGeometry(geoId);
if (geo && geo->getTypeId() == Part::GeomPoint::getClassTypeId()) {
if (geo && geo->is<Part::GeomPoint>()) {
// issue the actual commands to toggle
Gui::cmdAppObjectArgs(selection[0].getObject(),
"toggleConstruction(%d) ",