summaryrefslogtreecommitdiff
path: root/editor/animation_bezier_editor.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-21 22:27:50 +0100
committerGitHub <noreply@github.com>2020-01-21 22:27:50 +0100
commit5127afa812f80c02e6f9fada854d46482daafca4 (patch)
tree8e4bf30bde2e456fe430f97dd0139febf6a332a0 /editor/animation_bezier_editor.cpp
parent6190690757ca322393f13e44bc2ceed79b362b45 (diff)
parent4faaf6089a3880d673c5fc51a260128bfe59b351 (diff)
Merge pull request #35413 from akien-mga/if-0-means-couperet
Remove unused #if 0'ed code
Diffstat (limited to 'editor/animation_bezier_editor.cpp')
-rw-r--r--editor/animation_bezier_editor.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/editor/animation_bezier_editor.cpp b/editor/animation_bezier_editor.cpp
index 2514663b4c..af2760e82b 100644
--- a/editor/animation_bezier_editor.cpp
+++ b/editor/animation_bezier_editor.cpp
@@ -491,26 +491,6 @@ void AnimationBezierTrackEdit::_notification(int p_what) {
}
draw_rect(Rect2(bs_from, bs_to - bs_from), bs);
}
-
-#if 0
- // KEYFAMES //
-
- {
-
- float scale = timeline->get_zoom_scale();
- int limit_end = get_size().width - timeline->get_buttons_width();
-
- for (int i = 0; i < animation->track_get_key_count(track); i++) {
-
- float offset = animation->track_get_key_time(track, i) - timeline->get_value();
- if (editor->is_key_selected(track, i) && editor->is_moving_selection()) {
- offset += editor->get_moving_selection_offset();
- }
- offset = offset * scale + limit;
- draw_key(i, scale, int(offset), editor->is_key_selected(track, i), limit, limit_end);
- }
- }
-#endif
}
}