Fix #112021: Crash dragging node groups into an empty node editor

Mistake in 30e3caaf82 (which wasnt checking if an `edittree` actually
existed).

Pull Request: https://projects.blender.org/blender/blender/pulls/112023
This commit is contained in:
Philipp Oeser
2023-09-06 13:51:18 +02:00
committed by Philipp Oeser
parent 0d5a094532
commit e924f316a7

View File

@@ -682,6 +682,10 @@ static bool node_group_drop_poll(bContext *C, wmDrag *drag, const wmEvent * /*ev
{
SpaceNode *snode = CTX_wm_space_node(C);
if (snode->edittree == nullptr) {
return false;
}
if (!WM_drag_is_ID_type(drag, ID_NT)) {
return false;
}