Made parent can be passed to createFunction

This commit is contained in:
Gyedo Jeon 2010-04-22 19:55:40 +00:00
parent ae79b017b3
commit 69372ff216
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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('.'):