You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
-Code completion for enumerations
-Disabled GDNative and GDNativeScript so build compiles again
This commit is contained in:
@@ -598,14 +598,23 @@ void ClassDB::bind_integer_constant(const StringName &p_class, const StringName
|
||||
|
||||
type->constant_map[p_name] = p_constant;
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
List<StringName> *constants_list = type->enum_map.getptr(p_enum);
|
||||
|
||||
if (constants_list) {
|
||||
constants_list->push_back(p_name);
|
||||
} else {
|
||||
List<StringName> new_list;
|
||||
new_list.push_back(p_name);
|
||||
type->enum_map[p_enum] = new_list;
|
||||
String enum_name = p_enum;
|
||||
if (enum_name!=String()) {
|
||||
if (enum_name.find(".")!=-1) {
|
||||
enum_name=enum_name.get_slicec('.',1);
|
||||
}
|
||||
|
||||
List<StringName> *constants_list = type->enum_map.getptr(enum_name);
|
||||
|
||||
if (constants_list) {
|
||||
constants_list->push_back(p_name);
|
||||
} else {
|
||||
List<StringName> new_list;
|
||||
new_list.push_back(p_name);
|
||||
type->enum_map[enum_name] = new_list;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
type->constant_order.push_back(p_name);
|
||||
|
||||
Reference in New Issue
Block a user