fix(color): Only reset Lua if changing PLAY SCRIPT special function (#3698)
And not PLAY TRACK or BACKGND MUSIC
This commit is contained in:
@@ -192,7 +192,8 @@ class SpecialFunctionEditPage : public Page
|
|||||||
[=](std::string newValue) {
|
[=](std::string newValue) {
|
||||||
strncpy(cfn->play.name, newValue.c_str(), sizeof(cfn->play.name));
|
strncpy(cfn->play.name, newValue.c_str(), sizeof(cfn->play.name));
|
||||||
SET_DIRTY();
|
SET_DIRTY();
|
||||||
LUA_LOAD_MODEL_SCRIPTS();
|
if (func == FUNC_PLAY_SCRIPT)
|
||||||
|
LUA_LOAD_MODEL_SCRIPTS();
|
||||||
},
|
},
|
||||||
true); // strip extension
|
true); // strip extension
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user