godot/scene
Josh Grams 8920ab0fbf * AnimationTreePlayer (_process_node): remove `switched` argument.
The _process_node function (which recurses through the blend tree
generating blend values and the active animation list) had an argument
named `switched` which would loop an animation back to the beginning if
it had reached the end (regardless of whether or not it was supposed to
be a looping animation).

This argument was only used in four places: two of them were overridden
by a seek-to-zero, and I believe the other two are bugs.

In OneShot, it was used to reset the oneshot animation to the beginning
when fired. But this would fail if the oneshot node was fired before it
had completed its previous run. While this *could* be a valid way for
oneshot to work (firing does nothing if it's already running), the code
currently resets the fade-in, so I believe that it is intended to reset.
I replaced this usage with seek-to-0.

In Transition, it was used on the previous (fading out) animation when
seeking the Transition node, which I believe is incorrect: why would you
want to loop a non-looping animation instead of simply fading out from
the end? Also it will never happen unless you seek the Transition node
twice during one cross-fade.

The other two uses are in Transition and _process_animation, where it is
used along with a seek-to-zero which overrides it.
2016-03-27 07:19:05 -04:00
..
2d Fix issues with tilemap covering child nodes and old quadrants 2016-03-18 18:57:26 +02:00
3d fix six possible "divide by zero" 2016-03-09 00:18:23 +01:00
animation * AnimationTreePlayer (_process_node): remove `switched` argument. 2016-03-27 07:19:05 -04:00
audio -Fixed bug with event player crashing, closes #3687 2016-02-20 21:00:08 -03:00
gui Merge pull request #4102 from SaracenOne/dynamic_margin_properties 2016-03-23 09:36:18 +01:00
io remove trailing whitespace 2016-03-09 00:00:52 +01:00
main -Made editor support SSL certs by default (embedded them) 2016-03-12 10:46:38 -03:00
resources Merge pull request #3528 from SaracenOne/baked_light_realtime_colourize 2016-03-15 10:22:09 +01:00
SCsub Cosmetic fixes to SCons buildsystem 2015-11-01 20:53:26 +01:00
register_scene_types.cpp remove trailing whitespace 2016-03-09 00:00:52 +01:00
register_scene_types.h Update copyright to 2016 in headers 2016-01-01 11:50:53 -02:00
scene_string_names.cpp Update copyright to 2016 in headers 2016-01-01 11:50:53 -02:00
scene_string_names.h Update copyright to 2016 in headers 2016-01-01 11:50:53 -02:00