Skip to content

Commit

Permalink
Fixed GetVideoProperties returning wrong 'rotation' in some languages
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirkula committed Sep 21, 2021
1 parent 1e169eb commit 1c48191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Plugins/TextureOps/TextureOps.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Globalization;
using System.IO;
using UnityEngine;
using Object = UnityEngine.Object;
Expand Down Expand Up @@ -572,7 +573,7 @@ public static VideoProperties GetVideoProperties( string videoPath )
height = 0;
if( !long.TryParse( properties[2].Trim(), out duration ) )
duration = 0L;
if( !float.TryParse( properties[3].Trim(), out rotation ) )
if( !float.TryParse( properties[3].Trim().Replace( ',', '.' ), NumberStyles.Float, CultureInfo.InvariantCulture, out rotation ) )
rotation = 0f;
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.yasirkula.textureops",
"displayName": "Texture Ops",
"version": "1.1.4",
"version": "1.1.5",
"documentationUrl": "https://github.com/yasirkula/UnityTextureOps",
"changelogUrl": "https://github.com/yasirkula/UnityTextureOps/releases",
"licensesUrl": "https://github.com/yasirkula/UnityTextureOps/blob/master/LICENSE.txt",
Expand Down

0 comments on commit 1c48191

Please sign in to comment.