mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
feat: model autorefresh in editor
This commit is contained in:
parent
bfbfe59f9b
commit
bef8e4b9d6
1 changed files with 5 additions and 0 deletions
|
|
@ -81,6 +81,11 @@ local function refresh_file_title()
|
||||||
document.saveIcon.enabled = edited
|
document.saveIcon.enabled = edited
|
||||||
document.title.text = gui.str('File')..' - '..current_file.filename
|
document.title.text = gui.str('File')..' - '..current_file.filename
|
||||||
..(edited and ' *' or '')
|
..(edited and ' *' or '')
|
||||||
|
|
||||||
|
local info = registry.get_info(current_file.filename)
|
||||||
|
if info and info.type == "model" then
|
||||||
|
pcall(run_current_file)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function on_control_combination(keycode)
|
function on_control_combination(keycode)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue