mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-01 21:33:40 +01:00
Temporary fix for non-vanilla material names
This commit is contained in:
parent
dad01e1af8
commit
a3d8173dcf
1 changed files with 10 additions and 4 deletions
|
|
@ -113,11 +113,17 @@ public sealed class ModelManager(IFramework framework, MetaFileManager metaFileM
|
||||||
{
|
{
|
||||||
// TODO: this should probably be chosen in the export settings
|
// TODO: this should probably be chosen in the export settings
|
||||||
var variantId = 1;
|
var variantId = 1;
|
||||||
|
|
||||||
|
//Lumina expects strings to be at least 15 chars, we assume it's not a vanilla material if its less than that as a temporary fix
|
||||||
|
string? absolutePath = null;
|
||||||
|
if (rawPath.Length > 14)
|
||||||
|
{
|
||||||
|
// Get standardised paths
|
||||||
|
absolutePath = rawPath.StartsWith('/')
|
||||||
|
? LuminaMaterial.ResolveRelativeMaterialPath(rawPath, variantId)
|
||||||
|
: rawPath;
|
||||||
|
}
|
||||||
|
|
||||||
// Get standardised paths
|
|
||||||
var absolutePath = rawPath.StartsWith('/')
|
|
||||||
? LuminaMaterial.ResolveRelativeMaterialPath(rawPath, variantId)
|
|
||||||
: rawPath;
|
|
||||||
var relativePath = rawPath.StartsWith('/')
|
var relativePath = rawPath.StartsWith('/')
|
||||||
? rawPath
|
? rawPath
|
||||||
: '/' + Path.GetFileName(rawPath);
|
: '/' + Path.GetFileName(rawPath);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue