Draft: fixed obj.TypeId output after utils.get_type() change

.


.
This commit is contained in:
carlopav
2020-08-30 15:41:56 +02:00
committed by Yorik van Havre
parent 28c00f8383
commit 6f2691631c
4 changed files with 15 additions and 13 deletions

View File

@@ -73,7 +73,7 @@ def offset(obj, delta, copy=False, bind=False, sym=False, occ=False):
newwire = None
delete = None
if utils.get_type(obj) in ["Sketch","Part"]:
if utils.get_type(obj).startswith("Part::") or utils.get_type(obj).startswith("Sketcher::"):
copy = True
print("the offset tool is currently unable to offset a non-Draft object directly - Creating a copy")