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:
2010-07-11 09:31:19 +00:00
parent 4497bd3b90
commit 1a98efa426

View File

@@ -87,9 +87,12 @@ public:
);
virtual void Replace_IScene(SCA_IScene *val)
{
if (mBlenderShader)
{
mScene= static_cast<KX_Scene *>(val);
mBlenderShader->SetScene(mScene);
}
};
#ifndef DISABLE_PYTHON