Skip to content

Commit

Permalink
fix: uncooked (redkit) CTextureArray reading
Browse files Browse the repository at this point in the history
  • Loading branch information
nikich340 committed Jan 12, 2025
1 parent 3c125fd commit e220e6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WolvenKit.CR2W/Types/Utils/CVariable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,10 @@ private List<CVariable> ReadAllRedVariables<T>(BinaryReader br) where T : REDAtt
{
continue;
}
if (this.REDType == "CTextureArray" && varname == "ffffffff" && !IsCooked())
{
continue;
}

var parsedvar = CR2WTypeManager.Create(vartype, varname, this.cr2w, this); // create new variable and parent to this
if (parsedvar == null)
Expand Down

0 comments on commit e220e6f

Please sign in to comment.