Add a new HashSet template
* Intended to replace RBSet in most cases. * Optimized for iteration speed
This commit is contained in:
@ -101,7 +101,7 @@ bool EditorFeatureProfile::is_class_editor_disabled(const StringName &p_class) c
|
||||
void EditorFeatureProfile::set_disable_class_property(const StringName &p_class, const StringName &p_property, bool p_disabled) {
|
||||
if (p_disabled) {
|
||||
if (!disabled_properties.has(p_class)) {
|
||||
disabled_properties[p_class] = RBSet<StringName>();
|
||||
disabled_properties[p_class] = HashSet<StringName>();
|
||||
}
|
||||
|
||||
disabled_properties[p_class].insert(p_property);
|
||||
@ -181,7 +181,7 @@ Error EditorFeatureProfile::save_to_file(const String &p_path) {
|
||||
|
||||
Array dis_props;
|
||||
|
||||
for (KeyValue<StringName, RBSet<StringName>> &E : disabled_properties) {
|
||||
for (KeyValue<StringName, HashSet<StringName>> &E : disabled_properties) {
|
||||
for (const StringName &F : E.value) {
|
||||
dis_props.push_back(String(E.key) + ":" + String(F));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user