diff options
author | Hans Goudey <h.goudey@me.com> | 2021-02-16 19:55:10 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-02-16 19:55:10 +0300 |
commit | 520d965c77f9109492013d33cff659cd6055ff11 (patch) | |
tree | 5fbf5e6e8ffc917d158f6a46634209442efc3182 /source/blender/editors/include | |
parent | 8971018eb64a68119687c74db875fd45f89cbdf8 (diff) |
Cleanup: Compile node_draw.c with C++
This will allow using C++ data structures to draw node error messages.
This required removing a forward declared enum for grease pencil undo.
Compiles with clang tidy.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_gpencil.h | 4 | ||||
-rw-r--r-- | source/blender/editors/include/ED_node.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/include/ED_gpencil.h b/source/blender/editors/include/ED_gpencil.h index 12aef6e9464..2fbf280475b 100644 --- a/source/blender/editors/include/ED_gpencil.h +++ b/source/blender/editors/include/ED_gpencil.h @@ -62,8 +62,6 @@ struct bAnimContext; struct wmKeyConfig; struct wmOperator; -enum eUndoStepDir; - #define GPENCIL_MINIMUM_JOIN_DIST 20.0f /* Reproject stroke modes. */ @@ -215,7 +213,7 @@ bool ED_gpencil_anim_copybuf_paste(struct bAnimContext *ac, const short copy_mod /* ------------ Grease-Pencil Undo System ------------------ */ int ED_gpencil_session_active(void); -int ED_undo_gpencil_step(struct bContext *C, const enum eUndoStepDir step); +int ED_undo_gpencil_step(struct bContext *C, const int step); /* eUndoStepDir. */ /* ------------ Grease-Pencil Armature ------------------ */ bool ED_gpencil_add_armature(const struct bContext *C, diff --git a/source/blender/editors/include/ED_node.h b/source/blender/editors/include/ED_node.h index 78f354a300d..ea2383457c2 100644 --- a/source/blender/editors/include/ED_node.h +++ b/source/blender/editors/include/ED_node.h @@ -80,7 +80,7 @@ void ED_node_sample_set(const float col[4]); void ED_node_draw_snap( struct View2D *v2d, const float cent[2], float size, NodeBorder border, unsigned int pos); -/* node_draw.c */ +/* node_draw.cc */ void ED_node_socket_draw(struct bNodeSocket *sock, const struct rcti *rect, const float color[4], |