mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Made parent can be passed to createFunction
This commit is contained in:
parent
ae79b017b3
commit
69372ff216
@ -55,3 +55,4 @@ 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
|
||||
ARG_PARENT = '_arg_parent' # parent object to be passed
|
||||
|
@ -95,7 +95,8 @@ class ObjectMgrBase:
|
||||
for pair in funcArgs.items():
|
||||
if pair[1] == OG.ARG_NAME:
|
||||
funcArgs[pair[0]] = nameStr
|
||||
break;
|
||||
elif pair[1] == OG.ARG_PARENT:
|
||||
funcArgs[pair[0]] = parent
|
||||
|
||||
if type(funcName) == types.StringType:
|
||||
if funcName.startswith('.'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user