- 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)
This commit is contained in:
@@ -187,8 +187,14 @@ def execute(context):
|
||||
# restore the stdin
|
||||
sys.stdin = stdin_backup
|
||||
|
||||
# execute any hooks
|
||||
for func, args in execute.hooks:
|
||||
func(*args)
|
||||
|
||||
return {'FINISHED'}
|
||||
|
||||
execute.hooks = []
|
||||
|
||||
|
||||
def autocomplete(context):
|
||||
from console import intellisense
|
||||
|
||||
@@ -1696,7 +1696,7 @@ static int open_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
|
||||
cu = ob->data;
|
||||
font = cu->vfont;
|
||||
}
|
||||
printf("%s\n", font->name);
|
||||
|
||||
path = (font && strcmp(font->name, FO_BUILTIN_NAME) != 0)? font->name: U.fontdir;
|
||||
|
||||
if(RNA_property_is_set(op->ptr, "filepath"))
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user