Skip to content

Commit

Permalink
Merge pull request #52664 from butkeim/3.x
Browse files Browse the repository at this point in the history
[3.x] Fix 3D Onion skinning missing
  • Loading branch information
akien-mga authored Sep 14, 2021
2 parents 82ca712 + 77b00d1 commit 07d7754
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion editor/plugins/animation_player_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ void AnimationPlayerEditor::edit(AnimationPlayer *p_player) {
}
}

void AnimationPlayerEditor::forward_canvas_force_draw_over_viewport(Control *p_overlay) {
void AnimationPlayerEditor::forward_force_draw_over_viewport(Control *p_overlay) {
if (!onion.can_overlay) {
return;
}
Expand Down
5 changes: 3 additions & 2 deletions editor/plugins/animation_player_editor_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class AnimationPlayerEditor : public VBoxContainer {

void set_undo_redo(UndoRedo *p_undo_redo) { undo_redo = p_undo_redo; }
void edit(AnimationPlayer *p_player);
void forward_canvas_force_draw_over_viewport(Control *p_overlay);
void forward_force_draw_over_viewport(Control *p_overlay);

AnimationPlayerEditor(EditorNode *p_editor, AnimationPlayerEditorPlugin *p_plugin);
};
Expand All @@ -262,7 +262,8 @@ class AnimationPlayerEditorPlugin : public EditorPlugin {
virtual bool handles(Object *p_object) const;
virtual void make_visible(bool p_visible);

virtual void forward_canvas_force_draw_over_viewport(Control *p_overlay) { anim_editor->forward_canvas_force_draw_over_viewport(p_overlay); }
virtual void forward_canvas_force_draw_over_viewport(Control *p_overlay) { anim_editor->forward_force_draw_over_viewport(p_overlay); }
virtual void forward_spatial_force_draw_over_viewport(Control *p_overlay) { anim_editor->forward_force_draw_over_viewport(p_overlay); }

AnimationPlayerEditorPlugin(EditorNode *p_node);
~AnimationPlayerEditorPlugin();
Expand Down

0 comments on commit 07d7754

Please sign in to comment.