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>
This commit is contained in:
PaddleStroke
2025-10-14 11:58:22 +02:00
committed by GitHub
parent 9462c7bfb3
commit 8275916601

View File

@@ -155,7 +155,7 @@ bool Sketch::analyseBlockedGeometry(const std::vector<Part::Geometry*>& 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)