[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3111] contrib/py/scripts/addons/ space_view3d_enhanced_3d_cursor.py: Quick fix for 2012-03-14 bug report in the tracker (when addon was enabled , switching window space type from 3D to another, e.g.

dima glib dima.glib at gmail.com
Wed Mar 14 19:14:04 CET 2012


Revision: 3111
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3111
Author:   dairin0d
Date:     2012-03-14 18:14:01 +0000 (Wed, 14 Mar 2012)
Log Message:
-----------
Quick fix for 2012-03-14 bug report in the tracker (when addon was enabled, switching window space type from 3D to another, e.g. UV, crashed Blender)

Modified Paths:
--------------
    contrib/py/scripts/addons/space_view3d_enhanced_3d_cursor.py

Modified: contrib/py/scripts/addons/space_view3d_enhanced_3d_cursor.py
===================================================================
--- contrib/py/scripts/addons/space_view3d_enhanced_3d_cursor.py	2012-03-14 14:48:03 UTC (rev 3110)
+++ contrib/py/scripts/addons/space_view3d_enhanced_3d_cursor.py	2012-03-14 18:14:01 UTC (rev 3111)
@@ -4057,11 +4057,15 @@
             self.just_initialized = False
         # ================== #
         
+        # Seems like recalc_csu() in this place causes trouble
+        # if space type is switched from 3D to e.g. UV
+        '''
         tfm_operator = CursorDynamicSettings.active_transform_operator
         if tfm_operator:
             CursorDynamicSettings.csu = tfm_operator.csu
         else:
             CursorDynamicSettings.recalc_csu(context, event.value)
+        '''
         
         return {'PASS_THROUGH'}
     



More information about the Bf-extensions-cvs mailing list