diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-07-17 06:31:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-07-17 06:31:28 +0400 |
commit | 70f6255433fcb1f5551199ef7a285a9ab80a3318 (patch) | |
tree | 1471a4451ee14d5b29ed37e2dc86300b01180698 /source/blender/editors | |
parent | c6c853d88a9c5ff12b7a56e4bdaca1757f160997 (diff) |
bpy rna
Calling rna functions with invalid keywords, too many keywords and too many args would fail silently
- now raise an error with invalid keywords and a list of valid ones, raise an error when too many args are given.
- calling rna functions would alloc a ParameterList each time, changed to use a stack variable (2 pointers and an int).
- store the number of parameters ParameterList
- python exception types were wrong in many cases, (using attribute error rather then type error)
- fixes to small errors in python UI scripts.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_console/space_console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_console/space_console.c b/source/blender/editors/space_console/space_console.c index f5bccbce3f5..4585eef2579 100644 --- a/source/blender/editors/space_console/space_console.c +++ b/source/blender/editors/space_console/space_console.c @@ -60,7 +60,7 @@ #include "console_intern.h" // own include -static void console_update_rect(bContext *C, ARegion *ar) +static void console_update_rect(const bContext *C, ARegion *ar) { SpaceConsole *sc= CTX_wm_space_console(C); View2D *v2d= &ar->v2d; |