Skip to content

Commit

Permalink
Fixes issue #337
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Lidholt authored and Viktor Lidholt committed May 8, 2013
1 parent 34e0323 commit e46061b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CocosBuilder/ccBuilder/SequencerChannel.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ - (NSArray*) keyframesAtTime:(float)t
return kfs;
}

- (id) copyWithZone:(NSZone*)zone
{
SequencerChannel* copy = [[[self class] alloc] init];

copy.displayName = self.displayName;
copy.seqNodeProp = [[self.seqNodeProp copy] autorelease];

return copy;
}

- (void) dealloc
{
self.displayName = NULL;
Expand Down
7 changes: 7 additions & 0 deletions CocosBuilder/ccBuilder/SequencerNodeProperty.m
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,13 @@ - (SequencerNodeProperty*) duplicate
return duplicate;
}

- (id) copyWithZone:(NSZone*)zone
{
id serialization = [self serialization];
SequencerNodeProperty* copy = [[SequencerNodeProperty alloc] initWithSerialization:serialization];
return copy;
}

/*
- (void) updateNode:(CCNode*)node toTime:(float)time
{
Expand Down
6 changes: 6 additions & 0 deletions CocosBuilder/ccBuilder/SequencerSequence.m
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,12 @@ - (id) copyWithZone:(NSZone*)zone
copy.chainedSequenceId = chainedSequenceId;
copy.autoPlay = autoPlay;

[copy->callbackChannel release];
[copy->soundChannel release];

copy->callbackChannel = [callbackChannel copy];
copy->soundChannel = [soundChannel copy];

return copy;
}

Expand Down

0 comments on commit e46061b

Please sign in to comment.