### Godot version

v4.0.1.stable.official [cacf49999]

### System information

Windows 10

### Issue description

If you use Sprite2D with a regular CompressedTexture and set a Region on it, then use a Sprite2D with a CanvasTexture and a different texture in the diffuse, and try to set a Region, the Region Editor display will show the texture from the first sprite2D node. I would expect it to show the diffuse texture from the current Sprite2D.
![image](https://user-images.githubusercontent.com/7292421/231493673-4eb152e0-81ed-4248-8465-71242c291cd2.png)
![image](https://user-images.githubusercontent.com/7292421/231493749-6173993b-e77c-4899-961e-9a055c07e351.png)




### Steps to reproduce

Make a sprite2D node
add a texture to it 
set Region to Enabled
click Edit Region under 'Region'
set any region

Make another sprite2D node
add a CanvasTexture to it
add a different texture to the Diffuse part
set Region to Enabled
click Edit Region under 'Region'
see wrong texture

### Minimal reproduction project

[RegionEditorBug.zip](https://github.com/godotengine/godot/files/11212626/RegionEditorBug.zip)

Ref<StyleBoxFlat> style_editor_help = style_default->duplicate();
	style_editor_help->set_bg_color(dark_color_2);
	style_editor_help->set_border_color(dark_color_3);
	theme->set_stylebox("background", "EditorHelp", style_editor_help);
	theme->set_color("title_color", "EditorHelp", accent_color);
	theme->set_color("headline_color", "EditorHelp", mono_color);
	theme->set_color("text_color", "EditorHelp", font_color);
	theme->set_color("comment_color", "EditorHelp", font_color * Color(1, 1, 1, 0.6));
	theme->set_color("symbol_color", "EditorHelp", font_color * Color(1, 1, 1, 0.6));
	theme->set_color("value_color", "EditorHelp", font_color * Color(1, 1, 1, 0.6));
	theme->set_color("qualifier_color", "EditorHelp", font_color * Color(1, 1, 1, 0.8));
	theme->set_color("type_color", "EditorHelp", accent_color.lerp(font_color, 0.5));
	theme->set_color("selection_color", "EditorHelp", selection_color);
	theme->set_color("link_color", "EditorHelp", accent_color.lerp(mono_color, 0.8));
	theme->set_color("code_color", "EditorHelp", accent_color.lerp(mono_color, 0.6));
	theme->set_color("kbd_color", "EditorHelp", accent_color.lerp(property_color, 0.6));
	theme->set_color("code_bg_color", "EditorHelp", dark_color_3);
	theme->set_color("kbd_bg_color", "EditorHelp", dark_color_1);
	theme->set_color("param_bg_color", "EditorHelp", dark_color_1);
	theme->set_constant("line_separation", "EditorHelp", Math::round(6 * EDSCALE));
	theme->set_constant("table_h_separation", "EditorHelp", 16 * EDSCALE);
	theme->set_constant("table_v_separation", "EditorHelp", 6 * EDSCALE);
	theme->set_constant("text_highlight_h_padding", "EditorHelp", 1 * EDSCALE);
	theme->set_constant("text_highlight_v_padding", "EditorHelp", 2 * EDSCALE);
	
	theme->set_stylebox("panel", "Panel", make_flat_stylebox(dark_color_1, 6, 4, 6, 4, corner_width));
	theme->set_stylebox("PanelForeground", "EditorStyles", style_default);
	
	theme->set_stylebox("normal", "Label", style_empty);
	theme->set_color("font_color", "Label", font_color);