Draft: Fixed copying of windows

This commit is contained in:
Yorik van Havre
2019-10-07 15:46:16 -03:00
parent 2f07f13e9d
commit f6d4c06ce9

View File

@@ -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 not newobj.getEditorMode(p):
if newobj.getEditorMode(p) != 1: # don't set read-only props
try:
setattr(newobj,p,obj.getPropertyByName(p))
except AttributeError: