diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2005-03-01 05:37:19 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2005-03-01 05:37:19 +0300 |
commit | 52b84f0e6930ae80e05442d2a88810ae517b586a (patch) | |
tree | 00872d695b7fcf48e21621ba0cd1420683764195 /source/blender/python/api2_2x/doc | |
parent | 6c62b0d8b7ec9a4513304dd817d7b7a3a5f72f65 (diff) |
BPython:
- Gert de Roost reported an inconsistency between nmesh.getMode and .setMode. Now .setMode() optionally accepts an int value, as returned by getMode().
- Campbell Barton pointed that object.getData(name_only=True) was by mistake returning the obj name, not the obdata name, as it should. Fixed now.
- small doc updates
Thanks both for the reports.
Diffstat (limited to 'source/blender/python/api2_2x/doc')
-rw-r--r-- | source/blender/python/api2_2x/doc/NMesh.py | 5 | ||||
-rw-r--r-- | source/blender/python/api2_2x/doc/Window.py | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/doc/NMesh.py b/source/blender/python/api2_2x/doc/NMesh.py index 3f06d2bbe89..07c86cbbf55 100644 --- a/source/blender/python/api2_2x/doc/NMesh.py +++ b/source/blender/python/api2_2x/doc/NMesh.py @@ -580,8 +580,9 @@ class NMesh: Set the mode flags for this mesh. Given mode strings turn the mode "on". Modes not passed in are turned "off", so setMode() (without arguments) unsets all mode flags. - @type m: string - @param m: mode string. From none to 5 can be given: + @type m: string or int (bitflag) + @param m: mode string or int. An int (see L{Modes}) or from none to 5 + strings can be given: - "NoVNormalsFlip" - "TwoSided" - "AutoSmooth" diff --git a/source/blender/python/api2_2x/doc/Window.py b/source/blender/python/api2_2x/doc/Window.py index bde72cc815c..348749fae7e 100644 --- a/source/blender/python/api2_2x/doc/Window.py +++ b/source/blender/python/api2_2x/doc/Window.py @@ -280,13 +280,20 @@ def SetViewQuat (quat): @param quat: four floats or a list of four floats. """ -def GetViewOffset (ofs): +def GetViewOffset (): """ Get the current VIEW3D offset values. @rtype: list of floats @return: a list with three floats: [x,y,z]. """ +def SetViewOffset (ofs): + """ + Set the current VIEW3D offset values. + @type ofs: 3 floats or list of 3 floats + @param ofs: the new view offset values. + """ + def CameraView (camtov3d = 0): """ Set the current VIEW3D view to the active camera's view. If there's no |