mirror of https://github.com/godotengine/godot
one shot timer
This commit is contained in:
parent
938dc17599
commit
7323093dae
|
|
@ -6054,7 +6054,7 @@ Tree::Tree() {
|
|||
add_child(range_click_timer, false, INTERNAL_MODE_FRONT);
|
||||
|
||||
dropping_unfold_timer = memnew(Timer);
|
||||
dropping_unfold_timer->set_wait_time(theme_cache.dragging_unfold_wait_msec * 0.001);
|
||||
dropping_unfold_timer->set_one_shot(true);
|
||||
dropping_unfold_timer->connect("timeout", callable_mp(this, &Tree::_on_dropping_unfold_timer_timeout));
|
||||
add_child(dropping_unfold_timer);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue