Cleanup: strip blank lines around comment blocks
This commit is contained in:
parent
9d2136f272
commit
1f2a5fea87
|
@ -85,7 +85,6 @@ void driver_free_variable_ex(struct ChannelDriver *driver, struct DriverVar *dva
|
|||
void driver_change_variable_type(struct DriverVar *dvar, int type);
|
||||
/**
|
||||
* Validate driver variable name (after being renamed).
|
||||
*
|
||||
*/
|
||||
void driver_variable_name_validate(struct DriverVar *dvar);
|
||||
/**
|
||||
|
|
|
@ -110,7 +110,6 @@ void BKE_object_eval_constraints(Depsgraph *depsgraph, Scene *scene, Object *ob)
|
|||
* - post (i.e. BKE_constraints_clear_evalob)
|
||||
*
|
||||
* Not sure why, this is from Joshua - sergey
|
||||
*
|
||||
*/
|
||||
cob = BKE_constraints_make_evalob(depsgraph, scene, ob, NULL, CONSTRAINT_OBTYPE_OBJECT);
|
||||
BKE_constraints_solve(depsgraph, &ob->constraints, cob, ctime);
|
||||
|
|
|
@ -57,7 +57,6 @@ size_t BLI_array_store_calc_size_expanded_get(const BArrayStore *bs);
|
|||
size_t BLI_array_store_calc_size_compacted_get(const BArrayStore *bs);
|
||||
|
||||
/**
|
||||
*
|
||||
* \param data: Data used to create
|
||||
* \param state_reference: The state to use as a reference when adding the new state,
|
||||
* typically this is the previous state,
|
||||
|
|
|
@ -63,7 +63,6 @@
|
|||
*
|
||||
* void some_function(FunctionRef<int()> f);
|
||||
* some_function([]() { return 0; });
|
||||
*
|
||||
*/
|
||||
|
||||
#include "BLI_memory_utils.hh"
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
*
|
||||
* To add a new formatter a new sub-class of `Formatter` must be created and the
|
||||
* `serialize`/`deserialize` methods should be implemented.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <ostream>
|
||||
|
@ -110,7 +109,6 @@ using ArrayValue = ContainerValue<Vector<std::shared_ptr<Value>>, eValueType::Ar
|
|||
* - `DoubleValue`: contains a double precision floating point number.
|
||||
* - `DictionaryValue`: represents an object (key value pairs where keys are strings and values can
|
||||
* be of different types.
|
||||
*
|
||||
*/
|
||||
class Value {
|
||||
private:
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
* \ingroup bli
|
||||
*
|
||||
* Dead simple, fast memory allocator for allocating many elements of the same size.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -712,7 +712,6 @@ void BLI_box_pack_2d_fixedarea(ListBase *boxes, int width, int height, ListBase
|
|||
* # Box * Small # # Box * #
|
||||
* # * # # * #
|
||||
* ################### ###################
|
||||
*
|
||||
*/
|
||||
int area_hsplit_large = space->w * (space->h - box->h);
|
||||
int area_vsplit_large = (space->w - box->w) * space->h;
|
||||
|
|
|
@ -263,7 +263,6 @@ BLI_INLINE float mix(float v0, float v1, float x)
|
|||
* + + |
|
||||
* @ + + + + @ @------> x
|
||||
* v0 v1
|
||||
*
|
||||
*/
|
||||
BLI_INLINE float mix(float v0, float v1, float v2, float v3, float x, float y)
|
||||
{
|
||||
|
|
|
@ -689,7 +689,6 @@ static void update_vector_math_node_normalize_operator(bNodeTree *ntree)
|
|||
* a value of -1 just to be identified later in the versioning code:
|
||||
*
|
||||
* Average Operator : 2 -> -1
|
||||
*
|
||||
*/
|
||||
static void update_vector_math_node_operators_enum_mapping(bNodeTree *ntree)
|
||||
{
|
||||
|
@ -867,7 +866,6 @@ static void update_mapping_node_fcurve_rna_path_callback(ID *UNUSED(id),
|
|||
* and check if they control a property of the node, if they do, we update
|
||||
* the path to be that of the corresponding socket in the node or the added
|
||||
* minimum/maximum node.
|
||||
*
|
||||
*/
|
||||
static void update_mapping_node_inputs_and_properties(bNodeTree *ntree)
|
||||
{
|
||||
|
@ -1057,7 +1055,6 @@ static void update_voronoi_node_fac_output(bNodeTree *ntree)
|
|||
* the inputs of the subtract node.
|
||||
* 6. The output of the subtract node is connected to the
|
||||
* appropriate sockets.
|
||||
*
|
||||
*/
|
||||
static void update_voronoi_node_crackle(bNodeTree *ntree)
|
||||
{
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* FILE FORMAT
|
||||
* ===========
|
||||
*
|
||||
|
|
|
@ -61,8 +61,8 @@ struct BMeshToMeshParams {
|
|||
bool active_shapekey_to_mvert;
|
||||
struct CustomData_MeshMasks cd_mask_extra;
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* \param bmain: May be NULL in case \a calc_object_remap parameter option is not set.
|
||||
*/
|
||||
void BM_mesh_bm_to_me(struct Main *bmain,
|
||||
|
|
|
@ -138,7 +138,6 @@ BMLoop *BM_face_other_vert_loop(BMFace *f, BMVert *v_prev, BMVert *v) ATTR_WARN_
|
|||
* +----------+ <-- This loop defines the face and vertex..
|
||||
* l
|
||||
* </pre>
|
||||
*
|
||||
*/
|
||||
BMLoop *BM_loop_other_vert_loop_by_edge(BMLoop *l, BMEdge *e) ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_NONNULL();
|
||||
|
|
|
@ -77,7 +77,6 @@ void bmo_contextual_create_exec(BMesh *bm, BMOperator *op)
|
|||
* | .
|
||||
* | .
|
||||
* +........+ <-- starts out free standing.
|
||||
*
|
||||
*/
|
||||
|
||||
/* Here we check for consistency and create 2 edges */
|
||||
|
|
|
@ -12,8 +12,8 @@ extern "C" {
|
|||
|
||||
/* Keep ascii art. */
|
||||
/* clang-format off */
|
||||
|
||||
/**
|
||||
*
|
||||
* \defgroup Model The data model of the compositor
|
||||
* \ingroup compositor
|
||||
* \defgroup Memory The memory management stuff
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
* they take into account to create the render passes. When accurate mode is off the number of
|
||||
* levels is used as the number of cryptomatte samples to take. When accuracy mode is on the number
|
||||
* of render samples is used.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "DRW_engine.h"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
/**
|
||||
* Dilate motion vector tiles until we covered maximum velocity.
|
||||
* Outputs the largest intersecting motion vector in the neighborhood.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma BLENDER_REQUIRE(common_math_geom_lib.glsl)
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
*
|
||||
* `draw::Framebuffer`
|
||||
* Simple wrapper to #GPUFramebuffer that can be moved.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "DRW_render.h"
|
||||
|
|
|
@ -3658,9 +3658,7 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event)
|
|||
}
|
||||
}
|
||||
|
||||
/* Exit painting mode (and/or end current stroke).
|
||||
*
|
||||
*/
|
||||
/* Exit painting mode (and/or end current stroke). */
|
||||
if (ELEM(event->type, EVT_RETKEY, EVT_PADENTER, EVT_ESCKEY, EVT_SPACEKEY)) {
|
||||
|
||||
p->status = GP_STATUS_DONE;
|
||||
|
|
|
@ -4092,7 +4092,6 @@ static bool lineart_bounding_area_triangle_intersect(LineartData *fb,
|
|||
* (#LineartBoundingArea) for intersection lines. When splitting the tile into 4 children and
|
||||
* re-linking triangles into the child tiles, intersections are inhibited so we don't get
|
||||
* duplicated intersection lines.
|
||||
*
|
||||
*/
|
||||
static void lineart_bounding_area_link_triangle(LineartData *ld,
|
||||
LineartBoundingArea *root_ba,
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
* + + |
|
||||
* @ + + + + @ @------> x
|
||||
* v0 v1
|
||||
*
|
||||
*/
|
||||
float bi_mix(float v0, float v1, float v2, float v3, float x, float y)
|
||||
{
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*
|
||||
* With optimization to change -2..2 scan window to -1..1 for better performance,
|
||||
* as explained in https://www.shadertoy.com/view/llG3zy.
|
||||
*
|
||||
*/
|
||||
|
||||
/* **** 1D Voronoi **** */
|
||||
|
|
|
@ -50,7 +50,6 @@ extern "C" {
|
|||
#define IM_MAX_SPACE 64
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention defined in ???
|
||||
*/
|
||||
struct ImBuf;
|
||||
|
@ -58,7 +57,6 @@ struct rctf;
|
|||
struct rcti;
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention defined in ???
|
||||
*/
|
||||
struct anim;
|
||||
|
@ -67,21 +65,18 @@ struct ColorManagedDisplay;
|
|||
|
||||
struct GSet;
|
||||
/**
|
||||
*
|
||||
* \attention defined in DNA_scene_types.h
|
||||
*/
|
||||
struct ImageFormatData;
|
||||
struct Stereo3dFormat;
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in allocimbuf.c
|
||||
*/
|
||||
void IMB_init(void);
|
||||
void IMB_exit(void);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in readimage.c
|
||||
*/
|
||||
struct ImBuf *IMB_ibImageFromMemory(const unsigned char *mem,
|
||||
|
@ -91,19 +86,16 @@ struct ImBuf *IMB_ibImageFromMemory(const unsigned char *mem,
|
|||
const char *descr);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in readimage.c
|
||||
*/
|
||||
struct ImBuf *IMB_testiffname(const char *filepath, int flags);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in readimage.c
|
||||
*/
|
||||
struct ImBuf *IMB_loadiffname(const char *filepath, int flags, char colorspace[IM_MAX_SPACE]);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in readimage.c
|
||||
*/
|
||||
struct ImBuf *IMB_thumb_load_image(const char *filepath,
|
||||
|
@ -111,13 +103,11 @@ struct ImBuf *IMB_thumb_load_image(const char *filepath,
|
|||
char colorspace[IM_MAX_SPACE]);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in allocimbuf.c
|
||||
*/
|
||||
void IMB_freeImBuf(struct ImBuf *ibuf);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in allocimbuf.c
|
||||
*/
|
||||
struct ImBuf *IMB_allocImBuf(unsigned int x,
|
||||
|
@ -154,7 +144,6 @@ struct ImBuf *IMB_allocFromBuffer(const unsigned int *rect,
|
|||
unsigned int channels);
|
||||
|
||||
/**
|
||||
*
|
||||
* Increase reference count to imbuf
|
||||
* (to delete an imbuf you have to call freeImBuf as many times as it
|
||||
* is referenced)
|
||||
|
@ -166,13 +155,11 @@ void IMB_refImBuf(struct ImBuf *ibuf);
|
|||
struct ImBuf *IMB_makeSingleUser(struct ImBuf *ibuf);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in allocimbuf.c
|
||||
*/
|
||||
struct ImBuf *IMB_dupImBuf(const struct ImBuf *ibuf1);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in allocimbuf.c
|
||||
*/
|
||||
bool addzbufImBuf(struct ImBuf *ibuf);
|
||||
|
@ -197,7 +184,6 @@ size_t IMB_get_size_in_memory(struct ImBuf *ibuf);
|
|||
size_t IMB_get_rect_len(const struct ImBuf *ibuf);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in rectop.c
|
||||
*/
|
||||
|
||||
|
@ -304,7 +290,6 @@ void IMB_rectblend_threaded(struct ImBuf *dbuf,
|
|||
bool accumulate);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in indexer.c
|
||||
*/
|
||||
|
||||
|
@ -399,7 +384,6 @@ double IMD_anim_get_offset(struct anim *anim);
|
|||
bool IMB_anim_get_fps(struct anim *anim, short *frs_sec, float *frs_sec_base, bool no_av_base);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in anim_movie.c
|
||||
*/
|
||||
struct anim *IMB_open_anim(const char *name,
|
||||
|
@ -412,7 +396,6 @@ void IMB_close_anim_proxies(struct anim *anim);
|
|||
bool IMB_anim_can_produce_frames(const struct anim *anim);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in anim_movie.c
|
||||
*/
|
||||
|
||||
|
@ -422,7 +405,6 @@ int IMB_anim_get_image_height(struct anim *anim);
|
|||
bool IMB_get_gop_decode_time(struct anim *anim);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in anim_movie.c
|
||||
*/
|
||||
|
||||
|
@ -432,20 +414,17 @@ struct ImBuf *IMB_anim_absolute(struct anim *anim,
|
|||
IMB_Proxy_Size preview_size /* = 0 = IMB_PROXY_NONE */);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in anim_movie.c
|
||||
* fetches a define preview-frame, usually half way into the movie.
|
||||
*/
|
||||
struct ImBuf *IMB_anim_previewframe(struct anim *anim);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in anim_movie.c
|
||||
*/
|
||||
void IMB_free_anim(struct anim *anim);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in filter.c
|
||||
*/
|
||||
|
||||
|
@ -474,7 +453,6 @@ void IMB_remakemipmap(struct ImBuf *ibuf, int use_filter);
|
|||
struct ImBuf *IMB_getmipmap(struct ImBuf *ibuf, int level);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in cache.c
|
||||
*/
|
||||
|
||||
|
@ -486,19 +464,16 @@ unsigned int *IMB_gettile(struct ImBuf *ibuf, int tx, int ty, int thread);
|
|||
void IMB_tiles_to_rect(struct ImBuf *ibuf);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in filter.c
|
||||
*/
|
||||
void IMB_filtery(struct ImBuf *ibuf);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in scaling.c
|
||||
*/
|
||||
struct ImBuf *IMB_onehalf(struct ImBuf *ibuf1);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in scaling.c
|
||||
*
|
||||
* Return true if \a ibuf is modified.
|
||||
|
@ -506,7 +481,6 @@ struct ImBuf *IMB_onehalf(struct ImBuf *ibuf1);
|
|||
bool IMB_scaleImBuf(struct ImBuf *ibuf, unsigned int newx, unsigned int newy);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in scaling.c
|
||||
*/
|
||||
/**
|
||||
|
@ -515,19 +489,16 @@ bool IMB_scaleImBuf(struct ImBuf *ibuf, unsigned int newx, unsigned int newy);
|
|||
bool IMB_scalefastImBuf(struct ImBuf *ibuf, unsigned int newx, unsigned int newy);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in scaling.c
|
||||
*/
|
||||
void IMB_scaleImBuf_threaded(struct ImBuf *ibuf, unsigned int newx, unsigned int newy);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in writeimage.c
|
||||
*/
|
||||
bool IMB_saveiff(struct ImBuf *ibuf, const char *filepath, int flags);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in util.c
|
||||
*/
|
||||
bool IMB_ispic(const char *filepath);
|
||||
|
@ -536,13 +507,11 @@ int IMB_ispic_type_from_memory(const unsigned char *buf, size_t buf_size);
|
|||
int IMB_ispic_type(const char *filepath);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in util.c
|
||||
*/
|
||||
bool IMB_isanim(const char *filepath);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in util.c
|
||||
*/
|
||||
int imb_get_anim_type(const char *filepath);
|
||||
|
@ -667,7 +636,6 @@ void IMB_buffer_float_premultiply(float *buf, int width, int height);
|
|||
void IMB_convert_rgba_to_abgr(struct ImBuf *ibuf);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention defined in imageprocess.c
|
||||
*/
|
||||
|
||||
|
@ -718,50 +686,42 @@ void IMB_sampleImageAtLocation(
|
|||
struct ImBuf *ibuf, float x, float y, bool make_linear_rgb, float color[4]);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention defined in readimage.c
|
||||
*/
|
||||
struct ImBuf *IMB_loadifffile(
|
||||
int file, const char *filepath, int flags, char colorspace[IM_MAX_SPACE], const char *descr);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention defined in scaling.c
|
||||
*/
|
||||
struct ImBuf *IMB_half_x(struct ImBuf *ibuf1);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention defined in scaling.c
|
||||
*/
|
||||
struct ImBuf *IMB_double_fast_x(struct ImBuf *ibuf1);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention defined in scaling.c
|
||||
*/
|
||||
struct ImBuf *IMB_double_x(struct ImBuf *ibuf1);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention defined in scaling.c
|
||||
*/
|
||||
struct ImBuf *IMB_half_y(struct ImBuf *ibuf1);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention defined in scaling.c
|
||||
*/
|
||||
struct ImBuf *IMB_double_fast_y(struct ImBuf *ibuf1);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention defined in scaling.c
|
||||
*/
|
||||
struct ImBuf *IMB_double_y(struct ImBuf *ibuf1);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in rotate.c
|
||||
*/
|
||||
void IMB_flipx(struct ImBuf *ibuf);
|
||||
|
@ -773,14 +733,12 @@ void IMB_premultiply_alpha(struct ImBuf *ibuf);
|
|||
void IMB_unpremultiply_alpha(struct ImBuf *ibuf);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in allocimbuf.c
|
||||
*/
|
||||
void IMB_freezbufImBuf(struct ImBuf *ibuf);
|
||||
void IMB_freezbuffloatImBuf(struct ImBuf *ibuf);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention Defined in rectop.c
|
||||
*/
|
||||
/**
|
||||
|
@ -925,7 +883,6 @@ void IMB_ffmpeg_init(void);
|
|||
const char *IMB_ffmpeg_last_error(void);
|
||||
|
||||
/**
|
||||
*
|
||||
* \attention defined in util_gpu.c
|
||||
*/
|
||||
GPUTexture *IMB_create_gpu_texture(const char *name,
|
||||
|
|
|
@ -259,7 +259,6 @@ class WrapRepeatUV : public BaseUVWrapping {
|
|||
* \brief Read a sample from an image buffer.
|
||||
*
|
||||
* A sampler can read from an image buffer.
|
||||
*
|
||||
*/
|
||||
template<
|
||||
/** \brief Interpolation mode to use when sampling. */
|
||||
|
|
|
@ -897,11 +897,9 @@ static bool bc_has_same_material_configuration(Object *ob1, Object *ob2)
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Caution here: This code assumes that all materials are assigned to Object
|
||||
* and no material is assigned to Data.
|
||||
* That is true right after the objects have been imported.
|
||||
*
|
||||
*/
|
||||
static void bc_copy_materials_to_data(Object *ob, Mesh *me)
|
||||
{
|
||||
|
@ -912,9 +910,7 @@ static void bc_copy_materials_to_data(Object *ob, Mesh *me)
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Remove all references to materials from the object
|
||||
*
|
||||
* Remove all references to materials from the object.
|
||||
*/
|
||||
static void bc_remove_materials_from_object(Object *ob, Mesh *me)
|
||||
{
|
||||
|
|
|
@ -203,7 +203,6 @@ class MeshImporter : public MeshImporterBase {
|
|||
* if the check is positive:
|
||||
* Add the materials of the first user to the geometry
|
||||
* adjust all other users accordingly.
|
||||
*
|
||||
*/
|
||||
void optimize_material_assignements();
|
||||
|
||||
|
|
|
@ -215,7 +215,6 @@ int PyC_CheckArgs_DeepCopy(PyObject *args);
|
|||
|
||||
/* Integer parsing (with overflow checks), -1 on error. */
|
||||
/**
|
||||
*
|
||||
* Comparison with #PyObject_IsTrue
|
||||
* ================================
|
||||
*
|
||||
|
|
|
@ -669,7 +669,6 @@ typedef struct wmTabletData {
|
|||
*
|
||||
* - Mouse-wheel events are excluded even though they generate #KM_PRESS
|
||||
* as clicking and dragging don't make sense for mouse wheel events.
|
||||
*
|
||||
*/
|
||||
typedef struct wmEvent {
|
||||
struct wmEvent *next, *prev;
|
||||
|
|
Loading…
Reference in New Issue