diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2016-03-04 19:58:35 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2016-03-04 20:13:01 +0300 |
commit | fe7bab13439fe6f0181f6661fbf7bb7ae18f5310 (patch) | |
tree | a7dc136840a96365445f6897897c1bf2f59b38a9 /source/blender/makesrna/intern/rna_userdef.c | |
parent | a3de3a03c879ce03174fe9ff096a67805669a4ba (diff) |
Fix changing virtual pixelsize having no affect if only main window is open
Changing virtual pixelsize only had an affect when a second window was open. (Was also possible to trigger update by opening another window.)
Steps to reproduce:
* Change any editor into user preferences *in main window*
* Change virtual pixel size -> nothing happens
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index f4c6fdf42f5..657a8a3f514 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -148,8 +148,7 @@ static void rna_userdef_virtual_pixel_update(Main *UNUSED(bmain), Scene *UNUSED( { /* font's are stored at each DPI level, without this we can easy load 100's of fonts */ BLF_cache_clear(); - - BKE_userdef_state(); + WM_main_add_notifier(NC_WINDOW, NULL); /* full redraw */ WM_main_add_notifier(NC_SCREEN | NA_EDITED, NULL); /* refresh region sizes */ } |