Make the main object available as 'object' in filter expressions

refs #9077
This commit is contained in:
Gunnar Beutner 2015-11-07 09:58:09 +01:00
parent 3a695742e3
commit 64376dafeb
1 changed files with 1 additions and 0 deletions

View File

@ -112,6 +112,7 @@ bool FilterUtility::EvaluateFilter(ScriptFrame& frame, Expression *filter,
} else } else
vars = frame.Self; vars = frame.Self;
vars->Set("object", target);
vars->Set(varName, target); vars->Set(varName, target);
for (int fid = 0; fid < type->GetFieldCount(); fid++) { for (int fid = 0; fid < type->GetFieldCount(); fid++) {