浏览代码

Particles2D: Fix normal map rid.

Looks like a Copy & Paste error, fixes #14334.
Andreas Haas 7 年之前
父节点
当前提交
4c222c2835
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/2d/particles_2d.cpp

+ 1 - 1
scene/2d/particles_2d.cpp

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