Draft: fixed small bug in Draft unit test
This commit is contained in:
parent
2e6c94fc8e
commit
a36bf71632
|
@ -422,6 +422,7 @@ def formatObject(target,origin=None):
|
||||||
for p in matchrep.PropertiesList:
|
for p in matchrep.PropertiesList:
|
||||||
if not p in ["DisplayMode","BoundingBox","Proxy","RootNode","Visibility"]:
|
if not p in ["DisplayMode","BoundingBox","Proxy","RootNode","Visibility"]:
|
||||||
if p in obrep.PropertiesList:
|
if p in obrep.PropertiesList:
|
||||||
|
if not obrep.getEditorMode(p):
|
||||||
if hasattr(getattr(matchrep,p),"Value"):
|
if hasattr(getattr(matchrep,p),"Value"):
|
||||||
val = getattr(matchrep,p).Value
|
val = getattr(matchrep,p).Value
|
||||||
else:
|
else:
|
||||||
|
@ -998,6 +999,7 @@ def makeCopy(obj,force=None,reparent=False):
|
||||||
for p in obj.PropertiesList:
|
for p in obj.PropertiesList:
|
||||||
if not p in ["Proxy"]:
|
if not p in ["Proxy"]:
|
||||||
if p in newobj.PropertiesList:
|
if p in newobj.PropertiesList:
|
||||||
|
if not newobj.getEditorMode(p):
|
||||||
try:
|
try:
|
||||||
setattr(newobj,p,obj.getPropertyByName(p))
|
setattr(newobj,p,obj.getPropertyByName(p))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user