Merge pull request #36183 from Chaosus/vs_fix_texture_drop

Restore drag&drop textures in visual shaders
This commit is contained in:
Yuri Roubinsky 2020-02-13 21:25:16 +03:00 committed by GitHub
commit 1779136336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2179,7 +2179,7 @@ void VisualShaderEditor::drop_data_fw(const Point2 &p_point, const Variant &p_da
_add_custom_node(arr[i]); _add_custom_node(arr[i]);
j++; j++;
} }
} else if (ClassDB::get_parent_class(type) == "Texture") { } else if (ClassDB::get_parent_class(type) == "Texture2D") {
saved_node_pos = p_point + Vector2(0, j * 210 * EDSCALE); saved_node_pos = p_point + Vector2(0, j * 210 * EDSCALE);
saved_node_pos_dirty = true; saved_node_pos_dirty = true;
_add_texture_node(arr[i]); _add_texture_node(arr[i]);