FEM: utils, improve method to return the obj type
This commit is contained in:
committed by
Yorik van Havre
parent
80517c71b8
commit
57b9eddfb0
@@ -98,11 +98,8 @@ def type_of_obj(obj):
|
||||
|
||||
|
||||
def is_of_type(obj, ty):
|
||||
'''returns if an object is of a given TypeId (C++ objects) or Proxy.Type (Python objects)'''
|
||||
if type_of_obj(obj) == ty:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
'''returns True if an object is of a given TypeId (C++ objects) or Proxy.Type (Python Features)'''
|
||||
return type_of_obj(obj) == ty
|
||||
|
||||
|
||||
def getBoundBoxOfAllDocumentShapes(doc):
|
||||
|
||||
Reference in New Issue
Block a user