Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions fast64_internal/oot/room/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def draw_props(self, layout: UILayout, headerIndex: int, index: int, objName: st

if isLegacy:
objectName = ootData.objectData.ootEnumObjectIDLegacy[self["objectID"]][1]
elif self.objectKey == "":
# just in case there's invalid objects keys, allows users to delete them
objectName = "DELETE ME!"
Comment on lines +52 to +54
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since "" is not a valid value for objectKey I don't understand how this can happen

The id for deleted entries (see self.deletedEntry in OoT_ObjectData.__init__) is "None", maybe that's what should be checked here instead?
Or self.objectKey not in ootData.objectData.objectsByKey ?

elif self.objectKey != "Custom":
objectName = ootData.objectData.objectsByKey[self.objectKey].name
else:
Expand Down