You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Restore drag&drop textures in visual shaders
This commit is contained in:
@@ -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]);
|
||||||
|
|||||||
Reference in New Issue
Block a user