Cleanup: clang-format, comment indentation
This commit is contained in:
parent
85dc8d7477
commit
cb560c01b6
|
@ -741,8 +741,8 @@ static void default_get_tarmat_full_bbone(struct Depsgraph *UNUSED(depsgraph),
|
|||
|
||||
/* This following macro should be used for all standard single-target *_get_tars functions
|
||||
* to save typing and reduce maintenance woes.
|
||||
* (Hopefully all compilers will be happy with the lines with just a space on them. Those are
|
||||
* really just to help this code easier to read)
|
||||
* (Hopefully all compilers will be happy with the lines with just a space on them.
|
||||
* Those are really just to help this code easier to read).
|
||||
*/
|
||||
// TODO: cope with getting rotation order...
|
||||
#define SINGLETARGET_GET_TARS(con, datatar, datasubtarget, ct, list) \
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
/** \file
|
||||
* \ingroup bke
|
||||
* \ingroup bke
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
|
|
|
@ -6919,13 +6919,14 @@ static void set_profile_spacing(BevelParams *bp, ProfileSpacing *pro_spacing, bo
|
|||
|
||||
/**
|
||||
* Assume we have a situation like:
|
||||
*
|
||||
* <pre>
|
||||
* a d
|
||||
* \ /
|
||||
* A \ / C
|
||||
* \ th1 th2/
|
||||
* b---------c
|
||||
* B
|
||||
* </pre>
|
||||
*
|
||||
* where edges are A, B, and C, following a face around vertices a, b, c, d.
|
||||
* th1 is angle abc and th2 is angle bcd;
|
||||
|
|
|
@ -2779,7 +2779,8 @@ void uiTemplatePreview(uiLayout *layout,
|
|||
|
||||
if (!preview_id || (preview_id[0] == '\0')) {
|
||||
/* If no identifier given, generate one from ID type. */
|
||||
BLI_snprintf(_preview_id, UI_MAX_NAME_STR, "uiPreview_%s", BKE_idtype_idcode_to_name(GS(id->name)));
|
||||
BLI_snprintf(
|
||||
_preview_id, UI_MAX_NAME_STR, "uiPreview_%s", BKE_idtype_idcode_to_name(GS(id->name)));
|
||||
preview_id = _preview_id;
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
/** \file
|
||||
* \ingroup edphys
|
||||
* \ingroup edphys
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
|
|
|
@ -182,12 +182,12 @@ static void fsmenu_xdg_user_dirs_free(GHash *xdg_map)
|
|||
}
|
||||
|
||||
/**
|
||||
* Add fsmenu entry for system folders on linux.
|
||||
* - Check if a path is stored in the GHash generated from user-dirs.dirs
|
||||
* - If not, check for a default path in $HOME
|
||||
* Add fsmenu entry for system folders on linux.
|
||||
* - Check if a path is stored in the GHash generated from user-dirs.dirs
|
||||
* - If not, check for a default path in $HOME
|
||||
*
|
||||
* \param key: Use `user-dirs.dirs` format "XDG_EXAMPLE_DIR"
|
||||
* \param default_path: Directory name to check in $HOME, also used for the menu entry name.
|
||||
* \param key: Use `user-dirs.dirs` format "XDG_EXAMPLE_DIR"
|
||||
* \param default_path: Directory name to check in $HOME, also used for the menu entry name.
|
||||
*/
|
||||
static void fsmenu_xdg_insert_entry(GHash *xdg_map,
|
||||
struct FSMenu *fsmenu,
|
||||
|
|
|
@ -81,15 +81,15 @@
|
|||
* <typenr><nr_of_elems> <typenr><namenr> <typenr><namenr> ...
|
||||
* \endcode
|
||||
*
|
||||
* **Remember to read/write integer and short aligned!**
|
||||
* **Remember to read/write integer and short aligned!**
|
||||
*
|
||||
* While writing a file, the names of a struct is indicated with a type number,
|
||||
* to be found with: ``type = DNA_struct_find_nr(SDNA *, const char *)``
|
||||
* The value of ``type`` corresponds with the index within the structs array
|
||||
* While writing a file, the names of a struct is indicated with a type number,
|
||||
* to be found with: ``type = DNA_struct_find_nr(SDNA *, const char *)``
|
||||
* The value of ``type`` corresponds with the index within the structs array
|
||||
*
|
||||
* For the moment: the complete DNA file is included in a .blend file. For
|
||||
* the future we can think of smarter methods, like only included the used
|
||||
* structs. Only needed to keep a file short though...
|
||||
* For the moment: the complete DNA file is included in a .blend file. For
|
||||
* the future we can think of smarter methods, like only included the used
|
||||
* structs. Only needed to keep a file short though...
|
||||
*
|
||||
* ALLOWED AND TESTED CHANGES IN STRUCTS:
|
||||
* - Type change (a char to float will be divided by 255).
|
||||
|
|
|
@ -1278,7 +1278,8 @@ ID *WM_operator_drop_load_path(struct bContext *C, wmOperator *op, const short i
|
|||
RNA_string_get(op->ptr, "name", name);
|
||||
id = BKE_libblock_find_name(bmain, idcode, name);
|
||||
if (!id) {
|
||||
BKE_reportf(op->reports, RPT_ERROR, "%s '%s' not found", BKE_idtype_idcode_to_name(idcode), name);
|
||||
BKE_reportf(
|
||||
op->reports, RPT_ERROR, "%s '%s' not found", BKE_idtype_idcode_to_name(idcode), name);
|
||||
return NULL;
|
||||
}
|
||||
id_us_plus(id);
|
||||
|
|
Loading…
Reference in New Issue