diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-15 12:00:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-15 12:00:09 +0300 |
commit | 91d544f322d9833c9ef5fffa7ff000dfd4cb40ac (patch) | |
tree | 7c638439aebfcdc03cb9efe9fafd47c0994c06e3 | |
parent | df9bedddcfd1cc4888eeafb71586830e95d03ebc (diff) |
fix for very old crash when setting an empty object as the camera and using stars.
-rw-r--r-- | source/blender/render/intern/source/convertblender.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/render/intern/source/convertblender.c b/source/blender/render/intern/source/convertblender.c index 89176944652..08808561c9d 100644 --- a/source/blender/render/intern/source/convertblender.c +++ b/source/blender/render/intern/source/convertblender.c @@ -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; |