diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-04 02:29:56 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-04 02:31:11 +0300 |
commit | ccefcf46bf5cc417b3569d98fc910adcbdbcc6d6 (patch) | |
tree | 3b07f71ab734ee7a1df60a39add359dab58a9256 /source/blender | |
parent | 4837ea3ab6bc3a63f8baa34f6f7610e7824f97fd (diff) |
Cleanup: use doxy-sections in scene_edit.c
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/scene/scene_edit.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/source/blender/editors/scene/scene_edit.c b/source/blender/editors/scene/scene_edit.c index 1284331d92f..db59ec6278c 100644 --- a/source/blender/editors/scene/scene_edit.c +++ b/source/blender/editors/scene/scene_edit.c @@ -42,6 +42,10 @@ #include "WM_api.h" #include "WM_types.h" +/* -------------------------------------------------------------------- */ +/** \name Scene Utilities + * \{ */ + static Scene *scene_add(Main *bmain, Scene *scene_old, eSceneCopyMethod method) { Scene *scene_new = NULL; @@ -223,6 +227,12 @@ bool ED_scene_view_layer_delete(Main *bmain, Scene *scene, ViewLayer *layer, Rep return true; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Scene New Operator + * \{ */ + static int scene_new_exec(bContext *C, wmOperator *op) { Main *bmain = CTX_data_main(C); @@ -268,6 +278,12 @@ static void SCENE_OT_new(wmOperatorType *ot) ot->prop = RNA_def_enum(ot->srna, "type", type_items, 0, "Type", ""); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Scene New Sequencer Operator + * \{ */ + static int scene_new_sequencer_exec(bContext *C, wmOperator *op) { Main *bmain = CTX_data_main(C); @@ -345,6 +361,12 @@ static void SCENE_OT_new_sequencer(wmOperatorType *ot) RNA_def_property_flag(ot->prop, PROP_ENUM_NO_TRANSLATE); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Scene Delete Operator + * \{ */ + static bool scene_delete_poll(bContext *C) { Main *bmain = CTX_data_main(C); @@ -384,9 +406,17 @@ static void SCENE_OT_delete(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Registration + * \{ */ + void ED_operatortypes_scene(void) { WM_operatortype_append(SCENE_OT_new); WM_operatortype_append(SCENE_OT_delete); WM_operatortype_append(SCENE_OT_new_sequencer); } + +/** \} */ |