Browse Source

Merge pull request #90102 from themancalledjakob/fix-drag-drop-shadermaterial

Allow drag and dropping ShaderMaterial in 3D viewport
Rémi Verschelde 1 year ago
parent
commit
f202ebb495
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/plugins/node_3d_editor_plugin.cpp

+ 1 - 1
editor/plugins/node_3d_editor_plugin.cpp

@@ -4519,7 +4519,7 @@ bool Node3DEditorViewport::can_drop_data_fw(const Point2 &p_point, const Variant
 						Ref<BaseMaterial3D> base_mat = res;
 						Ref<ShaderMaterial> shader_mat = res;
 
-						if (base_mat.is_null() && !shader_mat.is_null()) {
+						if (base_mat.is_null() && shader_mat.is_null()) {
 							continue;
 						}