Skip to content

Fix component context bug: use face.body.parentComponent instead of activeComponent#12

Open
luxflow wants to merge 1 commit into
Finn2708:mainfrom
luxflow:fix/component
Open

Fix component context bug: use face.body.parentComponent instead of activeComponent#12
luxflow wants to merge 1 commit into
Finn2708:mainfrom
luxflow:fix/component

Conversation

@luxflow
Copy link
Copy Markdown

@luxflow luxflow commented Mar 29, 2026

#9
#10

Fix component context bug: use face.body.parentComponent instead of activeComponent

design.activeComponent returns the root component when not inside an "Edit Component" context, causing sketch/extrude features to be created in the wrong component when the selected face belongs to a sub-component body. This caused only the first counterbore cut to work correctly; subsequent iterations silently operated on the wrong component.

…ctiveComponent

design.activeComponent returns the root component when not inside an
"Edit Component" context, causing sketch/extrude features to be created
in the wrong component when the selected face belongs to a sub-component
body. This caused only the first counterbore cut to work correctly;
subsequent iterations silently operated on the wrong component.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant