diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-01-22 03:04:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-01-22 03:04:13 +0300 |
commit | 25372193f564b2a27b7d2739c8626e9c677932dd (patch) | |
tree | 930231bd8b76fef1daf75cba3e91d3997bb096a6 /source/blender/python/api2_2x/Camera.c | |
parent | a9cd5b808cea7c906146a2ebafc3d0be00076ebd (diff) |
Looking to see why SGI wont compile this.
fixed some getsetattr args that wernt cast to (void *)
this is now consistant with Object.c - but Im not sure why SGI has trouble.
Diffstat (limited to 'source/blender/python/api2_2x/Camera.c')
-rw-r--r-- | source/blender/python/api2_2x/Camera.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/python/api2_2x/Camera.c b/source/blender/python/api2_2x/Camera.c index 1104be63f88..870735e6bf9 100644 --- a/source/blender/python/api2_2x/Camera.c +++ b/source/blender/python/api2_2x/Camera.c @@ -82,10 +82,8 @@ Example::\n\ from Blender import Camera, Object, Scene\n\ c = Camera.New('ortho') # create new ortho camera data\n\ c.scale = 6.0 # set scale value\n\ - cur = Scene.getCurrent() # get current Scene\n\ - ob = Object.New('Camera') # make camera object\n\ - ob.link(c) # link camera data with this object\n\ - cur.link(ob) # link object into scene\n\ + scn = Scene.GetCurrent() # get current Scene\n\ + ob = scn.objects.new(c) # Make an object from this data in the scene\n\ cur.setCurrentCamera(ob) # make this camera the active"; static char M_Camera_New_doc[] = @@ -1146,11 +1144,11 @@ static PyGetSetDef BPy_Camera_getseters[] = { {"lens", (getter)getFloatAttr, (setter)setFloatAttrClamp, "lens angle for perspective cameras", - EXPP_CAM_ATTR_LENS}, + (void *)EXPP_CAM_ATTR_LENS}, {"scale", (getter)getFloatAttr, (setter)setFloatAttrClamp, "scale for ortho cameras", - EXPP_CAM_ATTR_SCALE}, + (void *)EXPP_CAM_ATTR_SCALE}, {"clipStart", (getter)getFloatAttr, (setter)setFloatAttrClamp, "the cameras clip start", @@ -1197,8 +1195,6 @@ static PyGetSetDef BPy_Camera_getseters[] = { }; - - /*****************************************************************************/ /* Python Camera_Type structure definition: */ /*****************************************************************************/ |