mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Merge pull request #13 from AnnulusGames/fix-button-args
Fix: error regarding button arguments
This commit is contained in:
commit
9e7b6d042b
@ -61,7 +61,7 @@ namespace Alchemy.Editor.Elements
|
||||
{
|
||||
var index = i;
|
||||
var parameter = parameters[index];
|
||||
parameterObjects[index] = Activator.CreateInstance(parameter.ParameterType);
|
||||
parameterObjects[index] = TypeHelper.CreateDefaultInstance(parameter.ParameterType);
|
||||
var element = new GenericField(parameterObjects[index], parameter.ParameterType, ObjectNames.NicifyVariableName(parameter.Name), 0);
|
||||
element.OnValueChanged += x => parameterObjects[index] = x;
|
||||
element.style.paddingRight = 4f;
|
||||
|
Loading…
Reference in New Issue
Block a user