[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3638] contrib/py/scripts/addons/ space_view3d_enhanced_3d_cursor.py: Restored the rendering of guides and normals when cursor is hidden

dima glib dima.glib at gmail.com
Thu Jul 19 21:31:49 CEST 2012


Revision: 3638
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3638
Author:   dairin0d
Date:     2012-07-19 19:31:49 +0000 (Thu, 19 Jul 2012)
Log Message:
-----------
Restored the rendering of guides and normals when cursor is hidden

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-07-19 19:13:11 UTC (rev 3637)
+++ contrib/py/scripts/addons/space_view3d_enhanced_3d_cursor.py	2012-07-19 19:31:49 UTC (rev 3638)
@@ -5092,10 +5092,6 @@
     if settings is None:
         return
     
-    cursor_save_location = Vector(bpy.context.space_data.cursor_location)
-    if not settings.cursor_visible:
-        bpy.context.space_data.cursor_location = Vector([float('nan')] * 3)
-    
     update_stick_to_obj(context)
     
     if "EDIT" not in context.mode:
@@ -5152,6 +5148,10 @@
             color_prev[1],
             color_prev[2],
             color_prev[3])
+    
+    cursor_save_location = Vector(bpy.context.space_data.cursor_location)
+    if not settings.cursor_visible:
+        bpy.context.space_data.cursor_location = Vector([float('nan')] * 3)
 
 def draw_callback_header_px(self, context):
     r = context.region



More information about the Bf-extensions-cvs mailing list