added blender-camera export to fbx
py api was massing shiftX/Y
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user