### Godot version

4.0-beta12

### System information

Windows11 Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce GTX 1080

### Issue description

Can not assign "SpriteFrames" resource file to SpriteFrames attribute in custom resource file, it alert "Recursion detected, unable to assign resource to property."


### Steps to reproduce

Please look uploaded project. try assign new_sprite_frames.tres to frames in custom_res.tres.

### Minimal reproduction project

[GodotCustomRes.zip](https://github.com/godotengine/godot/files/10419770/GodotCustomRes.zip)

Vector3i val = get_edited_object()->get(get_edited_property());
	setting = true;
	spin[0]->set_value(val.x);
	spin[1]->set_value(val.y);
	spin[2]->set_value(val.z);
	setting = false;
	_update_ratio();
}
void EditorPropertyVector3i::_update_ratio() {
	linked->set_modulate(Color(1, 1, 1, linked->is_pressed() ? 1.0 : 0.5));
	if (spin[0]->get_value() != 0 && spin[1]->get_value() != 0) {
		ratio_yx = spin[1]->get_value() / spin[0]->get_value();
		ratio_zx = spin[2]->get_value() / spin[0]->get_value();
		ratio_xy = spin[0]->get_value() / spin[1]->get_value();
		ratio_zy = spin[2]->get_value() / spin[1]->get_value();
		ratio_xz = spin[0]->get_value() / spin[2]->get_value();
		ratio_yz = spin[1]->get_value() / spin[2]->get_value();
	} else {
		ratio_yx = 1.0;
		ratio_zx = 1.0;
		ratio_xy = 1.0;
		ratio_zy = 1.0;
		ratio_xz = 1.0;
		ratio_yz = 1.0;
	}
}
void EditorPropertyVector3i::_notification(int p_what) {