diff --git a/cocos/3d/CCMesh.cpp b/cocos/3d/CCMesh.cpp index f683caf684..7b10693999 100644 --- a/cocos/3d/CCMesh.cpp +++ b/cocos/3d/CCMesh.cpp @@ -43,6 +43,7 @@ Mesh::Mesh() , _visibleChanged(nullptr) , _glProgramState(nullptr) , _blend(BlendFunc::ALPHA_NON_PREMULTIPLIED) +, _isTransparent(false) { } diff --git a/cocos/3d/CCMesh.h b/cocos/3d/CCMesh.h index c55f949460..b8c774a680 100644 --- a/cocos/3d/CCMesh.h +++ b/cocos/3d/CCMesh.h @@ -132,8 +132,8 @@ protected: Texture2D* _texture; //texture that submesh is using MeshSkin* _skin; //skin bool _visible; // is the submesh visible + bool _isTransparent; // is this mesh transparent, it is a property of material in fact - //since 3.3 std::string _name; MeshIndexData* _meshIndexData; GLProgramState* _glProgramState;