FEM: use is instead of == for None in ccxFrdReader.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
parent
39b407fdba
commit
05cb44bfb0
|
@ -124,7 +124,7 @@ def importFrd(filename, Analysis=None):
|
|||
MeshObject = None
|
||||
if(len(m) > 0):
|
||||
import Fem
|
||||
if Analysis == None:
|
||||
if Analysis is None:
|
||||
AnalysisName = os.path.splitext(os.path.basename(filename))[0]
|
||||
AnalysisObject = FreeCAD.ActiveDocument.addObject('Fem::FemAnalysis', 'Analysis')
|
||||
AnalysisObject.Label = AnalysisName
|
||||
|
|
Loading…
Reference in New Issue
Block a user