Browse Source

Fix AnimatedSprite normal map loading

Normal map names are now correctly set up during loading.

(cherry picked from commit d02b319ec4c5f72251ba03af8375d99bac67f64b)
lawnjelly 2 years ago
parent
commit
6e52037876
1 changed files with 1 additions and 0 deletions
  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"]] = anim;
+		animations[d["name"]].normal_name = String(d["name"]) + NORMAL_SUFFIX;
 	}
 	}
 }
 }