Use TypeId in Draft

This commit is contained in:
wmayer
2013-06-04 21:16:28 +02:00
parent bb9dce8c7e
commit 6631a6731f

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"