diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-01-29 00:28:10 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-01-29 00:28:10 +0100 |
commit | b4f0d4c7db295158ddf35bad770a2c9d976013a6 (patch) | |
tree | 1015f6f88fcda7b32f81043faecf50e670887faa /scene | |
parent | ffa566c770a859628900fe85f41aec065d116b9f (diff) |
Decrease the default GradientTexture and CurveTexture size
This provides better usability when a GradientTexture or CurveTexture
is added to a Control node.
Visual appearance of most GradientTextures and CurveTextures will
be unaffected.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/texture.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/resources/texture.h b/scene/resources/texture.h index c3f29ad417..8075497c42 100644 --- a/scene/resources/texture.h +++ b/scene/resources/texture.h @@ -595,7 +595,7 @@ public: private: mutable RID _texture; Ref<Curve> _curve; - int _width = 2048; + int _width = 256; int _current_width = 0; TextureMode texture_mode = TEXTURE_MODE_RGB; TextureMode _current_texture_mode = TEXTURE_MODE_RGB; @@ -637,7 +637,7 @@ private: Ref<Curve> _curve_x; Ref<Curve> _curve_y; Ref<Curve> _curve_z; - int _width = 2048; + int _width = 256; int _current_width = 0; void _update(); @@ -685,7 +685,7 @@ private: Ref<Gradient> gradient; bool update_pending = false; RID texture; - int width = 2048; + int width = 256; bool use_hdr = false; void _queue_update(); |