@@ -558,7 +558,7 @@ void EditorFeatureProfileManager::_class_list_item_selected() {
558558 }
559559
560560 Variant md = item->get_metadata (0 );
561- if (md.get_type () == Variant::STRING || md. get_type () == Variant::STRING_NAME ) {
561+ if (md.is_string () ) {
562562 description_bit->parse_symbol (" class|" + md.operator String () + " |" );
563563 } else if (md.get_type () == Variant::INT) {
564564 String feature_description = EditorFeatureProfile::get_feature_description (EditorFeatureProfile::Feature ((int )md));
@@ -643,7 +643,7 @@ void EditorFeatureProfileManager::_class_list_item_edited() {
643643 bool checked = item->is_checked (0 );
644644
645645 Variant md = item->get_metadata (0 );
646- if (md.get_type () == Variant::STRING || md. get_type () == Variant::STRING_NAME ) {
646+ if (md.is_string () ) {
647647 String class_selected = md;
648648 edited->set_disable_class (class_selected, !checked);
649649 _save_and_update ();
@@ -666,7 +666,7 @@ void EditorFeatureProfileManager::_class_list_item_collapsed(Object *p_item) {
666666 }
667667
668668 Variant md = item->get_metadata (0 );
669- if (md. get_type () != Variant::STRING && md.get_type () != Variant::STRING_NAME ) {
669+ if (! md.is_string () ) {
670670 return ;
671671 }
672672
@@ -686,7 +686,7 @@ void EditorFeatureProfileManager::_property_item_edited() {
686686 }
687687
688688 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 () ) {
690690 return ;
691691 }
692692
@@ -699,7 +699,7 @@ void EditorFeatureProfileManager::_property_item_edited() {
699699 bool checked = item->is_checked (0 );
700700
701701 md = item->get_metadata (0 );
702- if (md.get_type () == Variant::STRING || md. get_type () == Variant::STRING_NAME ) {
702+ if (md.is_string () ) {
703703 String property_selected = md;
704704 edited->set_disable_class_property (class_name, property_selected, !checked);
705705 _save_and_update ();
@@ -732,7 +732,7 @@ void EditorFeatureProfileManager::_update_selected_profile() {
732732
733733 if (class_list->get_selected ()) {
734734 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 () ) {
736736 class_selected = md;
737737 } else if (md.get_type () == Variant::INT) {
738738 feature_selected = md;
0 commit comments