Browse Source

tools: send refresh command to the game being run

Daniele Bartolini 5 years ago
parent
commit
9ceb2f406c
2 changed files with 2 additions and 0 deletions
  1. 1 0
      docs/changelog.rst
  2. 1 0
      tools/level_editor/level_editor.vala

+ 1 - 0
docs/changelog.rst

@@ -27,6 +27,7 @@ Changelog
 * Fixed an issue that caused the Level Editor to not include "core/units/camera" in the boot.package of a newly created project
 * Fixed an issue that caused the Level Editor to start the Editor View before data compilation was done in some circumstances
 * Fixed main.lua files generated by Level Editor for new projects
+* Lua reloading has been extended to the running game when pressing F5 from the Level Editor
 * Renaming of objects in the Level Tree is now handled with a modal dialog
 * The Editor View will now show a message explaining how to recover the session after a crash or unintended disconnection
 * Unified the asset import dialogs

+ 1 - 0
tools/level_editor/level_editor.vala

@@ -1528,6 +1528,7 @@ namespace Crown
 				if (_data_compiler.compile.end(res))
 				{
 					_editor.send(DeviceApi.refresh());
+					_game.send(DeviceApi.refresh());
 				}
 			});
 		}