From 83de5cb30831328548502126dff84ffdb72544f2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 11 Nov 2012 01:54:30 +0000 Subject: bge mesh conversion speedup, avoid calling ConvertMaterial() on every face. now do per material bucket. --- source/gameengine/Ketsji/BL_Material.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'source/gameengine/Ketsji/BL_Material.h') diff --git a/source/gameengine/Ketsji/BL_Material.h b/source/gameengine/Ketsji/BL_Material.h index 082e265f387..ef180ed2126 100644 --- a/source/gameengine/Ketsji/BL_Material.h +++ b/source/gameengine/Ketsji/BL_Material.h @@ -89,17 +89,11 @@ public: EnvMap* cubemap[MAXTEX]; unsigned int m_mcol; /* for text color (only) */ - MT_Point2 uv[4]; - MT_Point2 uv2[4]; - STR_String uvName; STR_String uv2Name; - void SetConversionUV(const STR_String& name, MT_Point2 *uv); - void GetConversionUV(MT_Point2 *uv); - - void SetConversionUV2(const STR_String& name, MT_Point2 *uv); - void GetConversionUV2(MT_Point2 *uv); + void SetUVLayerName(const STR_String &name); + void SetUVLayerName2(const STR_String &name); void SetSharedMaterial(bool v); bool IsShared(); -- cgit v1.2.3