Fix Sprite3D alpha_cut member not being initialized

(cherry picked from commit a15721e5c9)
This commit is contained in:
Stefano Bonicatti 2017-12-17 21:32:24 +01:00 committed by Rémi Verschelde
parent e5979f5772
commit 1d0b8219ce
1 changed files with 1 additions and 0 deletions

View File

@ -299,6 +299,7 @@ SpriteBase3D::SpriteBase3D() {
for (int i = 0; i < FLAG_MAX; i++) for (int i = 0; i < FLAG_MAX; i++)
flags[i] = i == FLAG_TRANSPARENT || i == FLAG_DOUBLE_SIDED; flags[i] = i == FLAG_TRANSPARENT || i == FLAG_DOUBLE_SIDED;
alpha_cut = ALPHA_CUT_DISABLED;
axis = Vector3::AXIS_Z; axis = Vector3::AXIS_Z;
pixel_size = 0.01; pixel_size = 0.01;
modulate = Color(1, 1, 1, 1); modulate = Color(1, 1, 1, 1);