Partially revert #7ca17b7 (Breaks dev debug)

This commit is contained in:
LoafyLemon 2024-04-02 16:21:13 +01:00
parent 9aff807593
commit 61da56b6c8

View File

@ -156,8 +156,8 @@ init -1 python:
if config.developer: if config.developer:
def __setattr__(self, attr, value): def __setattr__(self, attr, value):
if getattr(self, attr, not value) != value: if hasattr(self, attr) and getattr(self, attr) != value:
id = self.id id = getattr(self, "id")
rollback = f"{stdcol.UNDERLINE}(Rollback){stdcol.END} " if renpy.in_rollback() else "" rollback = f"{stdcol.UNDERLINE}(Rollback){stdcol.END} " if renpy.in_rollback() else ""
caller_id = renpy.get_filename_line() caller_id = renpy.get_filename_line()