mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-05-16 23:11:42 +00:00
Refactor something.
This commit is contained in:
@@ -12,7 +12,6 @@ namespace light_def
|
||||
{
|
||||
const auto* lightDef = asset.Asset();
|
||||
const auto assetFile = context.OpenAssetFile(GetFileNameForAsset(asset.m_name));
|
||||
auto& stream = *assetFile;
|
||||
if (!assetFile)
|
||||
{
|
||||
con::error("Could not open GfxLightDef file for dumping!");
|
||||
@@ -25,6 +24,8 @@ namespace light_def
|
||||
return;
|
||||
}
|
||||
|
||||
auto& stream = *assetFile;
|
||||
|
||||
const auto* attenuationImageName = lightDef->attenuation.image->name;
|
||||
if (attenuationImageName && attenuationImageName[0] == ',')
|
||||
attenuationImageName = &attenuationImageName[1];
|
||||
|
||||
Reference in New Issue
Block a user