Ver Fonte

Merge pull request #80406 from lawnjelly/animated_sprite_normal_fix

[3.x] Fix AnimatedSprite normal map loading
Rémi Verschelde há 2 anos atrás
pai
commit
21ab700f2d
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      scene/2d/animated_sprite.cpp

+ 1 - 0
scene/2d/animated_sprite.cpp

@@ -274,6 +274,7 @@ void SpriteFrames::_set_animations(const Array &p_animations) {
 		}
 
 		animations[d["name"]] = anim;
+		animations[d["name"]].normal_name = String(d["name"]) + NORMAL_SUFFIX;
 	}
 }