fix for very old crash when setting an empty object as the camera and using stars.

This commit is contained in:
2010-11-15 09:00:09 +00:00
parent df9bedddcf
commit 91d544f322

View File

@@ -199,9 +199,10 @@ void RE_make_stars(Render *re, Scene *scenev3d, void (*initfunc)(void),
* x = -z | +z,
* y = -z | +z
*/
if(scene->camera==NULL)
if(scene->camera==NULL || scene->camera->type != OB_CAMERA)
return;
camera = scene->camera->data;
clipend = camera->clipend;