diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-12 20:06:26 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-12 20:06:26 +0100 |
commit | 797fb296f08b3d8f77f318ece2f203df225f5cdd (patch) | |
tree | 039f59154a29adf3d5f808df70d8e61e2f1a3d9a /editor/plugins/gradient_texture_2d_editor_plugin.cpp | |
parent | 73ab51465748a15ed4d80d66a44db83bfe574bb6 (diff) | |
parent | dfc4367a478f1d6c8f13aeb9d8e0be01156f5afb (diff) | |
download | redot-engine-797fb296f08b3d8f77f318ece2f203df225f5cdd.tar.gz |
Merge pull request #58517 from KoBeWi/size_matters
Add expand modes to TextureRect
Diffstat (limited to 'editor/plugins/gradient_texture_2d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/gradient_texture_2d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/gradient_texture_2d_editor_plugin.cpp b/editor/plugins/gradient_texture_2d_editor_plugin.cpp index 703a44403d..e03353a67b 100644 --- a/editor/plugins/gradient_texture_2d_editor_plugin.cpp +++ b/editor/plugins/gradient_texture_2d_editor_plugin.cpp @@ -178,7 +178,7 @@ void GradientTexture2DEditorRect::_notification(int p_what) { GradientTexture2DEditorRect::GradientTexture2DEditorRect() { checkerboard = memnew(TextureRect); checkerboard->set_stretch_mode(TextureRect::STRETCH_TILE); - checkerboard->set_ignore_texture_size(true); + checkerboard->set_expand_mode(TextureRect::EXPAND_IGNORE_SIZE); checkerboard->set_draw_behind_parent(true); add_child(checkerboard, false, INTERNAL_MODE_FRONT); |