Skip to content

Commit 44f052d

Browse files
committed
more backwards compatibility + typo fix
1 parent 80c2dda commit 44f052d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

solid/core/object_base.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ def __init__(self):
99

1010
def add(self, c):
1111
if isinstance(c, list):
12-
self.children += c
12+
#self.children += c
13+
#hmmmm we need this recursion for backward compatibility =(
14+
#at least the legacy_splines_example calls add([[...]])
15+
for cc in c:
16+
self.add(cc)
1317
else:
1418
self.children += [c]
1519

20+
return self
21+
1622
def copy(self):
1723
return deepcopy(self)
1824

solid/extensions/convenience.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def mirror(v):
7979

8080
@mirror.register(int)
8181
@mirror.register(float)
82-
def _translate(*args):
82+
def _mirror(*args):
8383
return builtins.mirror(args)
8484

8585
# =========

0 commit comments

Comments
 (0)