Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-11-05 02:13:30 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-11-05 02:13:30 +0400
commit2cc8d75bd8e7698bbefd7efb1d0949c857c137c6 (patch)
treef64a474f20233c127fa3273c804bf464a86d6ddc /source
parentc13bf35c22c20ffebb39202540ef7929e3a90341 (diff)
Forgot to initialize sensor height when creating new camera.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/object.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index 9a0dbd2a2eb..a7acf096448 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -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;