fix bug #13743 by disabling the creation of a catch all animation.
We have a better handling of skip that way
This commit is contained in:
parent
85986330f6
commit
fe1f1cdce0
1 changed files with 2 additions and 2 deletions
|
@ -329,14 +329,14 @@ void unit_animation::fill_initial_animations( std::vector<unit_animation> & anim
|
|||
if( animation_base.empty() )
|
||||
animation_base.push_back(unit_animation(0,frame_builder().image(default_image).duration(1),"",unit_animation::DEFAULT_ANIM));
|
||||
|
||||
animations.push_back(unit_animation(0,frame_builder().image(default_image).duration(1),"_disabled_",0));
|
||||
animations.push_back(unit_animation(0,frame_builder().image(default_image).duration(1),"_disabled_",0));
|
||||
animations.push_back(unit_animation(0,frame_builder().image(default_image).duration(1).
|
||||
blend("0.0~0.3:100,0.3~0.0:200",display::rgb(255,255,255)),"_disabled_selected_",0));
|
||||
for(itor = animation_base.begin() ; itor != animation_base.end() ; itor++ ) {
|
||||
unit_animation tmp_anim = *itor;
|
||||
// provide all default anims
|
||||
//no event, providing a catch all anim
|
||||
animations.push_back(tmp_anim);
|
||||
//animations.push_back(tmp_anim);
|
||||
|
||||
tmp_anim = *itor;
|
||||
tmp_anim.event_ = utils::split("standing");
|
||||
|
|
Loading…
Add table
Reference in a new issue