Skip to content

Commit 511012f

Browse files
committed
VIC-14459 Fix crash when annotating custom object #184
Fix crash when creating annotation for custom object. The annotation will now read: "CustomObject id=1" (or whatever the numeric value is).
1 parent 27fd015 commit 511012f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

anki_vector/objects.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,8 +1439,7 @@ def descriptive_name(self) -> str:
14391439
for obj in robot.world.visible_custom_objects:
14401440
print('custom object seen with name: {0}'.format(obj.descriptive_name))
14411441
"""
1442-
# Specialization of ObservableObject's method to include the object type.
1443-
return "%s id=%d" % (self.archetype.object_type.name, self.object_id)
1442+
return "%s id=%d" % (self.__class__.__name__, self.object_id)
14441443

14451444
#### Private Methods ####
14461445

0 commit comments

Comments
 (0)