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

Allow drag and dropping ShaderMaterial in 3D viewport
This commit is contained in:
Rémi Verschelde 2024-04-08 11:20:59 +02:00
commit f202ebb495
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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;
}