Skip to content

Commit

Permalink
reload view when copy brick
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio G committed May 11, 2021
1 parent 06cc061 commit f5b2c7e
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -865,6 +865,8 @@ - (void)copyBrick:(Brick*)brick atIndexPath:(NSIndexPath*)indexPath
{
NSArray* indexArray = [[BrickManager sharedBrickManager] scriptCollectionCopyBrickWithIndexPath:indexPath andBrick:brick];

[self.collectionView reloadData];

[self.collectionView insertItemsAtIndexPaths:indexArray];
self.placeHolderView.hidden = YES;
[self.object.scene.project saveToDiskWithNotification:YES];
Expand Down

0 comments on commit f5b2c7e

Please sign in to comment.