Skip to content

Commit

Permalink
Merge pull request #21 from sandrofigo/develop
Browse files Browse the repository at this point in the history
Release v4.1.1
  • Loading branch information
sandrofigo authored May 20, 2023
2 parents ff0060d + 52218f5 commit 43f671b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-->

## [4.1.1] - 2023-05-20

### Changed

- Removed unused code when parsing models

## [4.1.0] - 2023-05-20

### Added
Expand Down
10 changes: 1 addition & 9 deletions VoxReader/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ public static IEnumerable<IModel> ExtractModels(IChunk mainChunk, IPalette palet
var transformNodeChunks = mainChunk.GetChildren<ITransformNodeChunk>();
var groupNodeChunks = mainChunk.GetChildren<IGroupNodeChunk>();

var allNodes = new Dictionary<int, INodeChunk>();
foreach (ITransformNodeChunk t in transformNodeChunks)
allNodes.Add(t.NodeId, t);
foreach (IGroupNodeChunk g in groupNodeChunks)
allNodes.Add(g.NodeId, g);
foreach (IShapeNodeChunk s in shapeNodeChunks)
allNodes.Add(s.NodeId, s);

var transformNodesThatHaveAShapeNode = new Dictionary<ITransformNodeChunk, IShapeNodeChunk>();
foreach (ITransformNodeChunk transformNodeChunk in transformNodeChunks)
{
Expand Down Expand Up @@ -67,7 +59,7 @@ public static IEnumerable<IModel> ExtractModels(IChunk mainChunk, IPalette palet
yield return new Model(0, null, new Vector3(), size, voxels, false);
yield break;
}

var processedModelIds = new HashSet<int>();

foreach (var keyValuePair in transformNodesThatHaveAShapeNode)
Expand Down
2 changes: 1 addition & 1 deletion VoxReader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.sandrofigo.voxreader",
"version": "4.1.0",
"version": "4.1.1",
"displayName": "VoxReader",
"description": "A C# library to read .vox files created with MagicaVoxel",
"documentationUrl": "https://github.com/sandrofigo/VoxReader",
Expand Down
2 changes: 1 addition & 1 deletion build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class Build : NukeBuild
var newRelease = new NewRelease($"v{version}")
{
Draft = true,
Name = version.ToString(),
Name = $"v{version}",
Prerelease = version.IsPrerelease,
Body = changelog
};
Expand Down

0 comments on commit 43f671b

Please sign in to comment.