mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-17 20:00:06 +08:00
30cafb21e4
This change reworks delete handling to be more consistent with other properties, by treating it as a virtual property (`deletedShape.{blendshapeName}`) instead of a weird additional field of blendshape keys. This then fixes a number of issues (e.g. broken preview for delete keys). Fixes: #1253
28 lines
769 B
C#
28 lines
769 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace nadena.dev.modular_avatar.core.editor
|
|
{
|
|
internal class AnimatedProperty
|
|
{
|
|
public TargetProp TargetProp { get; }
|
|
public string ControlParam { get; set; }
|
|
|
|
public object currentState;
|
|
|
|
// Objects which trigger deletion of this shape key.
|
|
public List<ReactionRule> actionGroups = new List<ReactionRule>();
|
|
|
|
public AnimatedProperty(TargetProp key, float currentState)
|
|
{
|
|
TargetProp = key;
|
|
this.currentState = currentState;
|
|
}
|
|
|
|
public AnimatedProperty(TargetProp key, Object currentState)
|
|
{
|
|
TargetProp = key;
|
|
this.currentState = currentState;
|
|
}
|
|
}
|
|
} |