Forgot to initialize sensor height when creating new camera.

This commit is contained in:
Sergey Sharybin
2011-11-04 22:13:30 +00:00
parent c13bf35c22
commit 2cc8d75bd8

View File

@@ -724,7 +724,8 @@ void *add_camera(const char *name)
cam= alloc_libblock(&G.main->camera, ID_CA, name);
cam->lens= 35.0f;
cam->sensor_x = 32.f;
cam->sensor_x= 32.0f;
cam->sensor_y= 18.0f;
cam->clipsta= 0.1f;
cam->clipend= 100.0f;
cam->drawsize= 0.5f;