Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scene/animation/tween.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,12 @@ void Tween::_bind_methods() {
}

Tween::Tween() {
ERR_FAIL_MSG("Tween can't be created directly. Use create_tween() method.");
dead = true;
}

Tween::Tween(SceneTree *p_parent_tree) {
parent_tree = p_parent_tree;
running = true;
valid = true;
}

Expand Down
2 changes: 1 addition & 1 deletion scene/animation/tween.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Tween : public RefCounted {

bool is_bound = false;
bool started = false;
bool running = true;
bool running = false;
bool in_step = false;
bool dead = false;
bool valid = false;
Expand Down