Skip to content

Commit

Permalink
Merge pull request #1062 from JeffreyWardman/master
Browse files Browse the repository at this point in the history
allow assembly to correctly index objects
  • Loading branch information
marcomusy authored Feb 29, 2024
2 parents 1da1879 + 6c94f6c commit 342d8eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vedo/assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def __getitem__(self, i):
return self.objects[i]
elif isinstance(i, str):
for m in self.objects:
if i in m.name:
if i == m.name:
return m
return None

Expand Down Expand Up @@ -437,7 +437,7 @@ def unpack(self, i=None):
return self.objects[i]
elif isinstance(i, str):
for m in self.objects:
if i in m.name:
if i == m.name:
return m

def recursive_unpack(self):
Expand Down

0 comments on commit 342d8eb

Please sign in to comment.