From d90d5eb3c1dccf56784ffee2cf4276e3bfe0b361 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Mon, 1 Apr 2024 15:52:22 +0200 Subject: [PATCH] allow drag and dropping ShaderMaterial in 3D viewport Fixes #90075 --- editor/plugins/node_3d_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 468d7fb0516e..6778907ca8a3 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -4519,7 +4519,7 @@ bool Node3DEditorViewport::can_drop_data_fw(const Point2 &p_point, const Variant Ref base_mat = res; Ref shader_mat = res; - if (base_mat.is_null() && !shader_mat.is_null()) { + if (base_mat.is_null() && shader_mat.is_null()) { continue; }