### 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)

if (p_name == "x") {
			spin[1]->set_value(spin[0]->get_value() * ratio_yx);
			spin[2]->set_value(spin[0]->get_value() * ratio_zx);
		}
		if (p_name == "y") {
			spin[0]->set_value(spin[1]->get_value() * ratio_xy);
			spin[2]->set_value(spin[1]->get_value() * ratio_zy);
		}
		if (p_name == "z") {
			spin[0]->set_value(spin[2]->get_value() * ratio_xz);
			spin[1]->set_value(spin[2]->get_value() * ratio_yz);
		}
		setting = false;
	}
	Vector3 v3;
	v3.x = spin[0]->get_value();
	v3.y = spin[1]->get_value();
	v3.z = spin[2]->get_value();
	if (angle_in_radians) {
		v3.x = Math::deg_to_rad(v3.x);
		v3.y = Math::deg_to_rad(v3.y);
		v3.z = Math::deg_to_rad(v3.z);
	}
	emit_changed(get_edited_property(), v3, linked->is_pressed() ? "" : p_name);
}
void EditorPropertyVector3::update_property() {
	update_using_vector(get_edited_object()->get(get_edited_property()));
	_update_ratio();
}
void EditorPropertyVector3::_update_ratio() {