Particles2D: Fix normal map rid.

Looks like a Copy & Paste error, fixes #14334.
This commit is contained in:
Andreas Haas 2017-12-06 22:27:39 +01:00
parent 0bc573635c
commit 4c222c2835
No known key found for this signature in database
GPG key ID: B5FFAE1B65FBD2E1

View file

@ -291,7 +291,7 @@ void Particles2D::_notification(int p_what) {
texture_rid = texture->get_rid();
RID normal_rid;
if (normal_map.is_valid())
normal_rid = texture->get_rid();
normal_rid = normal_map->get_rid();
VS::get_singleton()->canvas_item_add_particles(get_canvas_item(), particles, texture_rid, normal_rid, h_frames, v_frames);