Merge pull request #1966 from knowledgenude/master
Add Bounce and Elastic to Mix nodes
This commit is contained in:
commit
1eaf05218f
|
@ -34,6 +34,10 @@ class MixNode extends LogicNode {
|
|||
ease = property1 == "In" ? Tween.easeCircIn : (property1 == "Out" ? Tween.easeCircOut : Tween.easeCircInOut);
|
||||
case "Back":
|
||||
ease = property1 == "In" ? Tween.easeBackIn : (property1 == "Out" ? Tween.easeBackOut : Tween.easeBackInOut);
|
||||
case "Bounce":
|
||||
ease = property1 == "In" ? Tween.easeBounceIn : (property1 == "Out" ? Tween.easeBounceOut : Tween.easeBounceInOut);
|
||||
case "Elastic":
|
||||
ease = property1 == "In" ? Tween.easeElasticIn : (property1 == "Out" ? Tween.easeElasticOut : Tween.easeElasticInOut);
|
||||
default:
|
||||
ease = Tween.easeLinear;
|
||||
}
|
||||
|
|
|
@ -37,6 +37,10 @@ class VectorMixNode extends LogicNode {
|
|||
ease = property1 == "In" ? Tween.easeCircIn : (property1 == "Out" ? Tween.easeCircOut : Tween.easeCircInOut);
|
||||
case "Back":
|
||||
ease = property1 == "In" ? Tween.easeBackIn : (property1 == "Out" ? Tween.easeBackOut : Tween.easeBackInOut);
|
||||
case "Bounce":
|
||||
ease = property1 == "In" ? Tween.easeBounceIn : (property1 == "Out" ? Tween.easeBounceOut : Tween.easeBounceInOut);
|
||||
case "Elastic":
|
||||
ease = property1 == "In" ? Tween.easeElasticIn : (property1 == "Out" ? Tween.easeElasticOut : Tween.easeElasticInOut);
|
||||
default:
|
||||
ease = Tween.easeLinear;
|
||||
}
|
||||
|
|
|
@ -15,6 +15,8 @@ class MixNode(ArmLogicTreeNode):
|
|||
('Expo', 'Expo', 'Expo'),
|
||||
('Circ', 'Circ', 'Circ'),
|
||||
('Back', 'Back', 'Back'),
|
||||
('Bounce', 'Bounce', 'Bounce'),
|
||||
('Elastic', 'Elastic', 'Elastic'),
|
||||
],
|
||||
name='', default='Linear')
|
||||
property1: EnumProperty(
|
||||
|
|
|
@ -17,6 +17,8 @@ class VectorMixNode(ArmLogicTreeNode):
|
|||
('Expo', 'Expo', 'Expo'),
|
||||
('Circ', 'Circ', 'Circ'),
|
||||
('Back', 'Back', 'Back'),
|
||||
('Bounce', 'Bounce', 'Bounce'),
|
||||
('Elastic', 'Elastic', 'Elastic'),
|
||||
],
|
||||
name='', default='Linear')
|
||||
property1: EnumProperty(
|
||||
|
|
Loading…
Reference in a new issue