From 45af83fc322fe94b1e7ead4b2fe5ba62d28b06a7 Mon Sep 17 00:00:00 2001
From: Bart Crouch <bartius.crouch@gmail.com>
Date: Tue, 24 Dec 2013 11:50:14 +0100
Subject: [PATCH] [LoopTools] Fix crash when straightening same loop twice

---
 mesh_looptools.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mesh_looptools.py b/mesh_looptools.py
index cad93bd20..8e8621ba1 100644
--- a/mesh_looptools.py
+++ b/mesh_looptools.py
@@ -19,7 +19,7 @@
 bl_info = {
     "name": "LoopTools",
     "author": "Bart Crouch",
-    "version": (4, 5, 1),
+    "version": (4, 5, 2),
     "blender": (2, 69, 3),
     "location": "View3D > Toolbar and View3D > Specials (W-key)",
     "warning": "",
@@ -3695,6 +3695,7 @@ class GStretch(bpy.types.Operator):
             elif object.grease_pencil:
                 strokes = gstretch_get_strokes(object)
             else:
+                derived, bm_mod = get_derived_bmesh(object, bm, context.scene)
                 strokes = gstretch_get_fake_strokes(object, bm_mod, loops)
             derived, bm_mod = get_derived_bmesh(object, bm, context.scene)
         else:
-- 
GitLab