Add min and max values to limit the min and max that can be set for multiblend nodes.
This commit is contained in:
@@ -595,6 +595,11 @@ namespace FlaxEditor.Surface.Archetypes
|
||||
{
|
||||
var data0 = (Float4)_node.Values[0];
|
||||
rangeX = new Float2(data0.X, data0.Y);
|
||||
if (_node._animationX != null)
|
||||
{
|
||||
_node._animationX.MinValue = rangeX.X;
|
||||
_node._animationX.MaxValue = rangeX.Y;
|
||||
}
|
||||
rangeY = Float2.Zero;
|
||||
for (int i = 0; i < MaxAnimationsCount; i++)
|
||||
{
|
||||
@@ -725,7 +730,17 @@ namespace FlaxEditor.Surface.Archetypes
|
||||
{
|
||||
var data0 = (Float4)_node.Values[0];
|
||||
rangeX = new Float2(data0.X, data0.Y);
|
||||
if (_node._animationX != null)
|
||||
{
|
||||
_node._animationX.MinValue = rangeX.X;
|
||||
_node._animationX.MaxValue = rangeX.Y;
|
||||
}
|
||||
rangeY = new Float2(data0.Z, data0.W);
|
||||
if (_node._animationY != null)
|
||||
{
|
||||
_node._animationY.MinValue = rangeY.X;
|
||||
_node._animationY.MaxValue = rangeY.Y;
|
||||
}
|
||||
for (int i = 0; i < MaxAnimationsCount; i++)
|
||||
{
|
||||
var dataA = (Float4)_node.Values[4 + i * 2];
|
||||
|
||||
Reference in New Issue
Block a user