Skip to content

Commit

Permalink
Fix AnimationDemo and improve build
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdill committed Nov 3, 2023
1 parent 4a58a07 commit 863c1da
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
5 changes: 1 addition & 4 deletions Examples/Models/AnimationDemo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ public unsafe static int Main()
//--------------------------------------------------------------------------------------
UnloadTexture(texture);

for (int i = 0; i < animsCount; i++)
{
UnloadModelAnimation(anims[i]);
}
UnloadModelAnimations(anims, animsCount);

UnloadModel(model);

Expand Down
6 changes: 0 additions & 6 deletions Raylib-cs.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Raylib-cs.Tests", "Raylib-c
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Examples", "Examples\Examples.csproj", "{1E2A5986-3F11-457F-AF97-D0C08D0060BA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Examples.Android", "Examples.Android\Examples.Android.csproj", "{EC189309-7F82-4029-93E4-BFA2793FD784}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -32,9 +30,5 @@ Global
{1E2A5986-3F11-457F-AF97-D0C08D0060BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1E2A5986-3F11-457F-AF97-D0C08D0060BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1E2A5986-3F11-457F-AF97-D0C08D0060BA}.Release|Any CPU.Build.0 = Release|Any CPU
{EC189309-7F82-4029-93E4-BFA2793FD784}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EC189309-7F82-4029-93E4-BFA2793FD784}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EC189309-7F82-4029-93E4-BFA2793FD784}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EC189309-7F82-4029-93E4-BFA2793FD784}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion Raylib-cs/interop/Raylib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2351,7 +2351,7 @@ Color tint

/// <summary>Unload animation array data</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void UnloadModelAnimations(ModelAnimation* animations, uint count);
public static extern void UnloadModelAnimations(ModelAnimation* animations, uint animCount);

/// <summary>Check model animation skeleton match</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
Expand Down

0 comments on commit 863c1da

Please sign in to comment.