@@ -558,7 +558,7 @@ void EditorFeatureProfileManager::_class_list_item_selected() {
558
558
}
559
559
560
560
Variant md = item->get_metadata (0 );
561
- if (md.get_type () == Variant::STRING || md. get_type () == Variant::STRING_NAME ) {
561
+ if (md.is_string () ) {
562
562
description_bit->parse_symbol (" class|" + md.operator String () + " |" );
563
563
} else if (md.get_type () == Variant::INT) {
564
564
String feature_description = EditorFeatureProfile::get_feature_description (EditorFeatureProfile::Feature ((int )md));
@@ -643,7 +643,7 @@ void EditorFeatureProfileManager::_class_list_item_edited() {
643
643
bool checked = item->is_checked (0 );
644
644
645
645
Variant md = item->get_metadata (0 );
646
- if (md.get_type () == Variant::STRING || md. get_type () == Variant::STRING_NAME ) {
646
+ if (md.is_string () ) {
647
647
String class_selected = md;
648
648
edited->set_disable_class (class_selected, !checked);
649
649
_save_and_update ();
@@ -666,7 +666,7 @@ void EditorFeatureProfileManager::_class_list_item_collapsed(Object *p_item) {
666
666
}
667
667
668
668
Variant md = item->get_metadata (0 );
669
- if (md. get_type () != Variant::STRING && md.get_type () != Variant::STRING_NAME ) {
669
+ if (! md.is_string () ) {
670
670
return ;
671
671
}
672
672
@@ -686,7 +686,7 @@ void EditorFeatureProfileManager::_property_item_edited() {
686
686
}
687
687
688
688
Variant md = class_item->get_metadata (0 );
689
- if (md. get_type () != Variant::STRING && md.get_type () != Variant::STRING_NAME ) {
689
+ if (! md.is_string () ) {
690
690
return ;
691
691
}
692
692
@@ -699,7 +699,7 @@ void EditorFeatureProfileManager::_property_item_edited() {
699
699
bool checked = item->is_checked (0 );
700
700
701
701
md = item->get_metadata (0 );
702
- if (md.get_type () == Variant::STRING || md. get_type () == Variant::STRING_NAME ) {
702
+ if (md.is_string () ) {
703
703
String property_selected = md;
704
704
edited->set_disable_class_property (class_name, property_selected, !checked);
705
705
_save_and_update ();
@@ -732,7 +732,7 @@ void EditorFeatureProfileManager::_update_selected_profile() {
732
732
733
733
if (class_list->get_selected ()) {
734
734
Variant md = class_list->get_selected ()->get_metadata (0 );
735
- if (md.get_type () == Variant::STRING || md. get_type () == Variant::STRING_NAME ) {
735
+ if (md.is_string () ) {
736
736
class_selected = md;
737
737
} else if (md.get_type () == Variant::INT) {
738
738
feature_selected = md;
0 commit comments