- grease pencil drawing on the surface of objects (only when enable face snap & proje...
[blender.git] / release / scripts / op / object.py
index 8823045e07d346a66b6706da7a3baec504335839..89ba38860b3552c62c4a1be403622ea5feadc7a8 100644 (file)
@@ -95,5 +95,20 @@ class SubsurfSet(bpy.types.Operator):
         return ('FINISHED',)
 
 
+class Retopo(bpy.types.Operator):
+    '''TODO - doc'''
+
+    bl_idname = "object.retopology"
+    bl_label = "Retopology from Grease Pencil"
+    bl_register = True
+    bl_undo = True
+
+    def execute(self, context):
+        import retopo
+        retopo.main()
+        return ('FINISHED',)
+
+
 bpy.ops.add(SelectPattern)
 bpy.ops.add(SubsurfSet)
+bpy.ops.add(Retopo)