Skip to content

fix: Prevent Game Studio crash when creating prefab from entities with ModelNodeLinkComponent#3167

Merged
xen2 merged 2 commits into
stride3d:masterfrom
w0wca7a:fixes/prefab
Jun 3, 2026
Merged

fix: Prevent Game Studio crash when creating prefab from entities with ModelNodeLinkComponent#3167
xen2 merged 2 commits into
stride3d:masterfrom
w0wca7a:fixes/prefab

Conversation

@w0wca7a

@w0wca7a w0wca7a commented May 12, 2026

Copy link
Copy Markdown
Contributor

PR Details

Fixes two NullReferenceException crashes that occur when creating a prefab from a selection that contains entities with a ModelNodeLinkComponent bound to a skeleton node.

Related Issue

fix #3165

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have built and run the editor to try this change out.

w0wca7a added 2 commits May 12, 2026 22:48
fix exception when entity has not been re-parented yet
fix null model when CheckSkeleton() triggered.
model reference is restored later in the reconcile pass
@Kryptos-FR Kryptos-FR self-requested a review May 12, 2026 21:21
@xen2 xen2 merged commit 73dd7e9 into stride3d:master Jun 3, 2026
40 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NullReferenceException when creating prefab from selection containing ModelNodeLinkComponent

2 participants