[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1044] contrib/py/scripts/addons/ space_view3d_index_visualiser.py: Script now takes into account if a vertex /edge/face is hidden.
Bart Crouch
bartius.crouch at gmail.com
Wed Sep 15 13:27:50 CEST 2010
Revision: 1044
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1044
Author: crouch
Date: 2010-09-15 13:27:50 +0200 (Wed, 15 Sep 2010)
Log Message:
-----------
Script now takes into account if a vertex/edge/face is hidden.
Modified Paths:
--------------
contrib/py/scripts/addons/space_view3d_index_visualiser.py
Modified: contrib/py/scripts/addons/space_view3d_index_visualiser.py
===================================================================
--- contrib/py/scripts/addons/space_view3d_index_visualiser.py 2010-09-15 11:14:44 UTC (rev 1043)
+++ contrib/py/scripts/addons/space_view3d_index_visualiser.py 2010-09-15 11:27:50 UTC (rev 1044)
@@ -32,7 +32,7 @@
bl_addon_info = {
'name': 'Index Visualiser',
'author': 'Bartius Crouch',
- 'version': (2,6,2),
+ 'version': (2,6,3),
'blender': (2, 5, 4),
'api': 31878,
'location': 'View3D > Properties panel > Mesh Display tab',
@@ -78,11 +78,13 @@
#bpy.ops.object.editmode_toggle()
if bpy.context.scene.display_vert_index:
for v in me.vertices:
- if v.select or not bpy.context.scene.display_sel_only:
+ if not v.hide and \
+ (v.select or not bpy.context.scene.display_sel_only):
locs.append([1.0, 1.0, 1.0, v.index, v.co.copy().resize4D()])
if bpy.context.scene.display_edge_index:
for ed in me.edges:
- if ed.select or not bpy.context.scene.display_sel_only:
+ if not ed.hide and \
+ (ed.select or not bpy.context.scene.display_sel_only):
v1, v2 = ed.vertices
v1 = me.vertices[v1].co.copy()
v2 = me.vertices[v2].co.copy()
@@ -90,7 +92,8 @@
locs.append([1.0, 1.0, 0.0, ed.index, loc.resize4D()])
if bpy.context.scene.display_face_index:
for f in me.faces:
- if f.select or not bpy.context.scene.display_sel_only:
+ if not f.hide and \
+ (f.select or not bpy.context.scene.display_sel_only):
locs.append([1.0, 0.0, 0.5, f.index, f.center.resize4D()])
for loc in locs:
More information about the Bf-extensions-cvs
mailing list