You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
@@ -905,8 +905,8 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::
|
||||
List<StringName> inheritors;
|
||||
ClassDB::get_inheriters_from_class(base.strip_edges(), &inheritors);
|
||||
|
||||
for (int i = 0; i < custom_resources.size(); i++) {
|
||||
inheritors.push_back(custom_resources[i].name);
|
||||
for (int j = 0; j < custom_resources.size(); j++) {
|
||||
inheritors.push_back(custom_resources[j].name);
|
||||
}
|
||||
|
||||
List<StringName>::Element *E = inheritors.front();
|
||||
@@ -915,17 +915,17 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::
|
||||
E = E->next();
|
||||
}
|
||||
|
||||
for (Set<String>::Element *E = valid_inheritors.front(); E; E = E->next()) {
|
||||
String t = E->get();
|
||||
for (Set<String>::Element *j = valid_inheritors.front(); j; j = j->next()) {
|
||||
String t = j->get();
|
||||
|
||||
bool is_custom_resource = false;
|
||||
Ref<Texture> icon;
|
||||
if (!custom_resources.empty()) {
|
||||
for (int i = 0; i < custom_resources.size(); i++) {
|
||||
if (custom_resources[i].name == t) {
|
||||
for (int k = 0; k < custom_resources.size(); k++) {
|
||||
if (custom_resources[k].name == t) {
|
||||
is_custom_resource = true;
|
||||
if (custom_resources[i].icon.is_valid())
|
||||
icon = custom_resources[i].icon;
|
||||
if (custom_resources[k].icon.is_valid())
|
||||
icon = custom_resources[k].icon;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user