mirror of
https://github.com/godotengine/godot.git
synced 2026-02-16 20:31:21 +00:00
Ability to set a function as sequenced, so when called you can choose not to use sequence ports. Fixes #6346
This commit is contained in:
parent
95f10c620d
commit
8a4bce6ebd
3 changed files with 55 additions and 12 deletions
|
|
@ -1058,6 +1058,10 @@ MethodInfo VisualScript::get_method_info(const StringName &p_method) const {
|
|||
arg.type = func->get_argument_type(i);
|
||||
mi.arguments.push_back(arg);
|
||||
}
|
||||
|
||||
if (!func->is_sequenced()) {
|
||||
mi.flags |= METHOD_FLAG_CONST;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1401,6 +1405,10 @@ void VisualScriptInstance::get_method_list(List<MethodInfo> *p_list) const {
|
|||
mi.arguments.push_back(arg);
|
||||
}
|
||||
|
||||
if (!vsf->is_sequenced()) { //assumed constant if not sequenced
|
||||
mi.flags |= METHOD_FLAG_CONST;
|
||||
}
|
||||
|
||||
//vsf->Get_ for now at least it does not return..
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue