godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.43k stars 21.26k forks source link

Editor Snap/View settings doesn't saved automatically right after change #27771

Open breakmt opened 5 years ago

breakmt commented 5 years ago

Godot version: 3.1 stable

OS/device including version: Windows 7 x64

Steps to reproduce: Example:

  1. Turn on/off "Snap to grid",
  2. Re-open project,
  3. Check that "Snap to grid" setting wasn't saved

Result: Those settings are saved only when you save the project.

Expected: Settings should be saved to file right after change were made, as it is when you change IDE layout or Editor settings.

Note: I guess it's relevant for every settings in "Godot/projects/%project_name%/Main.tscn-editstate-bcb0d2eb5949c52b6a65bfe9de3e985b.cfg" file, like: snap, view, tileset, texture region, 3D

bug4

KoBeWi commented 4 years ago

The generic solution would be a state_changed signal in EditorPlugin class, which should be emitted by each editor when there's relevant change in its state and connecting it to EditorNode's _set_scene_metadata. This should be rather easy, but also rather complex, so not sure if it's worth it and if it's really a bug or rather an enhancement.

chucklepie commented 3 years ago

The 'bug' actually extends to opening scenes in the same project. If you change a scene file then snap resets to default of 8.