CameraTools/GroupTools bugfixing and sprite scale support

This commit is contained in:
2022-08-02 02:24:22 +00:00
parent 744f99bc46
commit 9e8036deb2
6 changed files with 192 additions and 152 deletions

View File

@@ -19,12 +19,11 @@ class Main extends Sprite
};
function reloadModel(_) {
if (t.draggingSprite == null) {
// TODO don't change camera position and zoom when this happens:
t.setModel(new HabitModel(habitFile));
t.refreshModel(new HabitModel(habitFile));
t.model.save();
}
}
reloadModel(null);
t.setModel(new HabitModel(habitFile));
new FlxTimer().start(30, reloadModel, 0);
}