Skip to content

Commit

Permalink
Removed atlas .net 8 output folder
Browse files Browse the repository at this point in the history
Fixed crash in Glue when cancelling out of creating a file.
  • Loading branch information
vchelaru committed Jan 23, 2024
1 parent 237b8df commit 406f779
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>

<ItemGroup>
Expand Down
12 changes: 7 additions & 5 deletions FRBDK/Glue/Glue/SaveClasses/GlueProjectSaveExtensionMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,18 @@ public static ReferencedFileSave AddReferencedFileSave(GlueElement element, stri
// that's exactly what we're doing.
rfs = AddExistingFileManager.Self.AddSingleFile(createdFile, ref userCancelled, option, elementToAddTo:element, forcedAti:resultAssetTypeInfo);

if(resultAssetTypeInfo?.QualifiedRuntimeTypeName.QualifiedType != null && rfs.RuntimeType != resultAssetTypeInfo.QualifiedRuntimeTypeName.QualifiedType)
{
rfs.RuntimeType = resultAssetTypeInfo.QualifiedRuntimeTypeName.QualifiedType;
}

if (rfs == null && !userCancelled)
{
throw new NullReferenceException("The RFS shouldn't be null");
}

if(rfs != null)
{
if(resultAssetTypeInfo?.QualifiedRuntimeTypeName.QualifiedType != null && rfs.RuntimeType != resultAssetTypeInfo.QualifiedRuntimeTypeName.QualifiedType)
{
rfs.RuntimeType = resultAssetTypeInfo.QualifiedRuntimeTypeName.QualifiedType;
}
}
}

#endregion
Expand Down

0 comments on commit 406f779

Please sign in to comment.