Skip to content

Commit

Permalink
Merge pull request #90102 from themancalledjakob/fix-drag-drop-shader…
Browse files Browse the repository at this point in the history
…material

Allow drag and dropping ShaderMaterial in 3D viewport
  • Loading branch information
akien-mga committed Apr 8, 2024
2 parents ab39f4c + d90d5eb commit f202ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/node_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f202ebb

Please sign in to comment.