mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add type validations when setting basic type
This commit is contained in:
parent
67db681871
commit
47f0cf7460
3 changed files with 8 additions and 0 deletions
|
|
@ -1950,6 +1950,7 @@ StringName VisualScriptBasicTypeConstant::get_basic_type_constant() const {
|
|||
}
|
||||
|
||||
void VisualScriptBasicTypeConstant::set_basic_type(Variant::Type p_which) {
|
||||
ERR_FAIL_INDEX(p_which, Variant::VARIANT_MAX);
|
||||
type = p_which;
|
||||
|
||||
List<StringName> constants;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue