You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add type validations when setting basic type
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user