Skip to content

Code Editor 2: Renaming an asset that is used in an open code document will prevent saving #16213

Description

@gm-bug-reporter

Description

When you rename an asset that is being referenced in an open code window, the reference will be automatically updated, however saving that script no longer functions until you reload the project

2026-10-09.15-58-42.mp4

Steps To Reproduce

  1. create a new project
  2. add 2 objects
  3. add a line to Object1 : instance_create_layer(x,y,layer, Object2)
  4. save
  5. select Object2 in the asset browser
  6. press F2 to rename and give it a different name
  7. press enter and observe the Object1 Code is updated
  8. try to save and observe that the * on object1 tab does not go away
  9. reload project and observe your code reverted

Which version of GameMaker are you reporting this issue for?

IDE v2026.100.0.1173 Runtime v2026.100.0.1118

Which operating system(s) are you seeing the problem on?

Windows 10.0.19045.0

e4d43362-cd40-4117-8aac-e9b1793e8cc0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    projectThis issue has a sample project attached

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions