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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user