Merge pull request #14784 from Smjert/fix/sprite3d-init

Fix Sprite3D alpha_cut member not being initialized
This commit is contained in:
Rémi Verschelde 2017-12-17 22:20:43 +01:00 committed by GitHub
commit 28ed96570c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);