mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-03-09 23:34:56 +08:00
chore: fix compile warnings (#853)
This commit is contained in:
parent
1c0be75e28
commit
c9db3debcf
@ -38,7 +38,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
if (_window != null) DestroyImmediate(_window);
|
||||
}
|
||||
|
||||
protected virtual void OnDestroy()
|
||||
protected override void OnDestroy()
|
||||
{
|
||||
base.OnDestroy();
|
||||
if (_window != null) DestroyImmediate(_window);
|
||||
|
@ -24,7 +24,9 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
|
||||
protected override VisualElement CreateInnerInspectorGUI()
|
||||
{
|
||||
#pragma warning disable CS0618 // Type or member is obsolete
|
||||
var root = uxml.Localize();
|
||||
#pragma warning restore CS0618 // Type or member is obsolete
|
||||
root.styleSheets.Add(uss);
|
||||
|
||||
var container = root.Q<VisualElement>("group-container");
|
||||
|
@ -123,7 +123,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (MissingComponentException e)
|
||||
catch (MissingComponentException _)
|
||||
{
|
||||
// No animator? weird. Move on.
|
||||
}
|
||||
|
@ -62,8 +62,6 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
|
||||
private BuildContext _context;
|
||||
|
||||
private int internalParamIndex = 0;
|
||||
|
||||
// TODO: Move into NDMF
|
||||
private ImmutableList<string> PhysBoneSuffixes = ImmutableList<string>.Empty
|
||||
.Add("_IsGrabbed")
|
||||
@ -325,13 +323,11 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
{
|
||||
rv = BuildReport.ReportingObject(p, () => CollectParameters(p, paramInfo.GetParameterRemappingsAt(p, true)));
|
||||
}
|
||||
|
||||
var willPurgeAnimators = false;
|
||||
|
||||
foreach (var merger in obj.GetComponents<ModularAvatarMergeAnimator>())
|
||||
{
|
||||
if (merger.deleteAttachedAnimator)
|
||||
{
|
||||
willPurgeAnimators = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,6 @@ namespace nadena.dev.modular_avatar.core.armature_lock
|
||||
private Action _dispose;
|
||||
|
||||
private bool _isValid = true;
|
||||
private long _lastHierarchyCheck = -1;
|
||||
private Action _update;
|
||||
|
||||
internal ImmutableList<(Transform, Transform)> RecordedParents;
|
||||
|
@ -14,16 +14,11 @@ namespace nadena.dev.modular_avatar.core
|
||||
internal sealed class ScaleProxy : AvatarTagComponent
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
void OnValidate()
|
||||
protected override void OnValidate()
|
||||
{
|
||||
base.OnValidate();
|
||||
EditorApplication.delayCall += DeferredValidate;
|
||||
}
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
base.OnDestroy();
|
||||
}
|
||||
|
||||
private void DeferredValidate()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user