stride3d / stride

Stride Game Engine (formerly Xenko)
https://stride3d.net
MIT License
6.32k stars 917 forks source link

fix: Prevents a null IMemberNode to update #2307

Closed YerkoAndrei closed 1 week ago

YerkoAndrei commented 3 weeks ago

PR Details

Fixed an error when duplicating an Entity with a not null List<T> variable crashes the editor. This happen when T is something referenceable in a scene like Entities or Components.

When trying to cast a Node as IMemberNode, it resulted in a null and the editor crashing, this PR just prevent to call Update on a null.

Related Issue

2255

Types of changes

Checklist

YerkoAndrei commented 3 weeks ago

@dotnet-policy-service agree

Eideren commented 1 week ago

Thanks for this @YerkoAndrei ! Opened a new issue for this as you can see above