Permalink
Browse files

Fixed bug where Nuke objects couldn't be passed back into Nuke functions

  • Loading branch information...
HughMacdonald committed Apr 19, 2011
1 parent 9b4543b commit a100f3ed2f01202ac00ebfe1412e34e2a5854721
Showing with 7 additions and 4 deletions.
  1. +7 −4 nukeCommandServer.py
View
@@ -62,10 +62,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 a100f3e

Please sign in to comment.