Added support for additional argument of update function to indicate it is not called from loading

This commit is contained in:
Gyedo Jeon 2010-03-24 05:13:12 +00:00
parent 87e588689f
commit 5b6ae0cb75
2 changed files with 4 additions and 0 deletions

View File

@ -49,3 +49,4 @@ TYPE_CONV = {PROP_INT: int, PROP_BOOL: bool, PROP_FLOAT: float, PROP_STR: str}
ARG_NAME = '_arg_name'
ARG_VAL = '_arg_val' # value from UI
ARG_OBJ = '_arg_object' # obj information data structure
ARG_NOLOADING = '_arg_noloading' # to indicate this call is not from loading a scene

View File

@ -513,6 +513,9 @@ class ObjectMgrBase:
undoKwargs[key] = obj
objProp[propName] = val
kwargs[key] = obj
elif funcArgs[key] == OG.ARG_NOLOADING:
kwargs[key] = fSelectObject
undoKwargs[key] = fSelectObject
else:
kwargs[key] = funcArgs[key]
undoKwargs[key] = funcArgs[key]