From ded4cedc5f9cded4652f9b283c1eefed38977295 Mon Sep 17 00:00:00 2001 From: MysticalMonkeys <64361090+MysticalMonkeys@users.noreply.github.com> Date: Wed, 13 Sep 2023 11:45:44 +0200 Subject: [PATCH] Fix VectorOut.cs Fix erroneously converting the input value to Int32 --- Assets/Klak/Wiring/Output/VectorOut.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Klak/Wiring/Output/VectorOut.cs b/Assets/Klak/Wiring/Output/VectorOut.cs index cd561b8..f2f8022 100644 --- a/Assets/Klak/Wiring/Output/VectorOut.cs +++ b/Assets/Klak/Wiring/Output/VectorOut.cs @@ -53,10 +53,10 @@ public Vector3 input if (_target.GetType() == typeof(ParticleSystem) && _particleSystemModuleName != "<none>") { - _propertyInfo.SetValue(_boxedStruct, System.Convert.ToInt32(value), null); + _propertyInfo.SetValue(_boxedStruct, value, null); } - else _propertyInfo.SetValue(_target, System.Convert.ToInt32(value), null); + else _propertyInfo.SetValue(_target, value, null); } }