Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-01-27 00:09:02 +0300
committerHans Goudey <h.goudey@me.com>2021-01-27 00:09:02 +0300
commit733bcbed46ed46fba10bc95c09d4dab22f32ac69 (patch)
treee5b20b056c8dd5f0a9e992a128e32d4fff9d3932 /source/blender/editors/space_api/spacetypes.c
parent1f81195fb998ce0a78fc322e5a1bed5eb2f5636f (diff)
Cleanup: Comment formatting, grammar
Diffstat (limited to 'source/blender/editors/space_api/spacetypes.c')
-rw-r--r--source/blender/editors/space_api/spacetypes.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c
index d8e7e27a0ab..01e57eab7c2 100644
--- a/source/blender/editors/space_api/spacetypes.c
+++ b/source/blender/editors/space_api/spacetypes.c
@@ -70,13 +70,13 @@
#include "io_ops.h"
-/* only call once on startup, storage is global in BKE kernel listbase */
+/* Only called once on startup. storage is global in BKE kernel listbase. */
void ED_spacetypes_init(void)
{
- /* UI_UNIT_X is now a variable, is used in some spacetype inits? */
+ /* UI unit is a variable, may be used in some space type inits. */
U.widget_unit = 20;
- /* create space types */
+ /* Create space types. */
ED_spacetype_outliner();
ED_spacetype_view3d();
ED_spacetype_ipo();
@@ -95,9 +95,8 @@ void ED_spacetypes_init(void)
ED_spacetype_clip();
ED_spacetype_statusbar();
ED_spacetype_topbar();
- // ...
- /* register operator types for screen and all spaces */
+ /* Register operator types for screen and all spaces. */
ED_operatortypes_userpref();
ED_operatortypes_workspace();
ED_operatortypes_scene();
@@ -129,7 +128,7 @@ void ED_spacetypes_init(void)
ED_screen_user_menu_register();
- /* gizmo types */
+ /* Gizmo types. */
ED_gizmotypes_button_2d();
ED_gizmotypes_dial_3d();
ED_gizmotypes_move_3d();
@@ -141,10 +140,10 @@ void ED_spacetypes_init(void)
ED_gizmotypes_cage_3d();
ED_gizmotypes_snap_3d();
- /* register types for operators and gizmos */
+ /* Register types for operators and gizmos. */
const ListBase *spacetypes = BKE_spacetypes_list();
LISTBASE_FOREACH (const SpaceType *, type, spacetypes) {
- /* init gizmo types first, operator-types need them */
+ /* Initialize gizmo types first, operator types need them. */
if (type->gizmos) {
type->gizmos();
}
@@ -156,8 +155,8 @@ void ED_spacetypes_init(void)
void ED_spacemacros_init(void)
{
- /* Macros's must go last since they reference other operators.
- * We need to have them go after python operators too */
+ /* Macros must go last since they reference other operators.
+ * They need to be registered after python operators too. */
ED_operatormacros_armature();
ED_operatormacros_mesh();
ED_operatormacros_uvedit();
@@ -174,7 +173,7 @@ void ED_spacemacros_init(void)
ED_operatormacros_paint();
ED_operatormacros_gpencil();
- /* register dropboxes (can use macros) */
+ /* Register dropboxes (can use macros). */
const ListBase *spacetypes = BKE_spacetypes_list();
LISTBASE_FOREACH (const SpaceType *, type, spacetypes) {
if (type->dropboxes) {
@@ -183,9 +182,10 @@ void ED_spacemacros_init(void)
}
}
-/* called in wm.c */
-/* keymap definitions are registered only once per WM initialize, usually on file read,
- * using the keymap the actual areas/regions add the handlers */
+/**
+ * \note Keymap definitions are registered only once per WM initialize,
+ * usually on file read, using the keymap the actual areas/regions add the handlers.
+ * \note Called in wm.c. */
void ED_spacetypes_keymap(wmKeyConfig *keyconf)
{
ED_keymap_screen(keyconf);
@@ -222,7 +222,7 @@ void ED_spacetypes_keymap(wmKeyConfig *keyconf)
}
}
-/* ********************** custom drawcall api ***************** */
+/* ********************** Custom Draw Call API ***************** */
typedef struct RegionDrawCB {
struct RegionDrawCB *next, *prev;