Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Character Plugin
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Plugins
Character Plugin
Commits
1ceed65d
Commit
1ceed65d
authored
Feb 22, 2024
by
Jan-Nikjas Hartmann
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a minor bug in the custom idle animation execution (and typos)
parent
99be54ce
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/CharacterPlugin/Private/VirtualHuman.cpp
+2
-2
2 additions, 2 deletions
Source/CharacterPlugin/Private/VirtualHuman.cpp
Source/CharacterPlugin/Public/VirtualHuman.h
+1
-1
1 addition, 1 deletion
Source/CharacterPlugin/Public/VirtualHuman.h
with
3 additions
and
3 deletions
Source/CharacterPlugin/Private/VirtualHuman.cpp
+
2
−
2
View file @
1ceed65d
...
...
@@ -298,8 +298,8 @@ void AVirtualHuman::PlayRandomIdleAnimation()
{
float
BlendTime
=
0.25f
;
UAnimMontage
*
DynamicMontage
=
GetBodyAnimInstance
()
->
PlaySlotAnimationAsDynamicMontage
(
IdleAnim
,
"CustomIdleSlot"
,
BlendTime
,
BlendTime
);
// start timer for next random pick (make it a bit shorter to allow for blending
GetWorld
()
->
GetTimerManager
().
SetTimer
(
NextIdleTimerHandle
,
this
,
&
AVirtualHuman
::
PlayRandomIdleAnimation
,
DynamicMontage
->
GetPlayLength
()
-
2
.0
*
BlendTime
,
false
);
// start timer for next random pick (make it a bit shorter to allow for blending
)
GetWorld
()
->
GetTimerManager
().
SetTimer
(
NextIdleTimerHandle
,
this
,
&
AVirtualHuman
::
PlayRandomIdleAnimation
,
DynamicMontage
->
GetPlayLength
()
-
1
.0
*
BlendTime
,
false
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Source/CharacterPlugin/Public/VirtualHuman.h
+
1
−
1
View file @
1ceed65d
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment