Path: add cursor waiting decorator to long running functions.

Remove obsolete ToolDescription code from label change.
This commit is contained in:
sliptonic
2017-05-11 09:47:33 -05:00
committed by wmayer
parent 38aeb8f8de
commit 6bd6cc0526
3 changed files with 5 additions and 11 deletions

View File

@@ -27,6 +27,7 @@ import FreeCAD
import Path
from PathScripts import PathUtils
import PathScripts.PathLog as PathLog
from PathScripts.PathUtils import waiting_effects
import sys
# xrange is not available in python3
@@ -129,8 +130,7 @@ class ObjectSurface:
return None
def onChanged(self, obj, prop):
if prop == "UserLabel":
obj.Label = obj.UserLabel + " :" + obj.ToolDescription
pass
def _waterline(self, obj, s, bb):
import ocl
@@ -262,6 +262,7 @@ class ObjectSurface:
return output
@waiting_effects
def execute(self, obj):
import MeshPart
FreeCAD.Console.PrintWarning(