You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Moved folding outside the resource files, now saved outside the project.
This commit is contained in:
@@ -440,16 +440,6 @@ void Object::set(const StringName &p_name, const Variant &p_value, bool *r_valid
|
||||
if (r_valid)
|
||||
*r_valid = true;
|
||||
return;
|
||||
#ifdef TOOLS_ENABLED
|
||||
} else if (p_name == CoreStringNames::get_singleton()->_sections_unfolded) {
|
||||
Array arr = p_value;
|
||||
for (int i = 0; i < arr.size(); i++) {
|
||||
editor_section_folding.insert(arr[i]);
|
||||
}
|
||||
if (r_valid)
|
||||
*r_valid = true;
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
|
||||
//something inside the object... :|
|
||||
@@ -520,16 +510,7 @@ Variant Object::get(const StringName &p_name, bool *r_valid) const {
|
||||
if (r_valid)
|
||||
*r_valid = true;
|
||||
return ret;
|
||||
#ifdef TOOLS_ENABLED
|
||||
} else if (p_name == CoreStringNames::get_singleton()->_sections_unfolded) {
|
||||
Array array;
|
||||
for (Set<String>::Element *E = editor_section_folding.front(); E; E = E->next()) {
|
||||
array.push_back(E->get());
|
||||
}
|
||||
if (r_valid)
|
||||
*r_valid = true;
|
||||
return array;
|
||||
#endif
|
||||
|
||||
} else {
|
||||
//something inside the object... :|
|
||||
bool success = _getv(p_name, ret);
|
||||
@@ -657,11 +638,6 @@ void Object::get_property_list(List<PropertyInfo> *p_list, bool p_reversed) cons
|
||||
#endif
|
||||
p_list->push_back(PropertyInfo(Variant::OBJECT, "script", PROPERTY_HINT_RESOURCE_TYPE, "Script", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_STORE_IF_NONZERO));
|
||||
}
|
||||
#ifdef TOOLS_ENABLED
|
||||
if (editor_section_folding.size()) {
|
||||
p_list->push_back(PropertyInfo(Variant::ARRAY, CoreStringNames::get_singleton()->_sections_unfolded, PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR | PROPERTY_USAGE_INTERNAL));
|
||||
}
|
||||
#endif
|
||||
if (!metadata.empty())
|
||||
p_list->push_back(PropertyInfo(Variant::DICTIONARY, "__meta__", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR | PROPERTY_USAGE_INTERNAL | PROPERTY_USAGE_STORE_IF_NONZERO));
|
||||
if (script_instance && !p_reversed) {
|
||||
|
||||
Reference in New Issue
Block a user