### Godot version

v4.1.beta1.mono.official [828ec2c5d]

### System information

Kubuntu 22.04 Compatability

### Issue description

As funky as it sounds I tried using a atlas texture as the texture for a nice patch and discovered that the nine patch is not updated in the scene when the atlas texture region is changed 

### Steps to reproduce

- Add a altas texture to the nice patch node
- Mess with the atlas texture's region property (not the nice slices region property)
- See it doesn't update in the scene


### Minimal reproduction project

I will upload one if needed as it stand it seems like a very simple thing to reproduce
ERR_FAIL_INDEX((int)p_side, 4);
	if (margin[p_side] == p_size) {
		return;
	}
	margin[p_side] = p_size;
	queue_redraw();
	update_minimum_size();
}
int NinePatchRect::get_patch_margin(Side p_side) const {
	ERR_FAIL_INDEX_V((int)p_side, 4, 0);
	return margin[p_side];
}
void NinePatchRect::set_region_rect(const Rect2 &p_region_rect) {
	if (region_rect == p_region_rect) {
		return;
	}
	region_rect = p_region_rect;
	item_rect_changed();
}
Rect2 NinePatchRect::get_region_rect() const {
	return region_rect;
}
void NinePatchRect::set_draw_center(bool p_enabled) {
	if (draw_center == p_enabled) {
		return;
	}
	draw_center = p_enabled;
	queue_redraw();
}
bool NinePatchRect::is_draw_center_enabled() const {