forked from bartvdbraak/blender
Fixing a crash created by an earlier GLSL lighting fix for dynamic loading. When implementing the fix I forgot to check for materials that did not have a blender shader (ie, non GLSL materials).
This commit is contained in:
parent
4497bd3b90
commit
1a98efa426
@ -88,8 +88,11 @@ public:
|
|||||||
|
|
||||||
virtual void Replace_IScene(SCA_IScene *val)
|
virtual void Replace_IScene(SCA_IScene *val)
|
||||||
{
|
{
|
||||||
mScene= static_cast<KX_Scene *>(val);
|
if (mBlenderShader)
|
||||||
mBlenderShader->SetScene(mScene);
|
{
|
||||||
|
mScene= static_cast<KX_Scene *>(val);
|
||||||
|
mBlenderShader->SetScene(mScene);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef DISABLE_PYTHON
|
#ifndef DISABLE_PYTHON
|
||||||
|
Loading…
Reference in New Issue
Block a user