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:
1 parent
95f10c620d
commit
8a4bce6ebd
3 files changed
+55
-12
No files matched your search
@@ -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