Skip to content

Commit

Permalink
Actually fix what I've been meaning to fix before
Browse files Browse the repository at this point in the history
Totally committed the wrong thing there. Sorry. Fixes #97 and starts
#16.
  • Loading branch information
cochrane committed Apr 18, 2018
1 parent 13a5ed1 commit 28c7855
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GLLara/GLLItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ enum GLLItemChannelAssignment

@property (nonatomic, readonly) GLLItem *rootItem;

// Whether some meshes together form optional parts.
@property (nonatomic, readonly) BOOL hasOptionalParts;

// Poses
- (BOOL)loadPose:(NSString *)poseDescription error:(NSError *__autoreleasing*)error;

Expand Down
2 changes: 2 additions & 0 deletions GLLara/GLLItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ - (void)setModel:(GLLModel *)model
itemMesh.cullFaceMode = modelMesh.cullFaceMode;
itemMesh.item = self;
[itemMesh prepareGraphicsData];
if ([itemMesh.displayName hasPrefix:@"-"])
itemMesh.isVisible = NO;
}

NSMutableOrderedSet *bones = [self mutableOrderedSetValueForKey:@"bones"];
Expand Down

0 comments on commit 28c7855

Please sign in to comment.