Initialize class variables with default values in scene/ [1/2]
This commit is contained in:
parent
57e2822a05
commit
003bb8e1a8
139 changed files with 871 additions and 1652 deletions
|
|
@ -130,11 +130,6 @@ void AnimationNodeStateMachineTransition::_bind_methods() {
|
|||
}
|
||||
|
||||
AnimationNodeStateMachineTransition::AnimationNodeStateMachineTransition() {
|
||||
switch_mode = SWITCH_MODE_IMMEDIATE;
|
||||
auto_advance = false;
|
||||
xfade = 0;
|
||||
disabled = false;
|
||||
priority = 1;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
|
|
@ -502,16 +497,6 @@ void AnimationNodeStateMachinePlayback::_bind_methods() {
|
|||
|
||||
AnimationNodeStateMachinePlayback::AnimationNodeStateMachinePlayback() {
|
||||
set_local_to_scene(true); //only one per instanced scene
|
||||
|
||||
playing = false;
|
||||
len_current = 0;
|
||||
fading_time = 0;
|
||||
stop_request = false;
|
||||
len_total = 0.0;
|
||||
pos_current = 0.0;
|
||||
loops_current = 0;
|
||||
fading_pos = 0.0;
|
||||
start_request_travel = false;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
|
|
@ -975,5 +960,4 @@ void AnimationNodeStateMachine::_bind_methods() {
|
|||
}
|
||||
|
||||
AnimationNodeStateMachine::AnimationNodeStateMachine() {
|
||||
playback = "playback";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue