Skip to content

Commit

Permalink
Draft: Better fix of copy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Oct 8, 2019
1 parent 71c5427 commit d964687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Draft/Draft.py
Expand Up @@ -1209,7 +1209,7 @@ def makeCopy(obj,force=None,reparent=False):
for p in obj.PropertiesList:
if not p in ["Proxy"]:
if p in newobj.PropertiesList:
if newobj.getEditorMode(p) != 1: # don't set read-only props
if not "ReadOnly" in newobj.getEditorMode(p):
try:
setattr(newobj,p,obj.getPropertyByName(p))
except AttributeError:
Expand Down

0 comments on commit d964687

Please sign in to comment.