Skip to content

Commit

Permalink
use new nuget package
Browse files Browse the repository at this point in the history
  • Loading branch information
Crauzer committed Sep 4, 2020
1 parent f64e29e commit 49057e9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 37 deletions.
6 changes: 3 additions & 3 deletions lol2gltf/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private static Skeleton ReadSkeleton(string location)
}
private static List<(string, LeagueAnimation)> ReadAnimations(IEnumerable<string> animationPaths)
{
List<(string, LeagueAnimation)> animations = new();
var animations = new List<(string, LeagueAnimation)>();

foreach (string animationPath in animationPaths)
{
Expand All @@ -154,7 +154,7 @@ private static Skeleton ReadSkeleton(string location)

private static Dictionary<string, MagickImage> CreateMaterialTextureMap(IEnumerable<string> materials, IEnumerable<string> textures)
{
Dictionary<string, MagickImage> materialTextureMap = new();
var materialTextureMap = new Dictionary<string, MagickImage>();

int materialCount = materials.Count();
int texturesCount = textures.Count();
Expand Down Expand Up @@ -189,7 +189,7 @@ private static Dictionary<string, MagickImage> CreateMaterialTextureMap(IEnumera
private static int DumpSimpleSkinInfo(DumpSimpleSkinInfoOptions opts)
{
SimpleSkin simpleSkin = ReadSimpleSkin(opts.SimpleSkinPath);
if (simpleSkin is not null)
if (simpleSkin != null)
{
DumpSimpleSkinInfo(simpleSkin);
}
Expand Down
Binary file removed lol2gltf/SharpGLTF.Core.dll
Binary file not shown.
Binary file removed lol2gltf/SharpGLTF.Toolkit.dll
Binary file not shown.
21 changes: 0 additions & 21 deletions lol2gltf/SharpGLTF_LICENSE

This file was deleted.

17 changes: 4 additions & 13 deletions lol2gltf/lol2gltf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Platforms>x64</Platforms>
<Configurations>Debug;Release;ReleasePortable</Configurations>
<Authors>Crauzer</Authors>
Expand Down Expand Up @@ -31,24 +31,15 @@
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.0-preview1" />
<PackageReference Include="Fantome.Libraries.League" Version="1.4.4" />
</ItemGroup>

<ItemGroup>
<Reference Include="SharpGLTF.Core">
<HintPath>SharpGLTF.Core.dll</HintPath>
</Reference>
<Reference Include="SharpGLTF.Toolkit">
<HintPath>SharpGLTF.Toolkit.dll</HintPath>
</Reference>
<PackageReference Include="SharpGLTF.Toolkit-optimized-buffers" Version="1.0.0" />
</ItemGroup>

<ItemGroup>
<None Update="SharpGLTF.Core.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="SharpGLTF.Toolkit.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>



</Project>

0 comments on commit 49057e9

Please sign in to comment.