diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-24 14:38:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-24 14:38:20 +0300 |
commit | 7735eccc54970262696f9603f6a88ce6d77eee50 (patch) | |
tree | 260f3df0d624a81c2acc5fa10ebdbc17d33e4eb6 /release/scripts | |
parent | 19819dcbc776b8cc17ade1654a8dba396094cf1e (diff) |
fix [#26545] Crash when changing values for properties after changing max-min
tried doing this smarter by validating the property exists in UI code before access but this ended up making it too complicated and also hard to account for possible access without checking every time.
for now just redraw all areas when a user property is changed.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 5d222168046..df51af25b02 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -772,7 +772,10 @@ class WM_OT_properties_edit(bpy.types.Operator): # otherwise existing buttons which reference freed # memory may crash blender [#26510] - context.area.tag_redraw() + # context.area.tag_redraw() + for win in context.window_manager.windows: + for area in win.screen.areas: + area.tag_redraw() return {'FINISHED'} @@ -918,4 +921,4 @@ def _webbrowser_bug_fix(): return not p.wait() import webbrowser - webbrowser.UnixBrowser._invoke = _invoke
\ No newline at end of file + webbrowser.UnixBrowser._invoke = _invoke |