### 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
#include "nine_patch_rect.h"
#include "scene/scene_string_names.h"
#include "servers/rendering_server.h"
void NinePatchRect::_notification(int p_what) {
	switch (p_what) {
		case NOTIFICATION_DRAW: {
			if (texture.is_null()) {
				return;
			}
			Rect2 rect = Rect2(Point2(), get_size());
			Rect2 src_rect = region_rect;
			texture->get_rect_region(rect, src_rect, rect, src_rect);
			RID ci = get_canvas_item();
			RS::get_singleton()->canvas_item_add_nine_patch(ci, rect, src_rect, texture->get_rid(), Vector2(margin[SIDE_LEFT], margin[SIDE_TOP]), Vector2(margin[SIDE_RIGHT], margin[SIDE_BOTTOM]), RS::NinePatchAxisMode(axis_h), RS::NinePatchAxisMode(axis_v), draw_center);
		} break;
	}
}
Size2 NinePatchRect::get_minimum_size() const {
	return Size2(margin[SIDE_LEFT] + margin[SIDE_RIGHT], margin[SIDE_TOP] + margin[SIDE_BOTTOM]);
}
void NinePatchRect::_bind_methods() {