From e220e6f80b32cab860846b986276907ade4469a0 Mon Sep 17 00:00:00 2001 From: Nikita Grebenyuk Date: Sun, 12 Jan 2025 14:45:18 +1000 Subject: [PATCH] fix: uncooked (redkit) CTextureArray reading --- WolvenKit.CR2W/Types/Utils/CVariable.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WolvenKit.CR2W/Types/Utils/CVariable.cs b/WolvenKit.CR2W/Types/Utils/CVariable.cs index c0032451..1dc339d0 100644 --- a/WolvenKit.CR2W/Types/Utils/CVariable.cs +++ b/WolvenKit.CR2W/Types/Utils/CVariable.cs @@ -419,6 +419,10 @@ private List ReadAllRedVariables(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)