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

setting = true;
	spin[0]->set_value(p_transform.basis[0][0]);
	spin[1]->set_value(p_transform.basis[0][1]);
	spin[2]->set_value(p_transform.basis[0][2]);
	spin[3]->set_value(p_transform.origin[0]);
	spin[4]->set_value(p_transform.basis[1][0]);
	spin[5]->set_value(p_transform.basis[1][1]);
	spin[6]->set_value(p_transform.basis[1][2]);
	spin[7]->set_value(p_transform.origin[1]);
	spin[8]->set_value(p_transform.basis[2][0]);
	spin[9]->set_value(p_transform.basis[2][1]);
	spin[10]->set_value(p_transform.basis[2][2]);
	spin[11]->set_value(p_transform.origin[2]);
	setting = false;
}
void EditorPropertyTransform3D::_notification(int p_what) {
	switch (p_what) {
		case NOTIFICATION_ENTER_TREE:
		case NOTIFICATION_THEME_CHANGED: {
			const Color *colors = _get_property_colors();
			for (int i = 0; i < 12; i++) {
				spin[i]->add_theme_color_override("label_color", colors[i % 4]);
			}
		} break;
	}
}
void EditorPropertyTransform3D::_bind_methods() {
}
void EditorPropertyTransform3D::setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix) {