mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Call correct UUID constructor for Entities, fixed crash and weirdness when Scripts have fields that are classes
Let's not talk about the fact that this was a one line fix all along...
This commit is contained in:
@@ -377,6 +377,10 @@ static class ScriptEngine
|
||||
script.Instance.SetFieldValue(scriptField, componentInstance);
|
||||
|
||||
componentType.ReleaseRef();
|
||||
case .Struct:
|
||||
// TODO: Handle Structs when copying fields to instance.
|
||||
case .Class:
|
||||
// TODO: Handle Class when copying fields to instance.
|
||||
default:
|
||||
script.Instance.SetFieldValue(scriptField, field._data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user