fix(color): Only reset Lua if changing PLAY SCRIPT special function (#3698)

And not PLAY TRACK or BACKGND MUSIC
This commit is contained in:
philmoz
2023-06-19 12:30:36 +10:00
committed by GitHub
parent c8059403b9
commit ee84b46d59
+2 -1
View File
@@ -192,7 +192,8 @@ class SpecialFunctionEditPage : public Page
[=](std::string newValue) {
strncpy(cfn->play.name, newValue.c_str(), sizeof(cfn->play.name));
SET_DIRTY();
LUA_LOAD_MODEL_SCRIPTS();
if (func == FUNC_PLAY_SCRIPT)
LUA_LOAD_MODEL_SCRIPTS();
},
true); // strip extension
break;