summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-02-13 21:25:16 +0300
committerGitHub <noreply@github.com>2020-02-13 21:25:16 +0300
commit17791363369eec42d097b426fc7aa4359e40fae8 (patch)
tree5f5d55868c55536eb83cfcddd4df3b822b96ed74 /editor
parent5c3944e7da9ca72077cb5348fadc86347904838c (diff)
parent7aad7df5746a2d93ec58d86dc4e70c3f31029cec (diff)
Merge pull request #36183 from Chaosus/vs_fix_texture_drop
Restore drag&drop textures in visual shaders
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/visual_shader_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp
index ebd7b4edf6..7d59b8e20d 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/editor/plugins/visual_shader_editor_plugin.cpp
@@ -2179,7 +2179,7 @@ void VisualShaderEditor::drop_data_fw(const Point2 &p_point, const Variant &p_da
_add_custom_node(arr[i]);
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_dirty = true;
_add_texture_node(arr[i]);