Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rking/meshlint
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: shougan/meshlint
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Aug 13, 2016

  1. 277_quick_fix

    shougan committed Aug 13, 2016
    Copy the full SHA
    91c2c9a View commit details
  2. Readme update

    shougan committed Aug 13, 2016
    Copy the full SHA
    f7c8a12 View commit details
Showing with 9 additions and 4 deletions.
  1. +3 −1 README.md
  2. +6 −3 meshlint.py
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Quick fix for Blender 2.77( added ensure_lookup_table() )

![MeshLint Logo](img/logo-suzanne.png "The default Monkey
has 32 Tris, 42 Nonmanifold Elements, and 9 6+-Edge Poles.")

@@ -110,7 +112,7 @@ The Name
It comes from programming tools that do similar things, but for code
([Wikipedia Link](http://en.wikipedia.org/wiki/Lint\_(software\))). If you
program, you might want to Google about and see if such a thing exists for
your language.
your language.

Going Further
-------------
9 changes: 6 additions & 3 deletions meshlint.py
Original file line number Diff line number Diff line change
@@ -192,14 +192,17 @@ def enable_anything_select_mode(self):
def select_indices(self, elemtype, indices):
for i in indices:
if 'verts' == elemtype:
self.verts.ensure_lookup_table() # Quick fix for blender 2.77
self.select_vert(i)
elif 'edges' == elemtype:
self.edges.ensure_lookup_table()# Quick fix for blender 2.77
self.select_edge(i)
elif 'faces' == elemtype:
self.faces.ensure_lookup_table()# Quick fix for blender 2.77
self.select_face(i)
else:
print("MeshLint says: Huh?? → elemtype of %s." % elemtype)

def select_vert(self, index):
self.b.verts[index].select = True

@@ -411,7 +414,7 @@ def execute(self, context):
elif 'EDIT_MESH' != original_mode:
ensure_not_edit_mode()
return {'FINISHED'}

def handle_troubled_meshes(self):
pass

@@ -467,7 +470,7 @@ def add_main_buttons(self, layout):
play_pause = 'PLAY'
right.operator(
'meshlint.live_toggle', text=live_label, icon=play_pause)

layout.split().operator(
'meshlint.objects_deselect',
text='Deselect all Lint-free Objects',