Merge pull request #25828 from samH-FIT/particle_fix

Fixes issue where ZIndex of converted CPUParticles2D is reset to zero
This commit is contained in:
Rémi Verschelde 2019-02-12 22:05:14 +01:00 committed by GitHub
commit cc76f3c71d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);