From 9955aa6970593b74c09cadd9dd8e6f21dfb96dcc Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Tue, 28 Jan 2014 20:12:56 +0100 Subject: [PATCH] STKMeshes: Support for transparent_add_color mat --- src/graphics/stkanimatedmesh.cpp | 2 ++ src/graphics/stkmesh.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/graphics/stkanimatedmesh.cpp b/src/graphics/stkanimatedmesh.cpp index 2f74fc861..25b782a12 100644 --- a/src/graphics/stkanimatedmesh.cpp +++ b/src/graphics/stkanimatedmesh.cpp @@ -107,6 +107,8 @@ isObjectPass(video::E_MATERIAL_TYPE type) return true; if (type == video::EMT_ONETEXTURE_BLEND) return true; + if (type == video::EMT_ONETEXTURE_BLEND) + return true; return false; } diff --git a/src/graphics/stkmesh.cpp b/src/graphics/stkmesh.cpp index 52347cfef..5f394004d 100644 --- a/src/graphics/stkmesh.cpp +++ b/src/graphics/stkmesh.cpp @@ -793,6 +793,8 @@ static bool isObject(video::E_MATERIAL_TYPE type) return true; if (type == video::EMT_ONETEXTURE_BLEND) return true; + if (type == video::EMT_TRANSPARENT_ADD_COLOR) + return true; return false; }