diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-09-18 04:54:43 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-09-18 04:54:43 +0400 |
commit | 775f006bf1202abb5b9f69ecc3ab4cd1dd28a508 (patch) | |
tree | fe3afcf8798f65fc212c52bb8481ad3a73d43f88 /source/blender/python/api2_2x/Scene.c | |
parent | da773eee1811900c6250629baa9b923c11591930 (diff) |
Exppython:
- Window: implemented .SetCursorPos, .GetViewMatrix, .GetViewVector
- Lamp: .setDist was not in the methods table:
Fix by new bpython developer Stephen Swaney
- Scene: .frameSettings was crashing Blender (pointed by jms)
- Added site dirs to sys.path (patch by Stephen Swaney)
- NMesh: small internal change (added pointer to parent object)
- Object: function NMesh_FromPyObject has a new arg: pointer to obj
- Docs: added docs for implemented functions, plus some more info
Diffstat (limited to 'source/blender/python/api2_2x/Scene.c')
-rw-r--r-- | source/blender/python/api2_2x/Scene.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Scene.c b/source/blender/python/api2_2x/Scene.c index b6b55c2d50b..919fb1fb7a4 100644 --- a/source/blender/python/api2_2x/Scene.c +++ b/source/blender/python/api2_2x/Scene.c @@ -152,7 +152,7 @@ static PyMethodDef BPy_Scene_methods[] = { {"currentFrame", (PyCFunction)Scene_currentFrame, METH_VARARGS, "(frame) - If frame is given, the current frame is set and" "\nreturned in any case"}, - {"frameSettings", (PyCFunction)Scene_frameSettings, METH_NOARGS, + {"frameSettings", (PyCFunction)Scene_frameSettings, METH_VARARGS, "(start, end, current) - Sets or retrieves the Scene's frame" " settings.\nIf the frame arguments are specified, they are set. " "A tuple (start, end, current) is returned in any case."}, @@ -539,6 +539,10 @@ static PyObject *Scene_update (BPy_Scene *self, PyObject *args) return EXPP_ReturnPyObjError (PyExc_TypeError, "expected nothing or int (0 or 1) argument"); +/* Under certain circunstances, sort_baselist *here* can crash Blender. + * A "RuntimeError: max recursion limit" happens when a scriptlink + * on frame change has scene.update(1). + * Investigate better how to avoid this. */ if (!full) sort_baselist (scene); |