mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Added support for additional argument of update function to indicate it is not called from loading
This commit is contained in:
parent
87e588689f
commit
5b6ae0cb75
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user