mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
- Optimization: common parameters to built in functions are no longer looked up as a string at each call, instead their integer ids are global constants
- Optimization: some other minor tweaks. - Nicer --help message git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@783 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -216,7 +216,7 @@ String KeywordsPanel::runRefScript(int find_i) {
|
||||
FOR_EACH(r, p->refer_scripts) {
|
||||
if (i++ == find_i) {
|
||||
Context& ctx = set->getContext();
|
||||
ctx.setVariable(_("input"), to_script(param_s));
|
||||
ctx.setVariable(SCRIPT_VAR_input, to_script(param_s));
|
||||
return r->script.invoke(ctx)->toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user