From 5e28fa53c474b0bbb27ecb45973b846233f8b6d1 Mon Sep 17 00:00:00 2001 From: samHFIT Date: Tue, 12 Feb 2019 12:30:56 -0500 Subject: Fixes issue #25822 --- editor/plugins/particles_2d_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/plugins') diff --git a/editor/plugins/particles_2d_editor_plugin.cpp b/editor/plugins/particles_2d_editor_plugin.cpp index a944674cbd..bb7d50a9c1 100644 --- a/editor/plugins/particles_2d_editor_plugin.cpp +++ b/editor/plugins/particles_2d_editor_plugin.cpp @@ -91,6 +91,7 @@ void Particles2DEditorPlugin::_menu_callback(int p_idx) { cpu_particles->set_transform(particles->get_transform()); cpu_particles->set_visible(particles->is_visible()); cpu_particles->set_pause_mode(particles->get_pause_mode()); + cpu_particles->set_z_index(particles->get_z_index()); EditorNode::get_singleton()->get_scene_tree_dock()->replace_node(particles, cpu_particles, false); -- cgit v1.2.3