From fbb8672da459a027a7dd3ccb798b2f5db1c73c59 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 1 Mar 2010 00:03:51 +0000 Subject: replace operator options bl_undo and bl_register with bl_options eg. bl_options = {'REGISTER', 'UNDO', 'BLOCKING', 'GRAB_POINTER'} This didnt exist when operators were originally wrapped. --- source/blender/python/intern/bpy_rna_callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python') diff --git a/source/blender/python/intern/bpy_rna_callback.c b/source/blender/python/intern/bpy_rna_callback.c index ab97d7c3446..c71429a76af 100644 --- a/source/blender/python/intern/bpy_rna_callback.c +++ b/source/blender/python/intern/bpy_rna_callback.c @@ -71,7 +71,7 @@ PyObject *pyrna_callback_add(BPy_StructRNA *self, PyObject *args) if(RNA_struct_is_a(self->ptr.type, &RNA_Region)) { - EnumPropertyItem region_draw_mode_items[] = { + static EnumPropertyItem region_draw_mode_items[] = { {REGION_DRAW_POST_VIEW, "POST_VIEW", 0, "Pose View", ""}, {REGION_DRAW_POST_PIXEL, "POST_PIXEL", 0, "Post Pixel", ""}, {REGION_DRAW_PRE_VIEW, "PRE_VIEW", 0, "Pre View", ""}, -- cgit v1.2.3