diff options
| author | Juan Linietsky | 2017-05-17 07:36:47 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-05-17 07:37:45 -0300 |
| commit | 98a329670227c726a5d7a196e5cba8dbdd54301b (patch) | |
| tree | 7346f7a3e38eb35b784ac1a68a227d07cc8881b4 /editor/plugins/gradient_texture_editor_plugin.cpp | |
| parent | d801ff2b3db2de105c1b36a74ce116e360143d4e (diff) | |
| download | godot-98a329670227c726a5d7a196e5cba8dbdd54301b.tar.gz godot-98a329670227c726a5d7a196e5cba8dbdd54301b.tar.zst godot-98a329670227c726a5d7a196e5cba8dbdd54301b.zip | |
Diffstat (limited to 'editor/plugins/gradient_texture_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/gradient_texture_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/gradient_texture_editor_plugin.cpp b/editor/plugins/gradient_texture_editor_plugin.cpp index 41dd64d93..005633a10 100644 --- a/editor/plugins/gradient_texture_editor_plugin.cpp +++ b/editor/plugins/gradient_texture_editor_plugin.cpp @@ -48,7 +48,8 @@ GradientTextureEdit::GradientTextureEdit() { add_child(popup); checker = Ref<ImageTexture>(memnew(ImageTexture)); - checker->create_from_image(Image(checker_bg_png), ImageTexture::FLAG_REPEAT); + Ref<Image> checker_bg = memnew(Image(checker_bg_png)); + checker->create_from_image(checker_bg, ImageTexture::FLAG_REPEAT); } int GradientTextureEdit::_get_point_from_pos(int x) { |
