Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a gas material object crashes the app #41

Open
samuelduchesne opened this issue Jan 5, 2021 · 0 comments
Open

Adding a gas material object crashes the app #41

samuelduchesne opened this issue Jan 5, 2021 · 0 comments
Labels

Comments

@samuelduchesne
Copy link
Member

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);
}
}

@rosecodym rosecodym removed their assignment Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants