|
@@ -558,7 +558,7 @@ void EditorFeatureProfileManager::_class_list_item_selected() {
|
|
}
|
|
}
|
|
|
|
|
|
Variant md = item->get_metadata(0);
|
|
Variant md = item->get_metadata(0);
|
|
- if (md.get_type() == Variant::STRING || md.get_type() == Variant::STRING_NAME) {
|
|
|
|
|
|
+ if (md.is_string()) {
|
|
description_bit->parse_symbol("class|" + md.operator String() + "|");
|
|
description_bit->parse_symbol("class|" + md.operator String() + "|");
|
|
} else if (md.get_type() == Variant::INT) {
|
|
} else if (md.get_type() == Variant::INT) {
|
|
String feature_description = EditorFeatureProfile::get_feature_description(EditorFeatureProfile::Feature((int)md));
|
|
String feature_description = EditorFeatureProfile::get_feature_description(EditorFeatureProfile::Feature((int)md));
|
|
@@ -643,7 +643,7 @@ void EditorFeatureProfileManager::_class_list_item_edited() {
|
|
bool checked = item->is_checked(0);
|
|
bool checked = item->is_checked(0);
|
|
|
|
|
|
Variant md = item->get_metadata(0);
|
|
Variant md = item->get_metadata(0);
|
|
- if (md.get_type() == Variant::STRING || md.get_type() == Variant::STRING_NAME) {
|
|
|
|
|
|
+ if (md.is_string()) {
|
|
String class_selected = md;
|
|
String class_selected = md;
|
|
edited->set_disable_class(class_selected, !checked);
|
|
edited->set_disable_class(class_selected, !checked);
|
|
_save_and_update();
|
|
_save_and_update();
|
|
@@ -666,7 +666,7 @@ void EditorFeatureProfileManager::_class_list_item_collapsed(Object *p_item) {
|
|
}
|
|
}
|
|
|
|
|
|
Variant md = item->get_metadata(0);
|
|
Variant md = item->get_metadata(0);
|
|
- if (md.get_type() != Variant::STRING && md.get_type() != Variant::STRING_NAME) {
|
|
|
|
|
|
+ if (!md.is_string()) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -686,7 +686,7 @@ void EditorFeatureProfileManager::_property_item_edited() {
|
|
}
|
|
}
|
|
|
|
|
|
Variant md = class_item->get_metadata(0);
|
|
Variant md = class_item->get_metadata(0);
|
|
- if (md.get_type() != Variant::STRING && md.get_type() != Variant::STRING_NAME) {
|
|
|
|
|
|
+ if (!md.is_string()) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -699,7 +699,7 @@ void EditorFeatureProfileManager::_property_item_edited() {
|
|
bool checked = item->is_checked(0);
|
|
bool checked = item->is_checked(0);
|
|
|
|
|
|
md = item->get_metadata(0);
|
|
md = item->get_metadata(0);
|
|
- if (md.get_type() == Variant::STRING || md.get_type() == Variant::STRING_NAME) {
|
|
|
|
|
|
+ if (md.is_string()) {
|
|
String property_selected = md;
|
|
String property_selected = md;
|
|
edited->set_disable_class_property(class_name, property_selected, !checked);
|
|
edited->set_disable_class_property(class_name, property_selected, !checked);
|
|
_save_and_update();
|
|
_save_and_update();
|
|
@@ -732,7 +732,7 @@ void EditorFeatureProfileManager::_update_selected_profile() {
|
|
|
|
|
|
if (class_list->get_selected()) {
|
|
if (class_list->get_selected()) {
|
|
Variant md = class_list->get_selected()->get_metadata(0);
|
|
Variant md = class_list->get_selected()->get_metadata(0);
|
|
- if (md.get_type() == Variant::STRING || md.get_type() == Variant::STRING_NAME) {
|
|
|
|
|
|
+ if (md.is_string()) {
|
|
class_selected = md;
|
|
class_selected = md;
|
|
} else if (md.get_type() == Variant::INT) {
|
|
} else if (md.get_type() == Variant::INT) {
|
|
feature_selected = md;
|
|
feature_selected = md;
|