Skip to content

Commit f5b2c7e

Browse files
author
Fabio G
committed
reload view when copy brick
1 parent 06cc061 commit f5b2c7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Catty/ViewController/Continue&New/MaintainObject/MaintainScript/ScriptCollectionViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,8 @@ - (void)copyBrick:(Brick*)brick atIndexPath:(NSIndexPath*)indexPath
865865
{
866866
NSArray* indexArray = [[BrickManager sharedBrickManager] scriptCollectionCopyBrickWithIndexPath:indexPath andBrick:brick];
867867

868+
[self.collectionView reloadData];
869+
868870
[self.collectionView insertItemsAtIndexPaths:indexArray];
869871
self.placeHolderView.hidden = YES;
870872
[self.object.scene.project saveToDiskWithNotification:YES];

0 commit comments

Comments
 (0)