From 63b51ead845a487eaac0cb3877fc0380785660e7 Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 17 Sep 2022 17:35:25 +0200 Subject: [PATCH] Use nv_default shader prefix for unhandled types --- components/nifosg/nifloader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/nifosg/nifloader.cpp b/components/nifosg/nifloader.cpp index 81eb72ba9e..9c0dd86c0a 100644 --- a/components/nifosg/nifloader.cpp +++ b/components/nifosg/nifloader.cpp @@ -1884,10 +1884,10 @@ namespace NifOsg case Nif::BSShaderType::ShaderType_Lighting30: case Nif::BSShaderType::ShaderType_Tile: Log(Debug::Warning) << "Unhandled BSShaderType " << type << " in " << mFilename; - return std::string_view(); + return "nv_default"; } Log(Debug::Warning) << "Unknown BSShaderType " << type << " in " << mFilename; - return std::string_view(); + return "nv_default"; } std::string_view getBSLightingShaderPrefix(unsigned int type) const @@ -1916,10 +1916,10 @@ namespace NifOsg case Nif::BSLightingShaderType::ShaderType_MultitexLandLODBlend: case Nif::BSLightingShaderType::ShaderType_Dismemberment: Log(Debug::Warning) << "Unhandled BSLightingShaderType " << type << " in " << mFilename; - return std::string_view(); + return "nv_default"; } Log(Debug::Warning) << "Unknown BSLightingShaderType " << type << " in " << mFilename; - return std::string_view(); + return "nv_default"; } void handleProperty(const Nif::Property *property,