BundleShaderFix: список исправленных материалов очищается при выходе из мира
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6028252cd6
commit
d8eb78c8b3
@@ -17,6 +17,13 @@ namespace NecromancerTome
|
||||
static Shader _std;
|
||||
static readonly HashSet<int> _done = new HashSet<int>();
|
||||
|
||||
/// <summary>Выход из мира: бандлы при следующей загрузке дадут новые материалы - старые номера не нужны
|
||||
/// (вызывает RemainsDecay, когда мира нет).</summary>
|
||||
public static void Forget()
|
||||
{
|
||||
_done.Clear();
|
||||
}
|
||||
|
||||
public static void Fix(Transform _root)
|
||||
{
|
||||
if (_root == null)
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace NecromancerTome
|
||||
if (world == null)
|
||||
{
|
||||
_since.Clear();
|
||||
BundleShaderFix.Forget();
|
||||
return;
|
||||
}
|
||||
if (Time.time < _next || !SingletonMonoBehaviour<ConnectionManager>.Instance.IsServer)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user