Bug:
It's possible for state.tag to be None.
`if isinstance(renpy.get_registered_image(state.tag), LayeredImage):`
When that happens, it causes an exception inside renpy when calling renpy.get_registered_image()
File "renpy/python.py", line 1375, in py_eval_bytecode
return eval(bytecode, globals, locals)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "game/layeredimage-visual-editor-v3/01cute_layeredimage_editor.rpy", line 86, in <module>
if isinstance(renpy.get_registered_image(state.tag), LayeredImage):
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "renpy/display/image.py", line 310, in get_registered_image
name = tuple(name.split())
^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'
Reproduction steps:
- Open director mode
- Click + to add in between a line
- click "show"
- Without selecting a tag, click "(properties)" (at top)
- exception happens.