mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Allow queue of a redraw after gpose.
This commit is contained in:
parent
3b12791ac8
commit
bcc68d6684
2 changed files with 17 additions and 0 deletions
|
|
@ -8,5 +8,7 @@ namespace Penumbra.Api
|
|||
Unload,
|
||||
RedrawWithoutSettings,
|
||||
RedrawWithSettings,
|
||||
AfterGPoseWithSettings,
|
||||
AfterGPoseWithoutSettings,
|
||||
}
|
||||
}
|
||||
|
|
@ -246,6 +246,21 @@ namespace Penumbra.Interop
|
|||
|
||||
WriteInvisible( actor, idx );
|
||||
++_currentFrame;
|
||||
break;
|
||||
case RedrawType.AfterGPoseWithSettings:
|
||||
case RedrawType.AfterGPoseWithoutSettings:
|
||||
if( _inGPose )
|
||||
{
|
||||
_actorIds.Enqueue( ( _currentActorId, _currentActorName!, _currentActorRedrawType ) );
|
||||
_currentFrame = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
_currentActorRedrawType = _currentActorRedrawType == RedrawType.AfterGPoseWithSettings
|
||||
? RedrawType.WithSettings
|
||||
: RedrawType.WithoutSettings;
|
||||
}
|
||||
|
||||
break;
|
||||
default: throw new InvalidEnumArgumentException();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue