From 35014aa741251e79c4cb4dffbe84580789059c5c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 20 Nov 2010 05:11:10 +0000 Subject: - add python/rna function region.tag_redraw() - removed print which was before NULL check, (possible crash) - add execute hooks for the python console (not used by any scripts yet) --- source/blender/makesrna/intern/rna_screen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/makesrna') diff --git a/source/blender/makesrna/intern/rna_screen.c b/source/blender/makesrna/intern/rna_screen.c index d6964f5d569..197a7266fea 100644 --- a/source/blender/makesrna/intern/rna_screen.c +++ b/source/blender/makesrna/intern/rna_screen.c @@ -176,6 +176,8 @@ static void rna_def_region(BlenderRNA *brna) RNA_def_property_int_sdna(prop, NULL, "winy"); RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_ui_text(prop, "Height", "Region height"); + + RNA_def_function(srna, "tag_redraw", "ED_region_tag_redraw"); } static void rna_def_screen(BlenderRNA *brna) -- cgit v1.2.3