### 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->setup_and_show();
	spin->get_line_edit()->set_text(TS->format_number(rtos(get_edited_object()->get(get_edited_property()))));
	setting = false;
	spin->show();
}
void EditorPropertyEasing::_spin_value_changed(double p_value) {
	if (setting) {
		return;
	}
	
	
	if (Math::is_zero_approx(p_value)) {
		p_value = 0.00001;
	}
	
	
	p_value = CLAMP(p_value, -1'000'000, 1'000'000);
	if (positive_only) {
		
		p_value = MAX(0.0, p_value);
	}
	emit_changed(get_edited_property(), p_value);
	_spin_focus_exited();
}
void EditorPropertyEasing::_spin_focus_exited() {