BGE: "Fix" for issue [#33663] "Objects Share Materials / Textures When Grouped In...
[blender.git] / source / gameengine / Converter / KX_BlenderSceneConverter.h
index f7723350eee7d7ee5bc45adc69e8d2349aa9f01c..06dac1707c5a22b72f9a879a369d7a0ece78a924 100644 (file)
@@ -91,6 +91,7 @@ class KX_BlenderSceneConverter : public KX_ISceneConverter
        bool                                    m_alwaysUseExpandFraming;
        bool                                    m_usemat;
        bool                                    m_useglslmat;
+       bool                                    m_use_mat_cache;
 
 public:
        KX_BlenderSceneConverter(
@@ -160,6 +161,10 @@ public:
        virtual void SetGLSLMaterials(bool val);
        virtual bool GetGLSLMaterials();
 
+       // cache materials during conversion
+       virtual void SetCacheMaterials(bool val);
+       virtual bool GetCacheMaterials();
+
        struct Scene* GetBlenderSceneForName(const STR_String& name);
 
 //     struct Main* GetMain() { return m_maggie; }