From 82759166019a36f73c53cca23791b9bced302f08 Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Tue, 14 Oct 2025 11:58:22 +0200 Subject: [PATCH] Sketcher: Fix deactivated Block bug (#24548) * Sketcher: Fix deactivated Block bug * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update Sketch.cpp * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- src/Mod/Sketcher/App/Sketch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/Sketch.cpp b/src/Mod/Sketcher/App/Sketch.cpp index bfd947afb6..c6fdf42bb5 100644 --- a/src/Mod/Sketcher/App/Sketch.cpp +++ b/src/Mod/Sketcher/App/Sketch.cpp @@ -155,7 +155,7 @@ bool Sketch::analyseBlockedGeometry(const std::vector& internal for (auto c : constraintList) { // is block driving - if (c->Type == Sketcher::Block && c->isDriving && c->First == geoindex) { + if (c->Type == Sketcher::Block && c->isActive && c->First == geoindex) { blockisDriving = true; } // We have another driving constraint (which may be InternalAlignment)