HipsTarget animator is not visible when humanoid animator is enabled

This commit is contained in:
Pascal Serrarens 2022-01-17 17:45:30 +01:00
parent e09ad0b2e3
commit 58d9b0e5ca

View File

@ -128,7 +128,7 @@ namespace Passer {
private void AnimatorInspector(HipsTarget hipsTarget) { private void AnimatorInspector(HipsTarget hipsTarget) {
SerializedProperty animatorProp = serializedObject.FindProperty(nameof(HipsTarget.torsoAnimator) + "." + nameof(HipsTarget.torsoAnimator.enabled)); SerializedProperty animatorProp = serializedObject.FindProperty(nameof(HipsTarget.torsoAnimator) + "." + nameof(HipsTarget.torsoAnimator.enabled));
if (animatorProp == null || hipsTarget.humanoid == null || hipsTarget.humanoid.animatorEnabled) if (animatorProp == null || hipsTarget.humanoid == null || !hipsTarget.humanoid.animatorEnabled)
return; return;
GUIContent text = new GUIContent( GUIContent text = new GUIContent(