Skip to content

Adding a gas material object crashes the app #41

@samuelduchesne

Description

@samuelduchesne

Hi @rosecodym, I was playing around with the editor and realized that adding a new gas material (Add component button) crashes the app with error: System.ArgumentException: 'Property set method not found.' at line 84 in this loop:

foreach (var prop in type.GetProperties())
{
object def;
if (localDefaults.TryGetValue(prop.Name, out def) ||
sourceDefaults.TryGetValue(prop.Name, out def))
{
prop.SetValue(newComponent, def);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions