Skip to content

Commit

Permalink
GspVertexCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
akopetsch committed Jul 1, 2024
1 parent d6d1a28 commit 117a878
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/SWE1R.Assets.Blocks/ModelBlock/F3DEX2/GspVertexCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class GspVertexCommand : GraphicsCommand
[Order(1)]
private byte V0PlusNPadded { get; set; }
[Order(2)]
internal ReferenceByIndex<Vtx> V { get; set; }
internal ReferenceByIndex<Vtx> V { get; set; } = new ReferenceByIndex<Vtx>();

#endregion

Expand All @@ -44,8 +44,11 @@ public byte N
set => NPadded = (short)(value << NPadding);
}

public int V0 =>
V0PlusN - N;
public int V0
{
get => V0PlusN - N;
set => V0PlusN = Convert.ToByte(value + N);
}

#endregion

Expand Down
2 changes: 1 addition & 1 deletion src/SWE1R.Assets.Blocks/SWE1R.Assets.Blocks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>disable</Nullable>
<Authors>Alexander Kopetsch</Authors>
<Version>0.0.1.0</Version>
<PackageVersion>0.0.1-alpha.10</PackageVersion>
<PackageVersion>0.0.1-alpha.11</PackageVersion>
<PackageProjectUrl>https://github.com/akopetsch/swe1r-assets</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down

0 comments on commit 117a878

Please sign in to comment.