allow drag and dropping ShaderMaterial in 3D viewport

Fixes #90075
This commit is contained in:
themancalledjakob 2024-04-01 15:52:22 +02:00
parent 29b3d9e9e5
commit d90d5eb3c1
1 changed files with 1 additions and 1 deletions

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