[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2242] contrib/py/scripts/addons/ mesh_vertex_slide.py: Now Undo work properly

Valter Battioli valter31 at interfree.it
Thu Aug 11 10:22:26 CEST 2011


Revision: 2242
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2242
Author:   valtervb
Date:     2011-08-11 08:22:26 +0000 (Thu, 11 Aug 2011)
Log Message:
-----------
Now Undo work properly

Modified Paths:
--------------
    contrib/py/scripts/addons/mesh_vertex_slide.py

Modified: contrib/py/scripts/addons/mesh_vertex_slide.py
===================================================================
--- contrib/py/scripts/addons/mesh_vertex_slide.py	2011-08-10 14:44:52 UTC (rev 2241)
+++ contrib/py/scripts/addons/mesh_vertex_slide.py	2011-08-11 08:22:26 UTC (rev 2242)
@@ -21,9 +21,9 @@
 bl_info = {
     "name": "Vertex slide",
     "author": "Valter Battioli (ValterVB) and PKHG",
-    "version": (1, 1, 0),
+    "version": (1, 1, 1),
     "blender": (2, 5, 9),
-    "api": 39094,
+    "api": 39263,
     "location": "View3D > Mesh > Vertices (CTRL V-key) or search for 'VB Vertex 2'",
     "description": "Slide a vertex along an edge",
     "warning": "",
@@ -49,6 +49,7 @@
 #ver. 1.0.8: Restore 2 type of sliding with 2 vertex selected
 #ver. 1.0.9: Fix for reverse vector multiplication
 #ver. 1.1.0: Delete debug info, some cleanup and add some comments
+#ver. 1.1.1: Now UNDO work properly
 #***********************************************************************
 
 import bpy
@@ -118,6 +119,7 @@
 class VertexSlideOperator(bpy.types.Operator):
     bl_idname = "vertex.slide"
     bl_label = "VB Vertex Slide 2"  # PKHG easy to searc for ;-)
+    bl_options = {'REGISTER', 'UNDO'}
 
     Vert1 = Point()  # Original selected vertex data
     Vert2 = Point()  # Second selected vertex data



More information about the Bf-extensions-cvs mailing list