[Bf-blender-cvs] [d6643b57bcd] master: Cleanup: use doxy comments for wmOperatoType.flag
Campbell Barton
noreply at git.blender.org
Tue May 28 17:06:10 CEST 2019
Commit: d6643b57bcd9ca536bb9e6eb4cebd83a58578123
Author: Campbell Barton
Date: Wed May 29 01:00:16 2019 +1000
Branches: master
https://developer.blender.org/rBd6643b57bcd9ca536bb9e6eb4cebd83a58578123
Cleanup: use doxy comments for wmOperatoType.flag
===================================================================
M source/blender/windowmanager/WM_types.h
===================================================================
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h
index e6e7b7d1577..f3771ea22a4 100644
--- a/source/blender/windowmanager/WM_types.h
+++ b/source/blender/windowmanager/WM_types.h
@@ -135,31 +135,39 @@ typedef struct wmGenericCallback {
/* ************** wmOperatorType ************************ */
-/* flag */
+/** #wmOperatorType.flag */
enum {
- OPTYPE_REGISTER = (1 << 0), /* register operators in stack after finishing */
- OPTYPE_UNDO = (1 << 1), /* do undo push after after */
- OPTYPE_BLOCKING = (1 << 2), /* let blender grab all input from the WM (X11) */
+ /** Register operators in stack after finishing (needed for redo). */
+ OPTYPE_REGISTER = (1 << 0),
+ /** Do an undo push after the operator runs. */
+ OPTYPE_UNDO = (1 << 1),
+ /** Let Blender grab all input from the WM (X11) */
+ OPTYPE_BLOCKING = (1 << 2),
OPTYPE_MACRO = (1 << 3),
- /* grabs the cursor and optionally enables continuous cursor wrapping. */
+ /** Grabs the cursor and optionally enables continuous cursor wrapping. */
OPTYPE_GRAB_CURSOR_XY = (1 << 4),
- OPTYPE_GRAB_CURSOR_X = (1 << 5), /* Only X axis. */
- OPTYPE_GRAB_CURSOR_Y = (1 << 6), /* Only Y axis. */
+ /** Only warp on the X axis. */
+ OPTYPE_GRAB_CURSOR_X = (1 << 5),
+ /** Only warp on the Y axis. */
+ OPTYPE_GRAB_CURSOR_Y = (1 << 6),
- OPTYPE_PRESET = (1 << 7), /* show preset menu */
+ /** Show preset menu. */
+ OPTYPE_PRESET = (1 << 7),
- /* some operators are mainly for internal use
- * and don't make sense to be accessed from the
- * search menu, even if poll() returns true.
- * currently only used for the search toolbox */
+ /**
+ * Some operators are mainly for internal use and don't make sense
+ * to be accessed from the search menu, even if poll() returns true.
+ * Currently only used for the search toolbox.
+ */
OPTYPE_INTERNAL = (1 << 8),
- OPTYPE_LOCK_BYPASS = (1 << 9), /* Allow operator to run when interface is locked */
- OPTYPE_UNDO_GROUPED =
- (1 << 10), /* Special type of undo which doesn't store itself multiple times */
- OPTYPE_USE_EVAL_DATA =
- (1 << 11), /* Need evaluated data (i.e. a valid, up-to-date depsgraph for current context) */
+ /** Allow operator to run when interface is locked. */
+ OPTYPE_LOCK_BYPASS = (1 << 9),
+ /** Special type of undo which doesn't store itself multiple times. */
+ OPTYPE_UNDO_GROUPED = (1 << 10),
+ /** Need evaluated data (i.e. a valid, up-to-date depsgraph for current context). */
+ OPTYPE_USE_EVAL_DATA = (1 << 11),
};
/** For #WM_cursor_grab_enable wrap axis. */
More information about the Bf-blender-cvs
mailing list