You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -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..
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user