Cleanup: code comments punctuation / spacing
This commit is contained in:
parent
7ce0d9d791
commit
ced94bc11c
|
@ -360,8 +360,8 @@ class GHOST_SystemWin32 : public GHOST_System {
|
|||
static GHOST_EventKey *processKeyEvent(GHOST_WindowWin32 *window, RAWINPUT const &raw);
|
||||
|
||||
/**
|
||||
* Process special keys (VK_OEM_*), to see if current key layout
|
||||
* gives us anything special, like ! on french AZERTY.
|
||||
* Process special keys `VK_OEM_*`, to see if current key layout
|
||||
* gives us anything special, like `!` on French AZERTY.
|
||||
* \param vKey: The virtual key from #hardKey.
|
||||
* \param scanCode: The ScanCode of pressed key (similar to PS/2 Set 1).
|
||||
*/
|
||||
|
|
|
@ -113,7 +113,7 @@ const UserDef U_default = {
|
|||
.gp_eraser = 25,
|
||||
.gp_settings = 0,
|
||||
|
||||
/** Initialized by: #BKE_studiolight_default . */
|
||||
/** Initialized by: #BKE_studiolight_default. */
|
||||
.light_param = {{0}},
|
||||
.light_ambient = {0, 0, 0},
|
||||
|
||||
|
|
|
@ -501,7 +501,7 @@ enum {
|
|||
CD_FAKE = 1 << 8,
|
||||
|
||||
/* Vertices. */
|
||||
CD_FAKE_MDEFORMVERT = CD_FAKE | CD_MDEFORMVERT, /* *sigh* due to how vgroups are stored :( . */
|
||||
CD_FAKE_MDEFORMVERT = CD_FAKE | CD_MDEFORMVERT, /* *sigh* due to how vgroups are stored :(. */
|
||||
CD_FAKE_SHAPEKEY = CD_FAKE |
|
||||
CD_SHAPEKEY, /* Not available as real CD layer in non-bmesh context. */
|
||||
|
||||
|
|
|
@ -1072,7 +1072,7 @@ static BoidState *get_boid_state(BoidSettings *boids, ParticleData *pa)
|
|||
return state;
|
||||
}
|
||||
|
||||
#if 0 /* TODO */
|
||||
#if 0 /* TODO */
|
||||
static int boid_condition_is_true(BoidCondition *cond)
|
||||
{
|
||||
return 0;
|
||||
|
|
|
@ -306,7 +306,7 @@ const float (*BKE_editmesh_vert_coords_when_deformed(struct Depsgraph *depsgraph
|
|||
}
|
||||
else if ((em->mesh_eval_final != NULL) &&
|
||||
(em->mesh_eval_final->runtime.wrapper_type == ME_WRAPPER_TYPE_BMESH)) {
|
||||
/* If this is an edit-mesh type, leave NULL as we can use the vertex coords. . */
|
||||
/* If this is an edit-mesh type, leave NULL as we can use the vertex coords. */
|
||||
}
|
||||
else {
|
||||
/* Constructive modifiers have been used, we need to allocate coordinates. */
|
||||
|
|
|
@ -667,7 +667,7 @@ void BKE_previewimg_blend_read(BlendDataReader *reader, PreviewImage *prv)
|
|||
BKE_previewimg_finish(prv, i);
|
||||
}
|
||||
else {
|
||||
/* Only for old files that didn't write the flag . */
|
||||
/* Only for old files that didn't write the flag. */
|
||||
prv->flag[i] |= PRV_UNFINISHED;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1237,7 +1237,7 @@ void BKE_layer_collection_isolate_global(Scene *scene,
|
|||
bool hide_it = extend && (lc->runtime_flag & LAYER_COLLECTION_VISIBLE_VIEW_LAYER);
|
||||
|
||||
if (!extend) {
|
||||
/* Hide all collections . */
|
||||
/* Hide all collections. */
|
||||
LISTBASE_FOREACH (LayerCollection *, lc_iter, &lc_master->layer_collections) {
|
||||
layer_collection_flag_set_recursive(lc_iter, LAYER_COLLECTION_HIDE);
|
||||
}
|
||||
|
|
|
@ -880,7 +880,7 @@ static int palettecolor_compare_luminance(const void *a1, const void *a2)
|
|||
|
||||
void BKE_palette_sort_hsv(tPaletteColorHSV *color_array, const int totcol)
|
||||
{
|
||||
/* Sort by Hue , Saturation and Value. */
|
||||
/* Sort by Hue, Saturation and Value. */
|
||||
qsort(color_array, totcol, sizeof(tPaletteColorHSV), palettecolor_compare_hsv);
|
||||
}
|
||||
|
||||
|
|
|
@ -423,7 +423,7 @@ static void set_subsurf_legacy_uv(CCGSubSurf *ss, DerivedMesh *dm, DerivedMesh *
|
|||
|
||||
/* get some info from CCGSubSurf */
|
||||
totface = ccgSubSurf_getNumFaces(uvss);
|
||||
/* edgeSize = ccgSubSurf_getEdgeSize(uvss); */ /*UNUSED*/
|
||||
// edgeSize = ccgSubSurf_getEdgeSize(uvss); /* UNUSED */
|
||||
gridSize = ccgSubSurf_getGridSize(uvss);
|
||||
gridFaces = gridSize - 1;
|
||||
|
||||
|
|
|
@ -1747,9 +1747,10 @@ void BKE_ffmpeg_preset_set(RenderData *rd, int preset)
|
|||
rd->ffcodecdata.type = FFMPEG_MPEG2;
|
||||
rd->ffcodecdata.video_bitrate = 6000;
|
||||
|
||||
/* Don't set resolution, see T21351.
|
||||
* rd->xsch = 720;
|
||||
* rd->ysch = isntsc ? 480 : 576; */
|
||||
# if 0 /* Don't set resolution, see T21351. */
|
||||
rd->xsch = 720;
|
||||
rd->ysch = isntsc ? 480 : 576;
|
||||
# endif
|
||||
|
||||
rd->ffcodecdata.gop_size = isntsc ? 18 : 15;
|
||||
rd->ffcodecdata.rc_max_rate = 9000;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
* \brief BVH-tree implementation.
|
||||
*
|
||||
* k-DOP BVH (Discrete Oriented Polytope, Bounding Volume Hierarchy).
|
||||
* A k-DOP is represented as k/2 pairs of min , max values for k/2 directions (intervals, "slabs").
|
||||
* A k-DOP is represented as k/2 pairs of min, max values for k/2 directions (intervals, "slabs").
|
||||
*
|
||||
* See: http://www.gris.uni-tuebingen.de/people/staff/jmezger/papers/bvh.pdf
|
||||
*
|
||||
|
|
|
@ -625,7 +625,7 @@ void BLI_ewa_filter(const int width,
|
|||
* Use a different radius based on interpolation switch,
|
||||
* just enough to anti-alias when interpolation is off,
|
||||
* and slightly larger to make result a bit smoother than bilinear interpolation when
|
||||
* interpolation is on (minimum values: const float rmin = intpol ? 1.0f : 0.5f;) */
|
||||
* interpolation is on (minimum values: `const float rmin = intpol ? 1.0f : 0.5f;`) */
|
||||
const float rmin = (intpol ? 1.5625f : 0.765625f) / ff2;
|
||||
BLI_ewa_imp2radangle(A, B, C, F, &a, &b, &th, &ecc);
|
||||
if ((b2 = b * b) < rmin) {
|
||||
|
|
|
@ -276,7 +276,7 @@ void mul_m4_m4m4_uniq(float R[4][4], const float A[4][4], const float B[4][4])
|
|||
{
|
||||
BLI_assert(!ELEM(R, A, B));
|
||||
|
||||
/* matrix product: R[j][k] = A[j][i] . B[i][k] */
|
||||
/* Matrix product: `R[j][k] = A[j][i] . B[i][k]`. */
|
||||
#ifdef BLI_HAVE_SSE2
|
||||
__m128 A0 = _mm_loadu_ps(A[0]);
|
||||
__m128 A1 = _mm_loadu_ps(A[1]);
|
||||
|
@ -321,7 +321,7 @@ void mul_m4_m4m4_db_uniq(double R[4][4], const double A[4][4], const double B[4]
|
|||
{
|
||||
BLI_assert(!ELEM(R, A, B));
|
||||
|
||||
/* matrix product: R[j][k] = A[j][i] . B[i][k] */
|
||||
/* Matrix product: `R[j][k] = A[j][i] . B[i][k]`. */
|
||||
|
||||
R[0][0] = B[0][0] * A[0][0] + B[0][1] * A[1][0] + B[0][2] * A[2][0] + B[0][3] * A[3][0];
|
||||
R[0][1] = B[0][0] * A[0][1] + B[0][1] * A[1][1] + B[0][2] * A[2][1] + B[0][3] * A[3][1];
|
||||
|
@ -349,7 +349,7 @@ void mul_m4db_m4db_m4fl_uniq(double R[4][4], const double A[4][4], const float B
|
|||
/* Remove second check since types don't match. */
|
||||
BLI_assert(!ELEM(R, A /*, B */));
|
||||
|
||||
/* matrix product: R[j][k] = A[j][i] . B[i][k] */
|
||||
/* Matrix product: `R[j][k] = A[j][i] . B[i][k]`. */
|
||||
|
||||
R[0][0] = B[0][0] * A[0][0] + B[0][1] * A[1][0] + B[0][2] * A[2][0] + B[0][3] * A[3][0];
|
||||
R[0][1] = B[0][0] * A[0][1] + B[0][1] * A[1][1] + B[0][2] * A[2][1] + B[0][3] * A[3][1];
|
||||
|
|
|
@ -182,8 +182,8 @@ void BLI_string_flip_side_name(char *r_name,
|
|||
|
||||
/* We first check the case with a .### extension, let's find the last period */
|
||||
if (isdigit(r_name[len - 1])) {
|
||||
index = strrchr(r_name, '.'); /* last occurrence. */
|
||||
if (index && isdigit(index[1])) { /* doesn't handle case bone.1abc2 correct..., whatever! */
|
||||
index = strrchr(r_name, '.'); /* Last occurrence. */
|
||||
if (index && isdigit(index[1])) { /* Doesn't handle case `bone.1abc2` correct..., whatever! */
|
||||
if (strip_number == false) {
|
||||
BLI_strncpy(number, index, name_len);
|
||||
}
|
||||
|
@ -194,7 +194,7 @@ void BLI_string_flip_side_name(char *r_name,
|
|||
|
||||
BLI_strncpy(prefix, r_name, name_len);
|
||||
|
||||
/* first case; separator . - _ with extensions r R l L. */
|
||||
/* First case; separator (`.` or `_`) with extensions in `r R l L`. */
|
||||
if ((len > 1) && is_char_sep(r_name[len - 2])) {
|
||||
is_set = true;
|
||||
switch (r_name[len - 1]) {
|
||||
|
|
|
@ -866,11 +866,11 @@ static void fill_sphere_data(int nrings,
|
|||
};
|
||||
Array<int> eid = {0, 0, 0, 0}; /* Don't care about edge ids. */
|
||||
/*
|
||||
* (x, y , z) is given from inclination theta and azimuth phi,
|
||||
* where 0 <= theta <= pi; 0 <= phi <= 2pi.
|
||||
* x = radius * sin(theta) cos(phi)
|
||||
* y = radius * sin(theta) sin(phi)
|
||||
* z = radius * cos(theta)
|
||||
* (x, y, z) is given from inclination theta and azimuth phi,
|
||||
* where: `0 <= theta <= pi; 0 <= phi <= 2pi`.
|
||||
* `x = radius * sin(theta) cos(phi)`
|
||||
* `y = radius * sin(theta) sin(phi)`
|
||||
* `z = radius * cos(theta)`
|
||||
*/
|
||||
for (int s = 0; s < nsegs; ++s) {
|
||||
double phi = s * delta_phi;
|
||||
|
|
|
@ -2444,7 +2444,7 @@ static void direct_link_id_common(
|
|||
BlendDataReader *reader, Library *current_library, ID *id, ID *id_old, const int tag)
|
||||
{
|
||||
if (!BLO_read_data_is_undo(reader)) {
|
||||
/* When actually reading a file , we do want to reset/re-generate session uuids.
|
||||
/* When actually reading a file, we do want to reset/re-generate session uuids.
|
||||
* In undo case, we want to re-use existing ones. */
|
||||
id->session_uuid = MAIN_ID_SESSION_UUID_UNSET;
|
||||
}
|
||||
|
|
|
@ -185,7 +185,7 @@ typedef struct BMLoop {
|
|||
struct BMFace *f;
|
||||
|
||||
/**
|
||||
* Other loops connected to this edge,.
|
||||
* Other loops connected to this edge.
|
||||
*
|
||||
* This is typically use for accessing an edges faces,
|
||||
* however this is done by stepping over it's loops.
|
||||
|
|
|
@ -272,7 +272,7 @@ int BM_mesh_calc_edge_groups_as_arrays(BMesh *bm,
|
|||
int (**r_groups)[3]) ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_NONNULL(1, 2, 3, 4, 5);
|
||||
|
||||
/* not really any good place to put this */
|
||||
/* Not really any good place to put this. */
|
||||
float bmesh_subd_falloff_calc(const int falloff, float val) ATTR_WARN_UNUSED_RESULT;
|
||||
|
||||
#include "bmesh_query_inline.h"
|
||||
|
|
|
@ -1336,7 +1336,7 @@ static void bm_vert_fasthash_destroy(UUIDFashMatch *fm)
|
|||
* Take a face-region and return a list of matching face-regions.
|
||||
*
|
||||
* \param faces_region: A single, contiguous face-region.
|
||||
* \return A list of matching null-terminated face-region arrays.
|
||||
* \return A list of matching null-terminated face-region arrays.
|
||||
*/
|
||||
int BM_mesh_region_match(BMesh *bm,
|
||||
BMFace **faces_region,
|
||||
|
|
|
@ -988,11 +988,11 @@ static void do_createEdgeLocationBuffer(unsigned int t,
|
|||
*
|
||||
* Example: 9 by 9 pixel block
|
||||
*
|
||||
* . = pixel non-white in both outer and inner mask
|
||||
* o = pixel white in outer, but not inner mask, adjacent to "." pixel
|
||||
* g = pixel white in outer, but not inner mask, not adjacent to "." pixel
|
||||
* i = pixel white in inner mask, adjacent to "g" or "." pixel
|
||||
* F = pixel white in inner mask, only adjacent to other pixels white in the inner mask
|
||||
* `.` = Pixel non-white in both outer and inner mask.
|
||||
* `o` = Pixel white in outer, but not inner mask, adjacent to "." pixel.
|
||||
* `g` = Pixel white in outer, but not inner mask, not adjacent to "." pixel.
|
||||
* `i` = Pixel white in inner mask, adjacent to "g" or "." pixel.
|
||||
* `F` = Pixel white in inner mask, only adjacent to other pixels white in the inner mask.
|
||||
*
|
||||
*
|
||||
* ......... <----- pixel #80
|
||||
|
@ -1108,9 +1108,9 @@ static void do_fillGradientBuffer(unsigned int rw,
|
|||
* outside edge.
|
||||
*
|
||||
* In an image where:
|
||||
* . = blank (black) pixels, not covered by inner mask or outer mask
|
||||
* + = desired gradient pixels, covered only by outer mask
|
||||
* * = white full mask pixels, covered by at least inner mask
|
||||
* `.` = Blank (black) pixels, not covered by inner mask or outer mask.
|
||||
* `+` = Desired gradient pixels, covered only by outer mask.
|
||||
* `*` = White full mask pixels, covered by at least inner mask.
|
||||
*
|
||||
* ...............................
|
||||
* ...............+++++++++++.....
|
||||
|
|
|
@ -348,7 +348,7 @@ bool scene_copy_inplace_no_main(const Scene *scene, Scene *new_scene)
|
|||
|
||||
/* For the given scene get view layer which corresponds to an original for the
|
||||
* scene's evaluated one. This depends on how the scene is pulled into the
|
||||
* dependency graph. */
|
||||
* dependency graph. */
|
||||
ViewLayer *get_original_view_layer(const Depsgraph *depsgraph, const IDNode *id_node)
|
||||
{
|
||||
if (id_node->linked_state == DEG_ID_LINKED_DIRECTLY) {
|
||||
|
|
|
@ -327,7 +327,7 @@ vec2 safe_normalize_len(vec2 v, out float len)
|
|||
|
||||
float stroke_thickness_modulate(float thickness)
|
||||
{
|
||||
/* Modify stroke thickness by object and layer factors.-*/
|
||||
/* Modify stroke thickness by object and layer factors. */
|
||||
thickness *= thicknessScale;
|
||||
thickness += thicknessOffset;
|
||||
thickness = max(1.0, thickness);
|
||||
|
|
|
@ -327,7 +327,7 @@ typedef enum {
|
|||
/** Culling test */
|
||||
DRW_STATE_CULL_BACK = (1 << 7),
|
||||
DRW_STATE_CULL_FRONT = (1 << 8),
|
||||
/** Stencil test . These options are mutually exclusive and packed into 2 bits. */
|
||||
/** Stencil test. These options are mutually exclusive and packed into 2 bits. */
|
||||
DRW_STATE_STENCIL_ALWAYS = (1 << 9),
|
||||
DRW_STATE_STENCIL_EQUAL = (2 << 9),
|
||||
DRW_STATE_STENCIL_NEQUAL = (3 << 9),
|
||||
|
|
|
@ -80,7 +80,7 @@ typedef struct DRWTempInstancingHandle {
|
|||
GPUBatch *batch;
|
||||
/** Batch containing instancing attributes. */
|
||||
GPUBatch *instancer;
|
||||
/** Callbuffer to be used instead of instancer . */
|
||||
/** Callbuffer to be used instead of instancer. */
|
||||
GPUVertBuf *buf;
|
||||
/** Original non-instanced batch pointer. */
|
||||
GPUBatch *geom;
|
||||
|
|
|
@ -130,7 +130,7 @@ static void poselib_keytag_pose(bContext *C, Scene *scene, PoseBlendData *pbd)
|
|||
/* start tagging/keying */
|
||||
const bArmature *armature = pbd->ob->data;
|
||||
LISTBASE_FOREACH (bActionGroup *, agrp, &act->groups) {
|
||||
/* only for selected bones unless there aren't any selected, in which case all are included */
|
||||
/* Only for selected bones unless there aren't any selected, in which case all are included. */
|
||||
bPoseChannel *pchan = BKE_pose_channel_find_name(pose, agrp->name);
|
||||
if (pchan == NULL) {
|
||||
continue;
|
||||
|
|
|
@ -3929,7 +3929,7 @@ static void ui_do_but_textedit(
|
|||
|
||||
/* exception that's useful for number buttons, some keyboard
|
||||
* numpads have a comma instead of a period */
|
||||
if (ELEM(but->type, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER)) { /* could use data->min*/
|
||||
if (ELEM(but->type, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER)) { /* Could use `data->min`. */
|
||||
if (event->type == EVT_PADPERIOD && ascii == ',') {
|
||||
ascii = '.';
|
||||
utf8_buf = NULL; /* force ascii fallback */
|
||||
|
@ -9486,7 +9486,7 @@ static void ui_list_activate_row_from_index(
|
|||
/* A bit ugly, set the active index in RNA directly. That's because a button that's
|
||||
* scrolled away in the list box isn't created at all.
|
||||
* The custom activate operator (#uiList.custom_activate_opname) is not called in this case
|
||||
* (which may need the row button context).*/
|
||||
* (which may need the row button context). */
|
||||
RNA_property_int_set(&listbox->rnapoin, listbox->rnaprop, index);
|
||||
RNA_property_update(C, &listbox->rnapoin, listbox->rnaprop);
|
||||
ui_apply_but_undo(listbox);
|
||||
|
@ -9505,7 +9505,7 @@ static int ui_list_get_increment(const uiList *ui_list, const int type, const in
|
|||
increment = (type == EVT_UPARROWKEY) ? -columns : columns;
|
||||
}
|
||||
else {
|
||||
/* Left or right in grid layouts or any direction in single column layouts increments by 1. */
|
||||
/* Left or right in grid layouts or any direction in single column layouts increments by 1. */
|
||||
increment = ELEM(type, EVT_UPARROWKEY, EVT_LEFTARROWKEY, WHEELUPMOUSE) ? -1 : 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
|
||||
/***************************** Render Engines ********************************/
|
||||
|
||||
/* Update 3D viewport render or draw engine on changes to the scene or view settings . */
|
||||
/* Update 3D viewport render or draw engine on changes to the scene or view settings. */
|
||||
void ED_render_view3d_update(Depsgraph *depsgraph,
|
||||
wmWindow *window,
|
||||
ScrArea *area,
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
* The Original Code is Copyright (C) 2020 Blender Foundation.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
* The Original Code is Copyright (C) 2020 Blender Foundation.
|
||||
|
|
|
@ -261,7 +261,7 @@ static int graphkeys_insertkey_exec(bContext *C, wmOperator *op)
|
|||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
/* Which channels to affect?. */
|
||||
/* Which channels to affect? */
|
||||
mode = RNA_enum_get(op->ptr, "type");
|
||||
|
||||
/* Insert keyframes. */
|
||||
|
@ -2814,7 +2814,7 @@ static int graph_fmodifier_paste_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
ANIM_animdata_freelist(&anim_data);
|
||||
|
||||
/* Successful or not?. */
|
||||
/* Successful or not? */
|
||||
if (ok) {
|
||||
/* Set notifier that keyframes have changed. */
|
||||
WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL);
|
||||
|
@ -2873,7 +2873,7 @@ static int graph_driver_vars_copy_exec(bContext *C, wmOperator *op)
|
|||
ok = ANIM_driver_vars_copy(op->reports, fcu);
|
||||
}
|
||||
|
||||
/* Successful or not?. */
|
||||
/* Successful or not? */
|
||||
if (ok) {
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
@ -2915,7 +2915,7 @@ static int graph_driver_vars_paste_exec(bContext *C, wmOperator *op)
|
|||
ok = ANIM_driver_vars_paste(op->reports, fcu, replace);
|
||||
}
|
||||
|
||||
/* Successful or not?. */
|
||||
/* Successful or not? */
|
||||
if (ok) {
|
||||
/* Rebuild depsgraph, now that there are extra deps here. */
|
||||
DEG_relations_tag_update(CTX_data_main(C));
|
||||
|
|
|
@ -398,7 +398,7 @@ static void create_ghost_curves(bAnimContext *ac, int start, int end)
|
|||
ANIMFILTER_NODUPLIS);
|
||||
ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype);
|
||||
|
||||
/* Loop through filtered data and add keys between selected keyframes on every frame . */
|
||||
/* Loop through filtered data and add keys between selected keyframes on every frame. */
|
||||
for (ale = anim_data.first; ale; ale = ale->next) {
|
||||
FCurve *fcu = (FCurve *)ale->key_data;
|
||||
FCurve *gcu = BKE_fcurve_create();
|
||||
|
|
|
@ -1189,7 +1189,7 @@ void uiTemplateImageLayers(uiLayout *layout, bContext *C, Image *ima, ImageUser
|
|||
const int menus_width = 160 * dpi_fac;
|
||||
const bool is_render_result = (ima->type == IMA_TYPE_R_RESULT);
|
||||
|
||||
/* use BKE_image_acquire_renderresult so we get the correct slot in the menu */
|
||||
/* Use BKE_image_acquire_renderresult so we get the correct slot in the menu. */
|
||||
rr = BKE_image_acquire_renderresult(scene, ima);
|
||||
uiblock_layer_pass_buttons(
|
||||
layout, ima, rr, iuser, menus_width, is_render_result ? &ima->render_slot : NULL);
|
||||
|
|
|
@ -299,7 +299,7 @@ static void pick_input_link_by_link_intersect(const bContext *C,
|
|||
|
||||
/* If no linked was picked in this call, try using the one picked in the previous call.
|
||||
* Not essential for the basic behavior, but can make interaction feel a bit better if
|
||||
* the mouse moves to the right and loses the "selection." */
|
||||
* the mouse moves to the right and loses the "selection." */
|
||||
if (!link_to_pick) {
|
||||
bNodeLink *last_picked_link = nldrag->last_picked_multi_input_socket_link;
|
||||
if (last_picked_link) {
|
||||
|
|
|
@ -1196,7 +1196,7 @@ static void node_find_create_label(const bNode *node, char *str, int maxlen)
|
|||
}
|
||||
}
|
||||
|
||||
/* generic search invoke */
|
||||
/* Generic search invoke. */
|
||||
static void node_find_update_fn(const struct bContext *C,
|
||||
void *UNUSED(arg),
|
||||
const char *str,
|
||||
|
|
|
@ -697,7 +697,9 @@ static void tree_element_sequence_dup_activate(Scene *scene, TreeElement *UNUSED
|
|||
{
|
||||
Editing *ed = SEQ_editing_get(scene, false);
|
||||
|
||||
/* XXX select_single_seq(seq, 1); */
|
||||
#if 0
|
||||
select_single_seq(seq, 1);
|
||||
#endif
|
||||
Sequence *p = ed->seqbasep->first;
|
||||
while (p) {
|
||||
if ((!p->strip) || (!p->strip->stripdata) || (p->strip->stripdata->name[0] == '\0')) {
|
||||
|
@ -705,8 +707,11 @@ static void tree_element_sequence_dup_activate(Scene *scene, TreeElement *UNUSED
|
|||
continue;
|
||||
}
|
||||
|
||||
/* XXX: if (STREQ(p->strip->stripdata->name, seq->strip->stripdata->name)) select_single_seq(p,
|
||||
* 0); */
|
||||
#if 0
|
||||
if (STREQ(p->strip->stripdata->name, seq->strip->stripdata->name)) {
|
||||
select_single_seq(p, 0);
|
||||
}
|
||||
#endif
|
||||
p = p->next;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1981,7 +1981,7 @@ static void tc_mesh_partial_update(TransInfo *t,
|
|||
|
||||
/* Promote the partial update types based on the previous state
|
||||
* so the values that no longer modified are reset before being left as-is.
|
||||
* Needed for translation which can toggle snap-to-normal during transform. */
|
||||
* Needed for translation which can toggle snap-to-normal during transform. */
|
||||
const enum ePartialType partial_for_looptri = MAX2(partial_state->for_looptri,
|
||||
partial_state_prev->for_looptri);
|
||||
const enum ePartialType partial_for_normals = MAX2(partial_state->for_normals,
|
||||
|
|
|
@ -343,9 +343,9 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
|
|||
}
|
||||
else {
|
||||
if (region) {
|
||||
/* XXX for now, get View2D from the active region */
|
||||
/* XXX: For now, get View2D from the active region. */
|
||||
t->view = ®ion->v2d;
|
||||
/* XXX for now, the center point is the midpoint of the data */
|
||||
/* XXX: For now, the center point is the midpoint of the data. */
|
||||
}
|
||||
else {
|
||||
t->view = NULL;
|
||||
|
|
|
@ -537,10 +537,10 @@ short ED_transform_calc_orientation_from_type_ex(const bContext *C,
|
|||
case V3D_ORIENT_LOCAL: {
|
||||
if (ob) {
|
||||
if (ob->mode & OB_MODE_POSE) {
|
||||
/* each bone moves on its own local axis, but to avoid confusion,
|
||||
/* Each bone moves on its own local axis, but to avoid confusion,
|
||||
* use the active pones axis for display T33575, this works as expected on a single
|
||||
* bone and users who select many bones will understand what's going on and what local
|
||||
* means when they start transforming */
|
||||
* means when they start transforming. */
|
||||
ED_getTransformOrientationMatrix(C, ob, obedit, pivot_point, r_mat);
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -1126,7 +1126,7 @@ static void uv_select_edgeloop_single_side_tag(const Scene *scene,
|
|||
while (l_step != NULL) {
|
||||
|
||||
if (!uvedit_face_visible_test(scene, l_step->f) ||
|
||||
/* Check the boundary is still a boundary. */
|
||||
/* Check the boundary is still a boundary. */
|
||||
(uvedit_loop_find_other_radial_loop_with_visible_face(
|
||||
scene, l_step, cd_loop_uv_offset) != NULL)) {
|
||||
break;
|
||||
|
|
|
@ -311,13 +311,13 @@ class Interface0DIterator : public Iterator {
|
|||
return result;
|
||||
}
|
||||
|
||||
/** operator == . */
|
||||
/** operator `==`. */
|
||||
bool operator==(const Interface0DIterator &it) const
|
||||
{
|
||||
return _iterator->operator==(*(it._iterator));
|
||||
}
|
||||
|
||||
/** operator != . */
|
||||
/** operator `!=`. */
|
||||
bool operator!=(const Interface0DIterator &it) const
|
||||
{
|
||||
return !(*this == it);
|
||||
|
|
|
@ -745,7 +745,7 @@ class FEdge : public Interface1D {
|
|||
_VertexB = vB;
|
||||
}
|
||||
|
||||
/** Sets the FEdge Id . */
|
||||
/** Sets the FEdge Id. */
|
||||
inline void setId(const Id &id)
|
||||
{
|
||||
_Id = id;
|
||||
|
@ -1153,7 +1153,7 @@ class FEdgeSharp : public FEdge {
|
|||
bool _bFaceMark;
|
||||
|
||||
public:
|
||||
/** Returns the string "FEdgeSharp" . */
|
||||
/** Returns the string "FEdgeSharp". */
|
||||
virtual string getExactTypeName() const
|
||||
{
|
||||
return "FEdgeSharp";
|
||||
|
@ -1305,7 +1305,7 @@ class FEdgeSmooth : public FEdge {
|
|||
bool _FaceMark;
|
||||
|
||||
public:
|
||||
/** Returns the string "FEdgeSmooth" . */
|
||||
/** Returns the string "FEdgeSmooth". */
|
||||
virtual string getExactTypeName() const
|
||||
{
|
||||
return "FEdgeSmooth";
|
||||
|
|
|
@ -477,10 +477,14 @@ class TVertex : public ViewVertex {
|
|||
directedViewEdge _FrontEdgeB;
|
||||
directedViewEdge _BackEdgeA;
|
||||
directedViewEdge _BackEdgeB;
|
||||
Id _Id; // id to identify t vertices . these id will be negative in order not to be mixed with
|
||||
// NonTVertex ids.
|
||||
edge_pointers_container
|
||||
_sortedEdges; // the list of the four ViewEdges, ordered in CCW order (in the image plan)
|
||||
|
||||
/**
|
||||
* ID to identify t vertices.
|
||||
* these id will be negative in order not to be mixed with NonTVertex ids.
|
||||
*/
|
||||
Id _Id;
|
||||
/** The list of the four ViewEdges, ordered in CCW order (in the image plan). */
|
||||
edge_pointers_container _sortedEdges;
|
||||
|
||||
public:
|
||||
/** Default constructor. */
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
|
|
|
@ -2122,7 +2122,7 @@ static void lineart_main_load_geometries(
|
|||
|
||||
Object *use_ob = DEG_get_evaluated_object(depsgraph, ob);
|
||||
/* Prepare the matrix used for transforming this specific object (instance). This has to be
|
||||
* done before mesh boundbox check because the function needs that. */
|
||||
* done before mesh boundbox check because the function needs that. */
|
||||
mul_m4db_m4db_m4fl_uniq(obi->model_view_proj, rb->view_projection, ob->obmat);
|
||||
mul_m4db_m4db_m4fl_uniq(obi->model_view, rb->view, ob->obmat);
|
||||
|
||||
|
@ -2153,7 +2153,7 @@ static void lineart_main_load_geometries(
|
|||
obi->free_use_mesh = true;
|
||||
}
|
||||
|
||||
/* Make normal matrix. */
|
||||
/* Make normal matrix. */
|
||||
float imat[4][4];
|
||||
invert_m4_m4(imat, ob->obmat);
|
||||
transpose_m4(imat);
|
||||
|
|
|
@ -495,7 +495,7 @@ void GPU_framebuffer_py_reference_set(GPUFrameBuffer *gpu_fb, void **py_ref)
|
|||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Frame-Buffer Stack
|
||||
/** \name Frame-Buffer Stack
|
||||
*
|
||||
* Keeps track of frame-buffer binding operation to restore previously bound frame-buffers.
|
||||
* \{ */
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#define IMAGIC 0732
|
||||
|
||||
typedef struct {
|
||||
ushort imagic; /* stuff saved on disk . . */
|
||||
ushort imagic; /* Stuff saved on disk. */
|
||||
ushort type;
|
||||
ushort dim;
|
||||
ushort xsize;
|
||||
|
|
|
@ -1705,7 +1705,7 @@ static void exr_print_filecontents(MultiPartInputFile &file)
|
|||
}
|
||||
}
|
||||
|
||||
/* for non-multilayer, map R G B A channel names to something that's in this file */
|
||||
/* For non-multi-layer, map R G B A channel names to something that's in this file. */
|
||||
static const char *exr_rgba_channelname(MultiPartInputFile &file, const char *chan)
|
||||
{
|
||||
const ChannelList &channels = file.header(0).channels();
|
||||
|
|
|
@ -867,7 +867,7 @@ static void q_scale_float(
|
|||
*
|
||||
* only handles common cases when we either
|
||||
*
|
||||
* scale both, x and y or
|
||||
* scale both, x and y or
|
||||
* shrink both, x and y
|
||||
*
|
||||
* but that is pretty fast:
|
||||
|
|
|
@ -231,7 +231,7 @@ void ControllerExporter::export_skin_controller(Object *ob, Object *ob_arm)
|
|||
uint idx = vert->dw[j].def_nr;
|
||||
if (idx >= joint_index_by_def_index.size()) {
|
||||
/* XXX: Maybe better find out where and
|
||||
* why the Out Of Bound indexes get created ? */
|
||||
* why the Out Of Bound indexes get created? */
|
||||
oob_counter += 1;
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -180,7 +180,7 @@ int DocumentExporter::exportCurrentScene()
|
|||
bContext *C = blender_context.get_context();
|
||||
|
||||
PointerRNA sceneptr, unit_settings;
|
||||
PropertyRNA *system; /* unused , *scale; */
|
||||
PropertyRNA *system; /* unused, *scale; */
|
||||
|
||||
clear_global_id_map();
|
||||
|
||||
|
|
|
@ -708,7 +708,7 @@ void MeshImporter::read_polys(COLLADAFW::Mesh *collada_mesh, Mesh *me)
|
|||
prim.totpoly++;
|
||||
}
|
||||
|
||||
/* Moving cursor to the next triangle fan. */
|
||||
/* Moving cursor to the next triangle fan. */
|
||||
if (mp_has_normals) {
|
||||
normal_indices += 2;
|
||||
}
|
||||
|
|
|
@ -830,7 +830,7 @@ typedef struct SpaceAction {
|
|||
/** The currently active context (when not showing action). */
|
||||
bDopeSheet ads;
|
||||
|
||||
/** For Time-Slide transform mode drawing - current frame?. */
|
||||
/** For Time-Slide transform mode drawing - current frame? */
|
||||
float timeslide;
|
||||
|
||||
short flag;
|
||||
|
@ -838,7 +838,7 @@ typedef struct SpaceAction {
|
|||
char mode;
|
||||
/* Storage for sub-space types. */
|
||||
char mode_prev;
|
||||
/** Automatic keyframe snapping mode . */
|
||||
/** Automatic keyframe snapping mode. */
|
||||
char autosnap;
|
||||
/** (eTimeline_Cache_Flag). */
|
||||
char cache_display;
|
||||
|
|
|
@ -51,7 +51,7 @@ typedef struct FModifier {
|
|||
/** Pointer to modifier data. */
|
||||
void *data;
|
||||
|
||||
/** User-defined description for the modifier - MAX_ID_NAME-2. */
|
||||
/** User-defined description for the modifier - `MAX_ID_NAME - 2`. */
|
||||
char name[64];
|
||||
/** Type of f-curve modifier. */
|
||||
short type;
|
||||
|
@ -185,7 +185,7 @@ typedef enum eFMod_Generator_Functions {
|
|||
|
||||
/* envelope modifier - envelope data */
|
||||
typedef struct FCM_EnvelopeData {
|
||||
/** Min/max values for envelope at this point (absolute values) . */
|
||||
/** Min/max values for envelope at this point (absolute values). */
|
||||
float min, max;
|
||||
/** Time for that this sample-point occurs. */
|
||||
float time;
|
||||
|
@ -198,7 +198,7 @@ typedef struct FCM_EnvelopeData {
|
|||
|
||||
/* envelope-like adjustment to values (for fade in/out) */
|
||||
typedef struct FMod_Envelope {
|
||||
/** Data-points defining envelope to apply (array) . */
|
||||
/** Data-points defining envelope to apply (array). */
|
||||
FCM_EnvelopeData *data;
|
||||
/** Number of envelope points. */
|
||||
int totvert;
|
||||
|
@ -321,7 +321,7 @@ typedef struct DriverTarget {
|
|||
|
||||
/**
|
||||
* Name of the posebone to use
|
||||
* (for vars where DTAR_FLAG_STRUCT_REF is used) - MAX_ID_NAME-2.
|
||||
* (for vars where DTAR_FLAG_STRUCT_REF is used) - `MAX_ID_NAME - 2`.
|
||||
*/
|
||||
char pchan_name[64];
|
||||
/** Transform channel index (for #DVAR_TYPE_TRANSFORM_CHAN). */
|
||||
|
@ -418,7 +418,7 @@ typedef struct DriverVar {
|
|||
|
||||
/**
|
||||
* Name of the variable to use in py-expression
|
||||
* (must be valid python identifier) - MAX_ID_NAME-2.
|
||||
* (must be valid python identifier) - `MAX_ID_NAME - 2`.
|
||||
*/
|
||||
char name[64];
|
||||
|
||||
|
@ -734,7 +734,7 @@ typedef struct NlaStrip {
|
|||
/** F-Curve modifiers to be applied to the entire strip's referenced F-Curves. */
|
||||
ListBase modifiers;
|
||||
|
||||
/** User-Visible Identifier for Strip - MAX_ID_NAME-2. */
|
||||
/** User-Visible Identifier for Strip - `MAX_ID_NAME - 2`. */
|
||||
char name[64];
|
||||
|
||||
/** Influence of strip. */
|
||||
|
@ -873,7 +873,7 @@ typedef struct NlaTrack {
|
|||
* \note not really useful, but we need a '_pad' var anyways! */
|
||||
int index;
|
||||
|
||||
/** Short user-description of this track - MAX_ID_NAME-2. */
|
||||
/** Short user-description of this track - `MAX_ID_NAME - 2`. */
|
||||
char name[64];
|
||||
} NlaTrack;
|
||||
|
||||
|
@ -917,7 +917,7 @@ typedef struct KS_Path {
|
|||
|
||||
/** ID block that keyframes are for. */
|
||||
ID *id;
|
||||
/** Name of the group to add to - MAX_ID_NAME-2. */
|
||||
/** Name of the group to add to - `MAX_ID_NAME - 2`. */
|
||||
char group[64];
|
||||
|
||||
/** ID-type that path can be used on. */
|
||||
|
@ -977,13 +977,13 @@ typedef struct KeyingSet {
|
|||
/** (KS_Path) paths to keyframe to. */
|
||||
ListBase paths;
|
||||
|
||||
/** Unique name (for search, etc.) - MAX_ID_NAME-2 . */
|
||||
/** Unique name (for search, etc.) - `MAX_ID_NAME - 2`. */
|
||||
char idname[64];
|
||||
/** User-viewable name for KeyingSet (for menus, etc.) - MAX_ID_NAME-2. */
|
||||
/** User-viewable name for KeyingSet (for menus, etc.) - `MAX_ID_NAME - 2`. */
|
||||
char name[64];
|
||||
/** (RNA_DYN_DESCR_MAX) short help text. */
|
||||
char description[240];
|
||||
/** Name of the typeinfo data used for the relative paths - MAX_ID_NAME-2. */
|
||||
/** Name of the typeinfo data used for the relative paths - `MAX_ID_NAME - 2`. */
|
||||
char typeinfo[64];
|
||||
|
||||
/** Index of the active path. */
|
||||
|
|
|
@ -425,7 +425,7 @@ typedef struct bRigidBodyJointConstraint {
|
|||
typedef struct bClampToConstraint {
|
||||
/** 'target' must be a curve. */
|
||||
struct Object *tar;
|
||||
/** Which axis/plane to compare owner's location on . */
|
||||
/** Which axis/plane to compare owner's location on. */
|
||||
int flag;
|
||||
/** For legacy reasons, this is flag2. used for any extra settings. */
|
||||
int flag2;
|
||||
|
@ -474,7 +474,7 @@ typedef struct bTransformConstraint {
|
|||
float from_min[3];
|
||||
/** To map on to to_min/max range. */
|
||||
float from_max[3];
|
||||
/** Range of motion on owner caused by target . */
|
||||
/** Range of motion on owner caused by target. */
|
||||
float to_min[3];
|
||||
float to_max[3];
|
||||
|
||||
|
@ -482,7 +482,7 @@ typedef struct bTransformConstraint {
|
|||
float from_min_rot[3];
|
||||
/** To map on to to_min/max range. */
|
||||
float from_max_rot[3];
|
||||
/** Range of motion on owner caused by target . */
|
||||
/** Range of motion on owner caused by target. */
|
||||
float to_min_rot[3];
|
||||
float to_max_rot[3];
|
||||
|
||||
|
@ -490,7 +490,7 @@ typedef struct bTransformConstraint {
|
|||
float from_min_scale[3];
|
||||
/** To map on to to_min/max range. */
|
||||
float from_max_scale[3];
|
||||
/** Range of motion on owner caused by target . */
|
||||
/** Range of motion on owner caused by target. */
|
||||
float to_min_scale[3];
|
||||
float to_max_scale[3];
|
||||
} bTransformConstraint;
|
||||
|
|
|
@ -63,9 +63,9 @@ typedef struct IpoDriver {
|
|||
typedef struct IpoCurve {
|
||||
struct IpoCurve *next, *prev;
|
||||
|
||||
/** Array of BPoints (sizeof(BPoint) * totvert) - i.e. baked/imported data. */
|
||||
/** Array of #BPoints `(sizeof(BPoint) * totvert)` - i.e. baked/imported data. */
|
||||
struct BPoint *bp;
|
||||
/** Array of BezTriples (sizeof(BezTriple) * totvert) - i.e. user-editable keyframes . */
|
||||
/** Array of #BezTriples `(sizeof(BezTriple) * totvert)` - i.e. user-editable keyframes. */
|
||||
struct BezTriple *bezt;
|
||||
|
||||
/** Bounding boxes. */
|
||||
|
@ -75,7 +75,7 @@ typedef struct IpoCurve {
|
|||
short blocktype, adrcode, vartype;
|
||||
/** Total number of BezTriples (i.e. keyframes) on curve. */
|
||||
short totvert;
|
||||
/** Interpolation and extrapolation modes . */
|
||||
/** Interpolation and extrapolation modes. */
|
||||
short ipo, extrap;
|
||||
/** Flag= settings. */
|
||||
short flag;
|
||||
|
@ -102,7 +102,7 @@ typedef struct Ipo {
|
|||
|
||||
/** A list of IpoCurve structs in a linked list. */
|
||||
ListBase curve;
|
||||
/** Rect defining extents of keyframes?. */
|
||||
/** Rect defining extents of keyframes? */
|
||||
rctf cur;
|
||||
|
||||
/** Blocktype: self-explanatory; showkey: either 0 or 1
|
||||
|
|
|
@ -134,7 +134,7 @@ typedef struct Light {
|
|||
/* #define LA_NO_DIFF (1 << 11) */ /* not used anywhere */
|
||||
/* #define LA_NO_SPEC (1 << 12) */ /* not used anywhere */
|
||||
/* #define LA_SHAD_RAY (1 << 13) */ /* not used anywhere - cleaned */
|
||||
/* yafray: light shadowbuffer flag, softlight */
|
||||
/* yafray: light shadowbuffer flag, softlight */
|
||||
/* Since it is used with LOCAL light, can't use LA_SHAD */
|
||||
/* #define LA_YF_SOFT (1 << 14) */ /* not used anymore */
|
||||
/* #define LA_LAYER_SHADOW (1 << 15) */ /* not used anymore */
|
||||
|
|
|
@ -93,7 +93,7 @@ typedef struct MaskSplinePointUW {
|
|||
} MaskSplinePointUW;
|
||||
|
||||
typedef struct MaskSplinePoint {
|
||||
/** Actual point coordinates and its handles . */
|
||||
/** Actual point coordinates and its handles. */
|
||||
BezTriple bezt;
|
||||
char _pad[4];
|
||||
/** Number of uv feather values. */
|
||||
|
@ -173,7 +173,7 @@ typedef struct MaskLayer {
|
|||
|
||||
/** For animation. */
|
||||
char flag;
|
||||
/** Matching 'Object' flag of the same name - eventually use in the outliner . */
|
||||
/** Matching 'Object' flag of the same name - eventually use in the outliner. */
|
||||
char restrictflag;
|
||||
} MaskLayer;
|
||||
|
||||
|
|
|
@ -336,7 +336,7 @@ typedef struct Object {
|
|||
/** Deprecated, use 'matbits'. */
|
||||
short colbits DNA_DEPRECATED;
|
||||
|
||||
/** Transformation settings and transform locks . */
|
||||
/** Transformation settings and transform locks. */
|
||||
short transflag, protectflag;
|
||||
short trackflag, upflag;
|
||||
/** Used for DopeSheet filtering settings (expanded/collapsed). */
|
||||
|
|
|
@ -125,7 +125,7 @@ typedef struct RigidBodyOb_Shared {
|
|||
*/
|
||||
typedef struct RigidBodyOb {
|
||||
/* General Settings for this RigidBodyOb */
|
||||
/** (eRigidBodyOb_Type) role of RigidBody in sim . */
|
||||
/** (eRigidBodyOb_Type) role of RigidBody in sim. */
|
||||
short type;
|
||||
/** (eRigidBody_Shape) collision shape to use. */
|
||||
short shape;
|
||||
|
@ -243,7 +243,7 @@ typedef struct RigidBodyCon {
|
|||
struct Object *ob2;
|
||||
|
||||
/* General Settings for this RigidBodyCon */
|
||||
/** (eRigidBodyCon_Type) role of RigidBody in sim . */
|
||||
/** (eRigidBodyCon_Type) role of RigidBody in sim. */
|
||||
short type;
|
||||
/** Number of constraint solver iterations made per simulation step. */
|
||||
short num_solver_iterations;
|
||||
|
|
|
@ -1750,7 +1750,7 @@ typedef struct Scene {
|
|||
/** (runtime) info/cache used for presenting playback framerate info to the user. */
|
||||
void *fps_info;
|
||||
|
||||
/* none of the dependency graph vars is mean to be saved */
|
||||
/* None of the dependency graph vars is mean to be saved. */
|
||||
struct GHash *depsgraph_hash;
|
||||
char _pad7[4];
|
||||
|
||||
|
|
|
@ -522,7 +522,7 @@ typedef struct ARegion {
|
|||
|
||||
/** Use this string to draw info. */
|
||||
char *headerstr;
|
||||
/** XXX 2.50, need spacedata equivalent?. */
|
||||
/** XXX 2.50, need spacedata equivalent? */
|
||||
void *regiondata;
|
||||
|
||||
ARegion_Runtime runtime;
|
||||
|
|
|
@ -513,7 +513,7 @@ typedef struct bTheme {
|
|||
typedef struct bAddon {
|
||||
struct bAddon *next, *prev;
|
||||
char module[64];
|
||||
/** User-Defined Properties on this Addon (for storing preferences). */
|
||||
/** User-Defined Properties on this add-on (for storing preferences). */
|
||||
IDProperty *prop;
|
||||
} bAddon;
|
||||
|
||||
|
@ -800,7 +800,7 @@ typedef struct UserDef {
|
|||
short rvisize;
|
||||
/** Rotating view icon brightness. */
|
||||
short rvibright;
|
||||
/** Maximum number of recently used files to remember . */
|
||||
/** Maximum number of recently used files to remember. */
|
||||
short recent_files;
|
||||
/** Milliseconds to spend spinning the view. */
|
||||
short smooth_viewtx;
|
||||
|
@ -1291,7 +1291,7 @@ typedef enum eTimecodeStyles {
|
|||
USER_TIMECODE_SECONDS_ONLY = 4,
|
||||
/**
|
||||
* Private (not exposed as generic choices) options.
|
||||
* milliseconds for sub-frames , SubRip format- HH:MM:SS,sss.
|
||||
* milliseconds for sub-frames, SubRip format- HH:MM:SS,sss.
|
||||
*/
|
||||
USER_TIMECODE_SUBRIP = 100,
|
||||
} eTimecodeStyles;
|
||||
|
|
|
@ -50,7 +50,7 @@ typedef struct View2D {
|
|||
/** Scroll_ui - temp settings used for UI drawing of scrollers. */
|
||||
short scroll_ui;
|
||||
|
||||
/** Keeptot - 'cur' rect cannot move outside the 'tot' rect?. */
|
||||
/** Keeptot - 'cur' rect cannot move outside the 'tot' rect? */
|
||||
short keeptot;
|
||||
/** Keepzoom - axes that zooming cannot occur on, and also clamp within zoom-limits. */
|
||||
short keepzoom;
|
||||
|
|
|
@ -94,7 +94,7 @@ typedef struct Report {
|
|||
/** ReportType. */
|
||||
short type;
|
||||
short flag;
|
||||
/** `strlen(message)`, saves some time calculating the word wrap . */
|
||||
/** `strlen(message)`, saves some time calculating the word wrap. */
|
||||
int len;
|
||||
const char *typestr;
|
||||
const char *message;
|
||||
|
|
|
@ -226,7 +226,7 @@ typedef enum PropertyFlag {
|
|||
PROP_ICONS_CONSECUTIVE = (1 << 12),
|
||||
PROP_ICONS_REVERSE = (1 << 8),
|
||||
|
||||
/** Hidden in the user interface. */
|
||||
/** Hidden in the user interface. */
|
||||
PROP_HIDDEN = (1 << 19),
|
||||
/** Do not write in presets. */
|
||||
PROP_SKIP_SAVE = (1 << 28),
|
||||
|
|
|
@ -5031,7 +5031,7 @@ static char *rna_path_token(const char **path, char *fixedbuf, int fixedlen, int
|
|||
}
|
||||
}
|
||||
else {
|
||||
/* get data until . or [ */
|
||||
/* Get data until `.` or `[`. */
|
||||
p = *path;
|
||||
|
||||
while (*p && *p != '.' && *p != '[') {
|
||||
|
|
|
@ -2123,7 +2123,7 @@ bool rna_property_override_store_default(Main *UNUSED(bmain),
|
|||
for (int j = len_local; j--;) {
|
||||
array_b[j] = j >= i ? -array_b[j] : fac * (array_a[j] - array_b[j]);
|
||||
if (array_b[j] < prop_min || array_b[j] > prop_max) {
|
||||
/* We failed to find a suitable diff op,
|
||||
/* We failed to find a suitable diff op,
|
||||
* fall back to plain REPLACE one. */
|
||||
opop->operation = IDOVERRIDE_LIBRARY_OP_REPLACE;
|
||||
do_set = false;
|
||||
|
@ -2213,7 +2213,7 @@ bool rna_property_override_store_default(Main *UNUSED(bmain),
|
|||
for (int j = len_local; j--;) {
|
||||
array_b[j] = j >= i ? -array_b[j] : fac * (array_a[j] - array_b[j]);
|
||||
if (array_b[j] < prop_min || array_b[j] > prop_max) {
|
||||
/* We failed to find a suitable diff op,
|
||||
/* We failed to find a suitable diff op,
|
||||
* fall back to plain REPLACE one. */
|
||||
opop->operation = IDOVERRIDE_LIBRARY_OP_REPLACE;
|
||||
do_set = false;
|
||||
|
|
|
@ -194,8 +194,8 @@ static void dm_mvert_map_doubles(int *doubles_map,
|
|||
i_target_low_bound = 0;
|
||||
target_scan_completed = false;
|
||||
|
||||
/* Scan source vertices, in SortVertsElem sorted array, */
|
||||
/* all the while maintaining the lower bound of possible doubles in target vertices */
|
||||
/* Scan source vertices, in #SortVertsElem sorted array,
|
||||
* all the while maintaining the lower bound of possible doubles in target vertices. */
|
||||
for (i_source = 0, sve_source = sorted_verts_source; i_source < source_num_verts;
|
||||
i_source++, sve_source++) {
|
||||
int best_target_vertex = -1;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
* The Original Code is Copyright (C) 2005 by the Blender Foundation.
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
|
|
|
@ -623,7 +623,7 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *
|
|||
CustomData *ldata = &result->ldata;
|
||||
clnors = CustomData_get_layer(ldata, CD_CUSTOMLOOPNORMAL);
|
||||
|
||||
/* Keep info whether we had clnors,
|
||||
/* Keep info whether we had clnors,
|
||||
* it helps when generating clnor spaces and default normals. */
|
||||
const bool has_clnors = clnors != NULL;
|
||||
if (!clnors) {
|
||||
|
|
|
@ -167,9 +167,9 @@ void weightvg_do_mask(const ModifierEvalContext *ctx,
|
|||
const int numVerts = mesh->totvert;
|
||||
|
||||
/* Use new generic get_texture_coords, but do not modify our DNA struct for it...
|
||||
* XXX Why use a ModifierData stuff here ? Why not a simple, generic struct for parameters ?
|
||||
* What e.g. if a modifier wants to use several textures ?
|
||||
* Why use only v_co, and not MVert (or both) ?
|
||||
* XXX Why use a ModifierData stuff here ? Why not a simple, generic struct for parameters?
|
||||
* What e.g. if a modifier wants to use several textures?
|
||||
* Why use only v_co, and not MVert (or both)?
|
||||
*/
|
||||
t_map.texture = texture;
|
||||
t_map.map_object = tex_map_object;
|
||||
|
|
|
@ -264,14 +264,15 @@ void ntreeCompositExecTree(Scene *scene,
|
|||
|
||||
/* *********************************************** */
|
||||
|
||||
/* Update the outputs of the render layer nodes.
|
||||
/**
|
||||
* Update the outputs of the render layer nodes.
|
||||
* Since the outputs depend on the render engine, this part is a bit complex:
|
||||
* - ntreeCompositUpdateRLayers is called and loops over all render layer nodes.
|
||||
* - #ntreeCompositUpdateRLayers is called and loops over all render layer nodes.
|
||||
* - Each render layer node calls the update function of the
|
||||
* render engine that's used for its scene.
|
||||
* - The render engine calls RE_engine_register_pass for each pass.
|
||||
* - RE_engine_register_pass calls ntreeCompositRegisterPass,.
|
||||
* which calls node_cmp_rlayers_register_pass for every render layer node.
|
||||
* - #RE_engine_register_pass calls #ntreeCompositRegisterPass,
|
||||
* which calls #node_cmp_rlayers_register_pass for every render layer node.
|
||||
*/
|
||||
void ntreeCompositUpdateRLayers(bNodeTree *ntree)
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@ struct PathResolvedRNA;
|
|||
struct Text; /* defined in DNA_text_types.h */
|
||||
struct bConstraint; /* DNA_constraint_types.h */
|
||||
struct bConstraintOb; /* DNA_constraint_types.h */
|
||||
struct bConstraintTarget; /* DNA_constraint_types.h*/
|
||||
struct bConstraintTarget; /* DNA_constraint_types.h */
|
||||
struct bContext;
|
||||
struct bContextDataResult;
|
||||
struct bPythonConstraint; /* DNA_constraint_types.h */
|
||||
|
|
|
@ -339,7 +339,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* When calling bpy.ops.wm.read_factory_settings() bpy.data's main pointer
|
||||
/* When calling `bpy.ops.wm.read_factory_settings()` `bpy.data's` main pointer
|
||||
* is freed by clear_globals(), further access will crash blender.
|
||||
* Setting context is not needed in this case, only calling because this
|
||||
* function corrects bpy.data (internal Main pointer) */
|
||||
|
|
|
@ -605,7 +605,7 @@ PyObject *pyrna_struct_driver_add(BPy_StructRNA *self, PyObject *args)
|
|||
DEG_relations_tag_update(CTX_data_main(context));
|
||||
}
|
||||
else {
|
||||
/* XXX, should be handled by reports, */
|
||||
/* XXX: should be handled by reports. */
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"bpy_struct.driver_add(): failed because of an internal error");
|
||||
return NULL;
|
||||
|
|
|
@ -131,8 +131,7 @@ static void next_state(void)
|
|||
ulong *p = state;
|
||||
int j;
|
||||
|
||||
/* if init_genrand() has not been called, */
|
||||
/* a default initial seed is used */
|
||||
/* If init_genrand() has not been called, a default initial seed is used. */
|
||||
if (initf == 0) {
|
||||
init_genrand(5489UL);
|
||||
}
|
||||
|
|
|
@ -932,8 +932,8 @@ static void feline_eval(TexResult *texr, ImBuf *ibuf, float fx, float fy, afdata
|
|||
#endif
|
||||
/* `const int out =` */ ibuf_get_color_clip_bilerp(
|
||||
tc, ibuf, ibuf->x * u, ibuf->y * v, AFD->intpol, AFD->extflag);
|
||||
/* TXF alpha: clip |= out;
|
||||
* TXF alpha: cw += out ? 0.0f : wt; */
|
||||
/* TXF alpha: `clip |= out;`
|
||||
* TXF alpha: `cw += out ? 0.0f : wt;` */
|
||||
texr->tr += tc[0] * wt;
|
||||
texr->tg += tc[1] * wt;
|
||||
texr->tb += tc[2] * wt;
|
||||
|
|
|
@ -1428,10 +1428,9 @@ static void do_mul_effect_byte(float facf0,
|
|||
fac1 = (int)(256.0f * facf0);
|
||||
fac3 = (int)(256.0f * facf1);
|
||||
|
||||
/* formula:
|
||||
* fac * (a * b) + (1 - fac) * a => fac * a * (b - 1) + axaux = c * px + py * s; //+centx
|
||||
* yaux = -s * px + c * py; //+centy
|
||||
*/
|
||||
/* Formula:
|
||||
* `fac * (a * b) + (1 - fac) * a => fac * a * (b - 1) + axaux = c * px + py * s;` // + centx
|
||||
* `yaux = -s * px + c * py;` // + centy */
|
||||
|
||||
while (y--) {
|
||||
|
||||
|
@ -1483,9 +1482,8 @@ static void do_mul_effect_float(
|
|||
fac1 = facf0;
|
||||
fac3 = facf1;
|
||||
|
||||
/* formula:
|
||||
* fac * (a * b) + (1 - fac) * a => fac * a * (b - 1) + a
|
||||
*/
|
||||
/* Formula:
|
||||
* `fac * (a * b) + (1 - fac) * a => fac * a * (b - 1) + a`. */
|
||||
|
||||
while (y--) {
|
||||
x = xo;
|
||||
|
|
|
@ -112,8 +112,8 @@ static void seq_update_muting_recursive(ListBase *seqbasep, Sequence *metaseq, i
|
|||
Sequence *seq;
|
||||
int seqmute;
|
||||
|
||||
/* for sound we go over full meta tree to update muted state,
|
||||
* since sound is played outside of evaluating the imbufs, */
|
||||
/* For sound we go over full meta tree to update muted state,
|
||||
* since sound is played outside of evaluating the imbufs. */
|
||||
for (seq = seqbasep->first; seq; seq = seq->next) {
|
||||
seqmute = (mute || (seq->flag & SEQ_MUTE));
|
||||
|
||||
|
|
|
@ -111,8 +111,8 @@ static void seq_update_sound_bounds_recursive_impl(Scene *scene,
|
|||
{
|
||||
Sequence *seq;
|
||||
|
||||
/* for sound we go over full meta tree to update bounds of the sound strips,
|
||||
* since sound is played outside of evaluating the imbufs, */
|
||||
/* For sound we go over full meta tree to update bounds of the sound strips,
|
||||
* since sound is played outside of evaluating the imbufs. */
|
||||
for (seq = metaseq->seqbase.first; seq; seq = seq->next) {
|
||||
if (seq->type == SEQ_TYPE_META) {
|
||||
seq_update_sound_bounds_recursive_impl(
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
|
|
|
@ -180,8 +180,8 @@ DO_INLINE void mul_lfvectorS(float (*to)[3],
|
|||
mul_fvector_S(to[i], fLongVector[i], scalar);
|
||||
}
|
||||
}
|
||||
/* Multiply long vector with scalar. */
|
||||
/* A -= B * float */
|
||||
/* Multiply long vector with scalar.
|
||||
* `A -= B * float` */
|
||||
DO_INLINE void submul_lfvectorS(float (*to)[3],
|
||||
float (*fLongVector)[3],
|
||||
float scalar,
|
||||
|
@ -209,7 +209,7 @@ DO_INLINE float dot_lfvector(float (*fLongVectorA)[3],
|
|||
}
|
||||
return temp;
|
||||
}
|
||||
/* A = B + C --> for big vector */
|
||||
/* `A = B + C` -> for big vector. */
|
||||
DO_INLINE void add_lfvector_lfvector(float (*to)[3],
|
||||
float (*fLongVectorA)[3],
|
||||
float (*fLongVectorB)[3],
|
||||
|
@ -221,7 +221,7 @@ DO_INLINE void add_lfvector_lfvector(float (*to)[3],
|
|||
add_v3_v3v3(to[i], fLongVectorA[i], fLongVectorB[i]);
|
||||
}
|
||||
}
|
||||
/* A = B + C * float --> for big vector */
|
||||
/* `A = B + C * float` -> for big vector. */
|
||||
DO_INLINE void add_lfvector_lfvectorS(float (*to)[3],
|
||||
float (*fLongVectorA)[3],
|
||||
float (*fLongVectorB)[3],
|
||||
|
@ -234,7 +234,7 @@ DO_INLINE void add_lfvector_lfvectorS(float (*to)[3],
|
|||
VECADDS(to[i], fLongVectorA[i], fLongVectorB[i], bS);
|
||||
}
|
||||
}
|
||||
/* A = B * float + C * float --> for big vector */
|
||||
/* `A = B * float + C * float` -> for big vector */
|
||||
DO_INLINE void add_lfvectorS_lfvectorS(float (*to)[3],
|
||||
float (*fLongVectorA)[3],
|
||||
float aS,
|
||||
|
@ -248,7 +248,7 @@ DO_INLINE void add_lfvectorS_lfvectorS(float (*to)[3],
|
|||
VECADDSS(to[i], fLongVectorA[i], aS, fLongVectorB[i], bS);
|
||||
}
|
||||
}
|
||||
/* A = B - C * float --> for big vector */
|
||||
/* `A = B - C * float` -> for big vector. */
|
||||
DO_INLINE void sub_lfvector_lfvectorS(float (*to)[3],
|
||||
float (*fLongVectorA)[3],
|
||||
float (*fLongVectorB)[3],
|
||||
|
@ -260,7 +260,7 @@ DO_INLINE void sub_lfvector_lfvectorS(float (*to)[3],
|
|||
VECSUBS(to[i], fLongVectorA[i], fLongVectorB[i], bS);
|
||||
}
|
||||
}
|
||||
/* A = B - C --> for big vector */
|
||||
/* `A = B - C` -> for big vector. */
|
||||
DO_INLINE void sub_lfvector_lfvector(float (*to)[3],
|
||||
float (*fLongVectorA)[3],
|
||||
float (*fLongVectorB)[3],
|
||||
|
@ -455,7 +455,7 @@ DO_INLINE void add_fmatrix_fmatrix(float to[3][3],
|
|||
add_v3_v3v3(to[1], matrixA[1], matrixB[1]);
|
||||
add_v3_v3v3(to[2], matrixA[2], matrixB[2]);
|
||||
}
|
||||
/* A -= B*x + C*y (3x3 matrix sub-addition with 3x3 matrix) */
|
||||
/* `A -= B*x + (C * y)` (3x3 matrix sub-addition with 3x3 matrix). */
|
||||
DO_INLINE void subadd_fmatrixS_fmatrixS(
|
||||
float to[3][3], const float matrixA[3][3], float aS, const float matrixB[3][3], float bS)
|
||||
{
|
||||
|
@ -463,7 +463,7 @@ DO_INLINE void subadd_fmatrixS_fmatrixS(
|
|||
VECSUBADDSS(to[1], matrixA[1], aS, matrixB[1], bS);
|
||||
VECSUBADDSS(to[2], matrixA[2], aS, matrixB[2], bS);
|
||||
}
|
||||
/* A = B - C (3x3 matrix subtraction with 3x3 matrix) */
|
||||
/* `A = B - C` (3x3 matrix subtraction with 3x3 matrix). */
|
||||
DO_INLINE void sub_fmatrix_fmatrix(float to[3][3],
|
||||
const float matrixA[3][3],
|
||||
const float matrixB[3][3])
|
||||
|
@ -1683,8 +1683,8 @@ BLI_INLINE void dfdx_damp(float to[3][3],
|
|||
float rest,
|
||||
float damping)
|
||||
{
|
||||
/* inner spring damping vel is the relative velocity of the endpoints. */
|
||||
// return (I-outerprod(dir, dir)) * (-damping * -(dot(dir, vel)/Max(length, rest)));
|
||||
/* Inner spring damping `vel` is the relative velocity of the endpoints. */
|
||||
// return (I - outerprod(dir, dir)) * (-damping * -(dot(dir, vel) / Max(length, rest)));
|
||||
mul_fvectorT_fvector(to, dir, dir);
|
||||
sub_fmatrix_fmatrix(to, I, to);
|
||||
mul_fmatrix_S(to, (-damping * -(dot_v3v3(dir, vel) / MAX2(length, rest))));
|
||||
|
|
|
@ -894,8 +894,8 @@ BLI_INLINE void dfdx_damp(float to[3][3],
|
|||
float rest,
|
||||
float damping)
|
||||
{
|
||||
/* inner spring damping vel is the relative velocity of the endpoints. */
|
||||
// return (I-outerprod(dir, dir)) * (-damping * -(dot(dir, vel)/Max(length, rest)));
|
||||
/* Inner spring damping vel is the relative velocity of the endpoints. */
|
||||
// return (I - outerprod(dir, dir)) * (-damping * -(dot(dir, vel) / Max(length, rest)));
|
||||
mul_fvectorT_fvector(to, dir, dir);
|
||||
sub_fmatrix_fmatrix(to, I, to);
|
||||
mul_fmatrix_S(to, (-damping * -(dot_v3v3(dir, vel) / MAX2(length, rest))));
|
||||
|
|
|
@ -207,7 +207,7 @@ wmKeyMap *WM_keymap_guess_from_context(const bContext *C)
|
|||
/* Needs to be kept up to date with Keymap and Operator naming */
|
||||
wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname)
|
||||
{
|
||||
/* Op types purposely skipped for now:
|
||||
/* Op types purposely skipped for now:
|
||||
* BRUSH_OT
|
||||
* BOID_OT
|
||||
* BUTTONS_OT
|
||||
|
|
|
@ -42,9 +42,9 @@ typedef struct wmSurface {
|
|||
/** Free customdata, not the surface itself (done by wm_surface API) */
|
||||
void (*free_data)(struct wmSurface *);
|
||||
|
||||
/** Called when surface is activated for drawing (made drawable). */
|
||||
/** Called when surface is activated for drawing (made drawable). */
|
||||
void (*activate)(void);
|
||||
/** Called when surface is deactivated for drawing (current drawable cleared). */
|
||||
/** Called when surface is deactivated for drawing (current drawable cleared). */
|
||||
void (*deactivate)(void);
|
||||
} wmSurface;
|
||||
|
||||
|
|
Loading…
Reference in New Issue