Cleanup: Move enum definition out of header

This commit is contained in:
Hans Goudey
2023-11-30 10:37:16 -05:00
parent 3adcc1378c
commit 68baa04eeb
2 changed files with 12 additions and 12 deletions

View File

@@ -52,6 +52,18 @@
using blender::Span;
using blender::Vector;
enum PartialVisAction {
PARTIALVIS_HIDE,
PARTIALVIS_SHOW,
};
enum PartialVisArea {
PARTIALVIS_INSIDE,
PARTIALVIS_OUTSIDE,
PARTIALVIS_ALL,
PARTIALVIS_MASKED,
};
/* Return true if the element should be hidden/shown. */
static bool is_effected(PartialVisArea area,
float planes[4][4],

View File

@@ -454,18 +454,6 @@ enum BrushStrokeMode {
/* paint_hide.cc */
enum PartialVisAction {
PARTIALVIS_HIDE,
PARTIALVIS_SHOW,
};
enum PartialVisArea {
PARTIALVIS_INSIDE,
PARTIALVIS_OUTSIDE,
PARTIALVIS_ALL,
PARTIALVIS_MASKED,
};
void PAINT_OT_hide_show(wmOperatorType *ot);
/* `paint_mask.cc` */