Fixed a bug of keep refreshing property UI

This commit is contained in:
Gyedo Jeon 2009-11-04 22:39:42 +00:00
parent b1797a99e7
commit 309e0713a5

View File

@ -332,9 +332,11 @@ class ObjectMgr:
return
# now update object prop value and call update function
self.updateObjectPropValue(obj, propName, val)
self.updateObjectPropValue(obj, propName, val, \
fSelectObject=(propType != OG.PROP_UI_SLIDE)
)
def updateObjectPropValue(self, obj, propName, val, fSelectObject=True):
def updateObjectPropValue(self, obj, propName, val, fSelectObject=False):
"""
Update object property value and
call update function if defined.
@ -449,7 +451,7 @@ class ObjectMgr:
# copy other properties
for key in obj[OG.OBJ_PROP]:
self.updateObjectPropValue(newObj, key, obj[OG.OBJ_PROP][key], fSelectObject=False)
self.updateObjectPropValue(newObj, key, obj[OG.OBJ_PROP][key])
return newObjNP