Use TypeId in Draft
This commit is contained in:
parent
0bebfcc50f
commit
cb37f84ccb
|
@ -167,13 +167,13 @@ def getType(obj):
|
|||
return "Sketch"
|
||||
if obj.isDerivedFrom("Part::Feature"):
|
||||
return "Part"
|
||||
if (obj.Type == "App::Annotation"):
|
||||
if (obj.TypeId == "App::Annotation"):
|
||||
return "Annotation"
|
||||
if obj.isDerivedFrom("Mesh::Feature"):
|
||||
return "Mesh"
|
||||
if obj.isDerivedFrom("Points::Feature"):
|
||||
return "Points"
|
||||
if (obj.Type == "App::DocumentObjectGroup"):
|
||||
if (obj.TypeId == "App::DocumentObjectGroup"):
|
||||
return "Group"
|
||||
return "Unknown"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user