feat: model autorefresh in editor

This commit is contained in:
MihailRis 2025-08-13 23:42:06 +03:00
parent bfbfe59f9b
commit bef8e4b9d6

View File

@ -81,6 +81,11 @@ local function refresh_file_title()
document.saveIcon.enabled = edited
document.title.text = gui.str('File')..' - '..current_file.filename
..(edited and ' *' or '')
local info = registry.get_info(current_file.filename)
if info and info.type == "model" then
pcall(run_current_file)
end
end
function on_control_combination(keycode)