Use TypeId in Draft

This commit is contained in:
wmayer 2013-06-04 21:16:28 +02:00
parent 0bebfcc50f
commit cb37f84ccb

View File

@ -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"