[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35746] trunk/blender/release/scripts/ startup/bl_operators/wm.py: fix [#26545] Crash when changing values for properties after changing max-min

Campbell Barton ideasman42 at gmail.com
Thu Mar 24 12:38:20 CET 2011


Revision: 35746
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35746
Author:   campbellbarton
Date:     2011-03-24 11:38:20 +0000 (Thu, 24 Mar 2011)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_operators/wm.py

Modified: trunk/blender/release/scripts/startup/bl_operators/wm.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/wm.py	2011-03-24 10:54:42 UTC (rev 35745)
+++ trunk/blender/release/scripts/startup/bl_operators/wm.py	2011-03-24 11:38:20 UTC (rev 35746)
@@ -772,7 +772,9 @@
 
         # otherwise existing buttons which reference freed
         # memory may crash blender [#26510]
-        context.area.tag_redraw()
+        # context.area.tag_redraw()
+        for area in context.screen.areas:
+            area.tag_redraw()
 
         return {'FINISHED'}
 




More information about the Bf-blender-cvs mailing list