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:
authorCampbell Barton <ideasman42@gmail.com>2007-04-27 04:33:07 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-04-27 04:33:07 +0400
commit0a9dc31c8b05ad479eaf22cf99300a9385d7d8c7 (patch)
treeac93d579482139934751355a0f8cbbbbdb70eb19 /source
parent2e134e84abf0dfc06520e4e2001941ef3ccc2eb0 (diff)
added blender-camera export to fbx
py api was massing shiftX/Y
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/Camera.c10
-rw-r--r--source/blender/python/api2_2x/doc/Camera.py4
2 files changed, 11 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Camera.c b/source/blender/python/api2_2x/Camera.c
index f77499b6c03..6f389396eb7 100644
--- a/source/blender/python/api2_2x/Camera.c
+++ b/source/blender/python/api2_2x/Camera.c
@@ -873,7 +873,7 @@ static PyGetSetDef BPy_Camera_getseters[] = {
(getter)Camera_getIpo, (setter)Camera_setIpo,
"Cameras ipo",
NULL},
-
+
/* float settings */
{"lens",
(getter)getFloatAttr, (setter)setFloatAttrClamp,
@@ -891,6 +891,14 @@ static PyGetSetDef BPy_Camera_getseters[] = {
(getter)getFloatAttr, (setter)setFloatAttrClamp,
"the cameras clip end",
(void *)EXPP_CAM_ATTR_CLIPEND},
+ {"shiftX",
+ (getter)getFloatAttr, (setter)setFloatAttrClamp,
+ "the cameras X perspective shift",
+ (void *)EXPP_CAM_ATTR_SHIFTX},
+ {"shiftY",
+ (getter)getFloatAttr, (setter)setFloatAttrClamp,
+ "the cameras Y perspective shift",
+ (void *)EXPP_CAM_ATTR_SHIFTY},
{"dofDist",
(getter)getFloatAttr, (setter)setFloatAttrClamp,
"cameras dof distance",
diff --git a/source/blender/python/api2_2x/doc/Camera.py b/source/blender/python/api2_2x/doc/Camera.py
index 5d4b5670822..2576c2cb740 100644
--- a/source/blender/python/api2_2x/doc/Camera.py
+++ b/source/blender/python/api2_2x/doc/Camera.py
@@ -54,8 +54,8 @@ class Camera:
@ivar clipStart: The clip start value in [0.0, 100.0].
@ivar clipEnd: The clip end value in [1.0, 5000.0].
@ivar dofDist: The dofDist value in [0.0, 5000.0].
- @ivar shiftx: The horizontal offset of the camera [-2.0, 2.0].
- @ivar shifty: The vertical offset of the camera [-2.0, 2.0].
+ @ivar shiftX: The horizontal offset of the camera [-2.0, 2.0].
+ @ivar shiftY: The vertical offset of the camera [-2.0, 2.0].
@ivar alpha: The PassePart alpha [0.0, 1.0].
@ivar drawSize: The display size for the camera an the 3d view [0.1, 10.0].
@type ipo: Blender Ipo