Skip to content

Commit

Permalink
fixed wrong placed variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
pfcDorn committed Jan 12, 2024
1 parent f87fda5 commit cd4975e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Runtime/Scripts/SceneImporter/ImporterTextures.cs
Expand Up @@ -197,6 +197,7 @@ async Task<Texture2D> CheckMimeTypeAndLoadImage(GLTFImage image, Texture2D textu

protected virtual async Task ConstructUnityTexture(Stream stream, bool markGpuOnly, bool isLinear, bool isNormal, GLTFImage image, int imageCacheIndex)
{
bool convertToDxt5nmFormat = false;
#if UNITY_EDITOR
if (stream is AssetDatabaseStream assetDatabaseStream)
{
Expand All @@ -206,8 +207,7 @@ protected virtual async Task ConstructUnityTexture(Stream stream, bool markGpuOn
_assetCache.ImageCache[imageCacheIndex] = tx;
return;
}

bool convertToDxt5nmFormat = false;

if (isNormal && Context.SourceImporter != null)
{
BuildTargetGroup activeTargetGroup = BuildPipeline.GetBuildTargetGroup(EditorUserBuildSettings.activeBuildTarget);
Expand Down

0 comments on commit cd4975e

Please sign in to comment.