bugfix: [#31757] setGLSLMaterialSetting has no effect

original patch by me, with contribution from HG1 and Florian Völker

bug introduced in rev. 40113
This commit is contained in:
Dalai Felinto
2013-05-08 21:43:35 +00:00
parent e0edac4952
commit 102c0d76e9

View File

@@ -1183,6 +1183,10 @@ static PyObject *gPySetGLSLMaterialSetting(PyObject *,
else
gs->glslflag |= flag;
/* temporarily store the glsl settings in the scene for the GLSL materials */
GameData *gm= &(gp_KetsjiScene->GetBlenderScene()->gm);
gm->flag = gs->glslflag;
/* display lists and GLSL materials need to be remade */
if (sceneflag != gs->glslflag) {
GPU_materials_free();