From 410d09525f147ad894dd4bf4851653435c76bfc6 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Fri, 29 May 2015 16:38:42 +0800 Subject: [PATCH] setTransparent for mesh command --- cocos/3d/CCMesh.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos/3d/CCMesh.cpp b/cocos/3d/CCMesh.cpp index 30688d27bd..b801cb25d9 100644 --- a/cocos/3d/CCMesh.cpp +++ b/cocos/3d/CCMesh.cpp @@ -350,6 +350,7 @@ void Mesh::draw(Renderer* renderer, float globalZOrder, const Mat4& transform, u _meshCommand.setSkipBatching(isTransparent); + _meshCommand.setTransparent(isTransparent); // set default uniforms for Mesh // 'u_color' and others