Skip to content

Commit

Permalink
Merge pull request #1036 from j042/fix-assembly-add
Browse files Browse the repository at this point in the history
check actor's type in Assembly.__add__
  • Loading branch information
marcomusy authored Jan 26, 2024
2 parents cf0ca1e + 7f2f98f commit ec79c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vedo/assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def __add__(self, obj):
"""
Add an object to the assembly
"""
if isinstance(obj, vtk.get_class("Prop3D")):
if isinstance(getattr(obj, "actor", None), vtk.get_class("Prop3D")):

self.objects.append(obj)
self.actors.append(obj.actor)
Expand Down

0 comments on commit ec79c02

Please sign in to comment.