[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4056] contrib/py/scripts/addons/ space_view3d_paint_bprojection.py: Bprojection: fix for fast navigate, I will add an int value to decrease the subsurf modifier in the futur.
geo kgeo
kgeogeo at hotmail.com
Sun Dec 16 13:00:24 CET 2012
Revision: 4056
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4056
Author: kgeogeo
Date: 2012-12-16 12:00:21 +0000 (Sun, 16 Dec 2012)
Log Message:
-----------
Bprojection: fix for fast navigate, I will add an int value to decrease the subsurf modifier in the futur.
Modified Paths:
--------------
contrib/py/scripts/addons/space_view3d_paint_bprojection.py
Modified: contrib/py/scripts/addons/space_view3d_paint_bprojection.py
===================================================================
--- contrib/py/scripts/addons/space_view3d_paint_bprojection.py 2012-12-16 11:40:45 UTC (rev 4055)
+++ contrib/py/scripts/addons/space_view3d_paint_bprojection.py 2012-12-16 12:00:21 UTC (rev 4056)
@@ -1140,6 +1140,10 @@
self.block = 1
if event.value == 'RELEASE':
+ if self.tmp_level > -1:
+ for sub in context.object.modifiers:
+ if sub.type in ['SUBSURF','MULTIRES']:
+ sub.levels = self.tmp_level
return {'FINISHED'}
if event.type == 'MOUSEMOVE':
@@ -1201,15 +1205,6 @@
em.custom_offsetuv = [ouv[0] - deltax/50,ouv[1] - deltay/50]
self.pan = Vector((event.mouse_region_x, event.mouse_region_y))
-
-
- elif event.type == 'MIDDLEMOUSE'and event.value == 'RELEASE':
- if self.tmp_level > -1:
- for sub in context.object.modifiers:
- if sub.type in ['SUBSURF','MULTIRES']:
- sub.levels = self.tmp_level
-
- return {'FINISHED'}
if 'C' in self.key:
clear_props(context)
More information about the Bf-extensions-cvs
mailing list