Skip to content

Commit

Permalink
[1.21.3] Fix composite and separate transforms models not baking gene…
Browse files Browse the repository at this point in the history
…rated item models correctly (#1671)
  • Loading branch information
XFactHD authored Nov 9, 2024
1 parent 1be3110 commit 86abd26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public BakedModel bake(IGeometryBakingContext context, ModelBaker baker, Functio
if (!context.isComponentVisible(name, true))
continue;
var model = entry.getValue();
bakedPartsBuilder.put(name, model.bake(baker, spriteGetter, modelState));
bakedPartsBuilder.put(name, baker.bakeUncached(model, modelState, spriteGetter));
}
var bakedParts = bakedPartsBuilder.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public BakedModel bake(IGeometryBakingContext context, ModelBaker baker, Functio
BakedModel baked = new Baked(
context.useAmbientOcclusion(), context.isGui3d(), context.useBlockLight(),
spriteGetter.apply(context.getMaterial("particle")),
baseModel.bake(baker, spriteGetter, modelState),
ImmutableMap.copyOf(Maps.transformValues(perspectives, value -> value.bake(baker, spriteGetter, modelState))));
baker.bakeUncached(baseModel, modelState, spriteGetter),
ImmutableMap.copyOf(Maps.transformValues(perspectives, value -> baker.bakeUncached(value, modelState, spriteGetter))));
if (!overrides.isEmpty()) {
baked = new ItemModel.BakedModelWithOverrides(baked, new BakedOverrides(baker, overrides, spriteGetter));
}
Expand Down

0 comments on commit 86abd26

Please sign in to comment.