Skip to content

Commit

Permalink
Update objects.py
Browse files Browse the repository at this point in the history
added explicit copy behaviour to work around possible memory leak in duplicate. This may not fix it..so please test (but I haven't been able to break it since adding this code)
  • Loading branch information
zeffii committed Mar 27, 2015
1 parent c7668bd commit 855c029
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nodes/basic_data/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,12 @@ def draw_buttons(self, context, layout):

def update(self):
pass


def copy(self, node):
if self.objects_local:
name = self.name + self.id_data.name
handle_write(name, literal_eval(self.objects_local))

def process(self):
name = self.name + self.id_data.name
handle = handle_read(name)
Expand Down

0 comments on commit 855c029

Please sign in to comment.