Skip to content

Editor: Crash when deleting Shader Root Node #1280

@yaliilyaya

Description

@yaliilyaya

Description
The editor terminates unexpectedly (crashes) when a user attempts to delete the Shader Root Node within the Material Editor.
Prerequisites
The project is open.
The Material Editor tool is functional.
Steps to Reproduce
Create a new Material asset.
Open the created material to enter Edit mode.
Select the Shader Root Node in the graph.
Press the Delete key (or click the "Delete" button).
Expected behavior:
The Shader Root Node should be protected from deletion, or the action should be ignored. The editor must remain stable and functional.
Actual behavior:
The editor crashes immediately after the deletion command is issued.
Reproducibility:
5/5 (Always occurs)
Versions
Engine Version: f32e96c
OS: Windows
Additional Information
This issue is critical as it leads to potential loss of unsaved changes in the project. It appears the graph logic does not have a "non-deletable" flag for the root node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Next release is blocked by this issue

    Type

    Projects

    Status

    Done for Release

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions