Permalink
Browse files

Merge branch 'master' of github.com:Nvizible/NukeExternalControl

  • Loading branch information...
HughMacdonald committed Oct 29, 2011
2 parents f1b4f8d + a100f3e commit f4214f98fd0acb1e93163f391bacfd1bd01084c0
Showing with 7 additions and 4 deletions.
  1. +7 −4 nukeCommandServer.py
View
@@ -67,10 +67,13 @@ def recode_data(self, data, recode_object_func):
newList.append(self.recode_data(i, recode_object_func))
return type(data)(newList)
elif type(data) in dictTypes:
- newDict = {}
- for k in data:
- newDict[self.recode_data(k, recode_object_func)] = self.recode_data(data[k], recode_object_func)
- return newDict
+ if 'type' in data and data['type'] == "NukeTransferObject":
+ return recode_object_func(data)
+ else:
+ newDict = {}
+ for k in data:
+ newDict[self.recode_data(k, recode_object_func)] = self.recode_data(data[k], recode_object_func)
+ return newDict
else:
return recode_object_func(data)

0 comments on commit f4214f9

Please sign in to comment.