Path changes

* Relaxed valid base shape requirement, as long as it can return a
  shape using part.getShape()

* Improve ViewProviderPath performance by sharing the same selection
  observer

* Relocate libarea binary installation
This commit is contained in:
Zheng, Lei
2019-07-13 21:34:43 +08:00
committed by wmayer
parent 2727ddc7c0
commit cfc6c0ee89
7 changed files with 97 additions and 65 deletions

View File

@@ -104,15 +104,18 @@ class _CommandSelectLoop:
FreeCADGui.Selection.addSelection(obj, "Edge" + str(elist.index(e) + 1))
def formsPartOfALoop(self, obj, sub, names):
if names[0][0:4] != 'Edge':
if names[0][0:4] == 'Face' and horizontalFaceLoop(obj, sub, names):
try:
if names[0][0:4] != 'Edge':
if names[0][0:4] == 'Face' and horizontalFaceLoop(obj, sub, names):
return True
return False
if len(names) == 1 and horizontalEdgeLoop(obj, sub):
return True
return False
if len(names) == 1 and horizontalEdgeLoop(obj, sub):
if len(names) == 1 or names[1][0:4] != 'Edge':
return False
return True
if len(names) == 1 or names[1][0:4] != 'Edge':
except Exception:
return False
return True
if FreeCAD.GuiUp: