Skip to content

Commit

Permalink
Fix equality check to find existing tree models
Browse files Browse the repository at this point in the history
  • Loading branch information
tordanik committed Nov 18, 2024
1 parent 274824e commit 5e79420
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private TreeModel getTreeModel(Vector3D seed, LeafType leafType, LeafCycle leafC
&& existingModel.leafCycle() == leafCycle
&& existingModel.species() == species
&& existingModel.mirrored() == mirrored
&& existingModel.dimensions() == dimensions
&& Objects.equals(existingModel.dimensions(), dimensions)
&& (existingModel instanceof TreeBillboardModel) == useBillboards) {
model = existingModel;
break;
Expand Down

0 comments on commit 5e79420

Please sign in to comment.