Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code

This commit is contained in:
wmayer
2014-02-13 14:08:34 +01:00
2 changed files with 4 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ import FreeCAD,Draft,ArchComponent,DraftVecUtils,ArchCommands
from FreeCAD import Vector
if FreeCAD.GuiUp:
import FreeCADGui
from PySide import QtCore, QtGui
from PySide import QtCore, QtGui, QtSvg
from DraftTools import translate
else:
def translate(ctxt,txt):

View File

@@ -164,6 +164,9 @@ def getSupport(args=None):
self.display(plane.axis)
except:
pass
if obj.isDerivedFrom("Part::Part2DObject"):
# make sure we don't set another Draft object as support
return None
return obj
def hasMod(args,mod):