-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array containing vector and tuple crashes show #67
Comments
I feel it is the right decision to raise an exception. |
I agree that it would be a reasonable behavior to throw an error for a = [Vector(1,2,3), Vector(1,2,3)]
show_all()
a = [(1,2,3),(1,2,3)]
show_all()
a = [(1,2,3), Vector(1,2,3)]
show_all()
a = [Vector(1,2,3), (1,2,3)]
show_all()
|
Makes sense. with BuildPart() as p:
Box(1,1,1)
a = {
"a": Vector(1, 2, 3),
"b": [
Pos(2, 2, 2) * Cylinder(1, 1),
(1,2,3),
p,
p.part,
{"c": Vector(5, 2, 3), "d": Pos(-3, 0, 0) * Box(1, 2, 3), "e": 123},
],
}
show_all({"a": a}) and the output is Unknown type <class 'tuple'> for name b[1]
Unknown type <class 'int'> for name e As you can see the unknow types are simply excluded in the viewer |
fixed in 2.2.2 |
The text was updated successfully, but these errors were encountered: