mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Check for valid humanity.
This commit is contained in:
parent
d79e4b5853
commit
95bc52b2bc
1 changed files with 5 additions and 1 deletions
|
|
@ -157,7 +157,11 @@ public sealed unsafe class MaterialManager : IRequiredService, IDisposable
|
|||
/// <summary> Find the type of the given draw object by checking the actors pointers. </summary>
|
||||
private static bool FindType(CharacterBase* characterBase, Actor actor, out MaterialValueIndex.DrawObjectType type)
|
||||
{
|
||||
type = MaterialValueIndex.DrawObjectType.Human;
|
||||
type = MaterialValueIndex.DrawObjectType.Invalid;
|
||||
if (!((Model)characterBase).IsHuman)
|
||||
return false;
|
||||
|
||||
type = type = MaterialValueIndex.DrawObjectType.Human;
|
||||
if (!actor.Valid)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue