Auto spritesheet reload; operator symbols on Change All Frame Properties buttons
- Settings > File > Auto Spritesheet Reload (on by default, every 2 s): spritesheets whose files change on disk are reloaded as one undoable edit; ones with unsaved pixel edits are left alone, and the editor's own saves don't trigger a reload. Document::spritesheets_reload is shared with the Reload action. - Change buttons read "= Adjust", "+ Add", "- Subtract", "× Multiply", "÷ Divide". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d8ab5ff018
commit
993957decf
10 files changed
+76
-25
No files matched your search
@@ -8,6 +8,13 @@ namespace anm2ed::imgui
|
||||
{
|
||||
if (auto document = manager.get(); document)
|
||||
if (settings.windowIsAnimationPreview) animationPreview.tick(manager, settings, deltaSeconds);
|
||||
|
||||
if (!settings.fileIsAutoReloadSpritesheets) return;
|
||||
spritesheetReloadTime += deltaSeconds;
|
||||
if (spritesheetReloadTime < settings.fileAutoReloadInterval) return;
|
||||
spritesheetReloadTime = 0.0f;
|
||||
for (auto& document : manager.documents)
|
||||
if (auto ids = document.spritesheets_changed_get(); !ids.empty()) document.spritesheets_reload(ids);
|
||||
}
|
||||
|
||||
void Dockspace::update(Taskbar& taskbar, Documents& documents, Manager& manager, Settings& settings,
|
||||
|
||||
Reference in new issue
Block a user