diff options
author | Stefano Bonicatti <smjert@gmail.com> | 2017-12-17 21:32:24 +0100 |
---|---|---|
committer | Stefano Bonicatti <smjert@gmail.com> | 2017-12-17 22:07:43 +0100 |
commit | a15721e5c9bee3d892f4e747aa544d5f0e7db4e3 (patch) | |
tree | b05b3bc7c4395bb6598284a7b672d330e70ea44a | |
parent | 1ef123c57db0ab5f6395dd5e206234b0ed03f7b6 (diff) |
Fix Sprite3D alpha_cut member not being initialized
-rw-r--r-- | scene/3d/sprite_3d.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp index 18ebc22c8b..2ecc445663 100644 --- a/scene/3d/sprite_3d.cpp +++ b/scene/3d/sprite_3d.cpp @@ -294,6 +294,7 @@ SpriteBase3D::SpriteBase3D() { for (int i = 0; i < FLAG_MAX; i++) flags[i] = i == FLAG_TRANSPARENT || i == FLAG_DOUBLE_SIDED; + alpha_cut = ALPHA_CUT_DISABLED; axis = Vector3::AXIS_Z; pixel_size = 0.01; modulate = Color(1, 1, 1, 1); |