mirror of
https://github.com/gumyr/build123d.git
synced 2026-01-05 16:51:45 -08:00
Adapted to add_to_context changes
This commit is contained in:
parent
302dd1be37
commit
dad3f477d8
1 changed files with 2 additions and 2 deletions
|
|
@ -46,10 +46,10 @@ class BuildLine:
|
|||
if context_stack:
|
||||
if isinstance(context_stack[-1], BuildSketch):
|
||||
for edge in self.line:
|
||||
BuildSketch.add_to_context(edge, mode=self.mode)
|
||||
BuildSketch.get_context().add_to_context(edge, mode=self.mode)
|
||||
elif isinstance(context_stack[-1], BuildPart):
|
||||
for edge in self.line:
|
||||
BuildPart.add_to_context(edge, mode=self.mode)
|
||||
BuildPart.get_context().add_to_context(edge, mode=self.mode)
|
||||
|
||||
def edges(self, select: Select = Select.ALL) -> list[Edge]:
|
||||
if select == Select.ALL:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue