Cleanup: spelling (check_spelling_*), trailing spaces in comments
This commit is contained in:
@@ -4800,7 +4800,7 @@ void BKE_lib_override_library_main_operations_create(Main *bmain,
|
||||
* scenes have no master collection yet) are also never expected to be met in this code.
|
||||
*/
|
||||
BLI_assert_msg(resync_success,
|
||||
"Ensuring that all viewlayers in Main are synced with their collections failed");
|
||||
"Ensuring that all view-layers in Main are synced with their collections failed");
|
||||
UNUSED_VARS_NDEBUG(resync_success);
|
||||
BKE_layer_collection_resync_forbid();
|
||||
|
||||
|
||||
@@ -877,7 +877,7 @@ static void scene_foreach_id(ID *id, LibraryForeachIDData *data)
|
||||
|
||||
/* FIXME: Although ideally this should always have access to synced data, this is not always
|
||||
* the case (FOREACH_ID can be called in context where re-syncing is blocked, while effectively
|
||||
* modifying the viewlayer or collections data, see e.g. #id_delete code which remaps all
|
||||
* modifying the view-layer or collections data, see e.g. #id_delete code which remaps all
|
||||
* deleted ID usages to null).
|
||||
*
|
||||
* There is no obvious solution to this problem, so for now working around with some 'band-aid'
|
||||
@@ -889,7 +889,7 @@ static void scene_foreach_id(ID *id, LibraryForeachIDData *data)
|
||||
if (!is_synced) {
|
||||
BLI_assert_msg((flag & IDWALK_RECURSE) == 0,
|
||||
"foreach_id should never recurse in case it cannot ensure that all "
|
||||
"viewlayers are in synced with their collections");
|
||||
"view-layers are in synced with their collections");
|
||||
}
|
||||
LISTBASE_FOREACH (Base *, base, BKE_view_layer_object_bases_unsynced_get(view_layer)) {
|
||||
BKE_LIB_FOREACHID_PROCESS_IDSUPER(
|
||||
|
||||
@@ -2112,7 +2112,7 @@ static void do_version_material_remove_use_nodes(Main *bmain, Material *material
|
||||
*ntree, new_output_cycles, SOCK_IN, "NodeSocketVector", "Displacement");
|
||||
version_node_add_socket(*ntree, new_output_cycles, SOCK_IN, "NodeSocketFloat", "Thickness");
|
||||
/* We don't activate the output explicitly to avoid having two active outputs. We assume
|
||||
* `node_tree.get_output_node('Cycles')` will return this node. */
|
||||
* `node_tree.get_output_node('Cycles')` will return this node. */
|
||||
new_output_cycles.custom1 = SHD_OUTPUT_CYCLES;
|
||||
|
||||
bNode &shader_cycles = *blender::bke::node_add_static_node(
|
||||
|
||||
@@ -279,7 +279,7 @@ class Result {
|
||||
void steal_data(Result &source);
|
||||
|
||||
/* Similar to the Result variant of steal_data, but steals from a raw data buffer. The buffer is
|
||||
* assumed to be allocated using Blender's guarded allocator. */
|
||||
* assumed to be allocated using Blender's guarded allocator. */
|
||||
void steal_data(void *data, int2 size);
|
||||
|
||||
/* Set up the result to wrap an external GPU texture that is not allocated nor managed by the
|
||||
|
||||
@@ -846,7 +846,7 @@ void IrradianceBake::sync()
|
||||
}
|
||||
{
|
||||
/* Take the sorted lists array and copy adjacent surfel indices back to the Surfels.
|
||||
* Also relink coplanar surfels to avoid over shadowing. */
|
||||
* Also relink coplanar surfels to avoid over shadowing. */
|
||||
PassSimple::Sub &sub = pass.sub("ListBuild");
|
||||
sub.shader_set(inst_.shaders.static_shader_get(SURFEL_LIST_BUILD));
|
||||
sub.bind_ssbo(SURFEL_BUF_SLOT, &surfels_buf_);
|
||||
|
||||
@@ -762,7 +762,7 @@ void CurvesEvalCache::ensure_positions(CurvesModule &module, const bke::CurvesGe
|
||||
}
|
||||
|
||||
if (curves.is_empty()) {
|
||||
/* Can happen when called from `curves_pos_buffer_get()`. Caller has to deal with nullptr. */
|
||||
/* Can happen when called from `curves_pos_buffer_get()`. Caller has to deal with nullptr. */
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#define HANDLES_POS_RIGHT_SLOT 6
|
||||
#define BEZIER_OFFSETS_SLOT 7
|
||||
|
||||
/* Nurbs (alias of other buffers). */
|
||||
/* Nurbs (alias of other buffers). */
|
||||
#define CURVES_ORDER_SLOT CURVE_RESOLUTION_SLOT
|
||||
#define BASIS_CACHE_SLOT HANDLES_POS_LEFT_SLOT
|
||||
#define CONTROL_WEIGHTS_SLOT HANDLES_POS_RIGHT_SLOT
|
||||
|
||||
@@ -46,7 +46,7 @@ STORAGE_BUF(CURVE_CYCLIC_SLOT, read, uint, curves_cyclic_buf[]) /* Actually bool
|
||||
STORAGE_BUF(HANDLES_POS_LEFT_SLOT, read, float, handles_positions_left_buf[])
|
||||
STORAGE_BUF(HANDLES_POS_RIGHT_SLOT, read, float, handles_positions_right_buf[])
|
||||
STORAGE_BUF(BEZIER_OFFSETS_SLOT, read, int, bezier_offsets_buf[])
|
||||
/* Nurbs (alias of other buffers). */
|
||||
/* Nurbs (alias of other buffers). */
|
||||
// STORAGE_BUF(CURVES_ORDER_SLOT, read, uint, curves_order_buf[]) /* Actually int8_t. */
|
||||
// STORAGE_BUF(BASIS_CACHE_SLOT, read, float, basis_cache_buf[])
|
||||
// STORAGE_BUF(CONTROL_WEIGHTS_SLOT, read, float, control_weights_buf[])
|
||||
|
||||
@@ -46,7 +46,7 @@ STORAGE_BUF(CURVE_CYCLIC_SLOT, read, uint, curves_cyclic_buf[]) /* Actually bool
|
||||
STORAGE_BUF(HANDLES_POS_LEFT_SLOT, read, float, handles_positions_left_buf[])
|
||||
STORAGE_BUF(HANDLES_POS_RIGHT_SLOT, read, float, handles_positions_right_buf[])
|
||||
STORAGE_BUF(BEZIER_OFFSETS_SLOT, read, int, bezier_offsets_buf[])
|
||||
/* Nurbs (alias of other buffers). */
|
||||
/* Nurbs (alias of other buffers). */
|
||||
// STORAGE_BUF(CURVES_ORDER_SLOT, read, uint, curves_order_buf[]) /* Actually int8_t. */
|
||||
// STORAGE_BUF(BASIS_CACHE_SLOT, read, float, basis_cache_buf[])
|
||||
// STORAGE_BUF(CONTROL_WEIGHTS_SLOT, read, float, control_weights_buf[])
|
||||
|
||||
@@ -351,7 +351,7 @@ static bAction *poselib_blend_init_get_action(bContext *C, wmOperator *op)
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* If no explicit asset reference was passed, get asset from context. */
|
||||
/* If no explicit asset reference was passed, get asset from context. */
|
||||
asset = CTX_wm_asset(C);
|
||||
if (!asset) {
|
||||
BKE_report(op->reports, RPT_ERROR, "No asset in context");
|
||||
|
||||
@@ -71,7 +71,7 @@ static int get_divisor(const int distance)
|
||||
}
|
||||
|
||||
/* In case none of the above if is true, the divisor will be the full distance meaning the next
|
||||
* step down from that number is 1. */
|
||||
* step down from that number is 1. */
|
||||
return distance;
|
||||
}
|
||||
|
||||
|
||||
@@ -329,7 +329,7 @@ static void update_sequencer(const DEGEditorUpdateContext *update_ctx, Main *bma
|
||||
}
|
||||
}
|
||||
|
||||
/* Invalidate cache for strips that use this compositing tree as a modifier. */
|
||||
/* Invalidate cache for strips that use this compositing tree as a modifier. */
|
||||
if (GS(id->name) == ID_NT) {
|
||||
const bNodeTree *node_tree = reinterpret_cast<const bNodeTree *>(id);
|
||||
if (node_tree->type == NTREE_COMPOSIT) {
|
||||
|
||||
@@ -458,8 +458,8 @@ static void add_pose_transdata(
|
||||
BoneParentTransform bpt;
|
||||
float rpmat[3][3];
|
||||
|
||||
/* Not using the pchan->custom_tx here because we need the transformation to be
|
||||
* relative to the actual bone being modified, not it's visual representation. */
|
||||
/* Not using the `pchan->custom_tx` here because we need the transformation to be
|
||||
* relative to the actual bone being modified, not it's visual representation. */
|
||||
BKE_bone_parent_transform_calc_from_pchan(pchan, &bpt);
|
||||
if (t->mode == TFM_TRANSLATION) {
|
||||
copy_m3_m4(pmat, bpt.loc_mat);
|
||||
@@ -469,8 +469,8 @@ static void add_pose_transdata(
|
||||
}
|
||||
|
||||
/* Grrr! Exceptional case: When translating pose bones that are either Hinge or NoLocal,
|
||||
* and want align snapping, we just need both loc_mat and rotscale_mat.
|
||||
* So simply always store rotscale mat in td->ext, and always use it to apply rotations...
|
||||
* and want align snapping, we just need both `loc_mat` and `rotscale_mat`.
|
||||
* So simply always store rotscale mat in `td->ext`, and always use it to apply rotations...
|
||||
* Ugly to need such hacks! :/ */
|
||||
copy_m3_m4(rpmat, bpt.rotscale_mat);
|
||||
|
||||
|
||||
@@ -3081,7 +3081,7 @@ static void uv_select_invert(const Scene *scene, BMEditMesh *em)
|
||||
if (ED_uvedit_sync_uvselect_ignore(ts)) {
|
||||
bm->uv_select_sync_valid = false;
|
||||
}
|
||||
/* If selection wasn't synced, there is no need to sync. */
|
||||
/* If selection wasn't synced, there is no need to sync. */
|
||||
if (bm->uv_select_sync_valid == false) {
|
||||
EDBM_select_swap(em);
|
||||
EDBM_selectmode_flush(em);
|
||||
|
||||
@@ -104,13 +104,13 @@ typedef enum eGPDbrush_Flag {
|
||||
} eGPDbrush_Flag;
|
||||
|
||||
typedef enum eGPDbrush_Flag2 {
|
||||
/* DEPRECATED: replaced with BRUSH_COLOR_JITTER_USE_HUE_AT_STROKE */
|
||||
/* DEPRECATED: replaced with BRUSH_COLOR_JITTER_USE_HUE_AT_STROKE */
|
||||
/* Brush use random Hue at stroke level */
|
||||
GP_BRUSH_USE_HUE_AT_STROKE = (1 << 0),
|
||||
/* DEPRECATED: replaced with BRUSH_COLOR_JITTER_USE_SAT_AT_STROKE */
|
||||
/* DEPRECATED: replaced with BRUSH_COLOR_JITTER_USE_SAT_AT_STROKE */
|
||||
/* Brush use random Saturation at stroke level */
|
||||
GP_BRUSH_USE_SAT_AT_STROKE = (1 << 1),
|
||||
/* DEPRECATED: replaced with BRUSH_COLOR_JITTER_USE_VAL_AT_STROKE */
|
||||
/* DEPRECATED: replaced with BRUSH_COLOR_JITTER_USE_VAL_AT_STROKE */
|
||||
/* Brush use random Value at stroke level */
|
||||
GP_BRUSH_USE_VAL_AT_STROKE = (1 << 2),
|
||||
/* Brush use random Pressure at stroke level */
|
||||
@@ -119,13 +119,13 @@ typedef enum eGPDbrush_Flag2 {
|
||||
GP_BRUSH_USE_STRENGTH_AT_STROKE = (1 << 4),
|
||||
/* Brush use random UV at stroke level */
|
||||
GP_BRUSH_USE_UV_AT_STROKE = (1 << 5),
|
||||
/* DEPRECATED: replaced with BRUSH_COLOR_JITTER_USE_HUE_RAND_PRESS */
|
||||
/* DEPRECATED: replaced with BRUSH_COLOR_JITTER_USE_HUE_RAND_PRESS */
|
||||
/* Brush use Hue random pressure */
|
||||
GP_BRUSH_USE_HUE_RAND_PRESS = (1 << 6),
|
||||
/* DEPRECATED: replaced with BRUSH_COLOR_JITTER_USE_SAT_RAND_PRESS */
|
||||
/* DEPRECATED: replaced with BRUSH_COLOR_JITTER_USE_SAT_RAND_PRESS */
|
||||
/* Brush use Saturation random pressure */
|
||||
GP_BRUSH_USE_SAT_RAND_PRESS = (1 << 7),
|
||||
/* DEPRECATED: replaced with BRUSH_COLOR_JITTER_USE_VAL_RAND_PRESS */
|
||||
/* DEPRECATED: replaced with BRUSH_COLOR_JITTER_USE_VAL_RAND_PRESS */
|
||||
/* Brush use Value random pressure */
|
||||
GP_BRUSH_USE_VAL_RAND_PRESS = (1 << 8),
|
||||
/* Brush use Pressure random pressure */
|
||||
|
||||
@@ -512,8 +512,8 @@ void WM_operator_properties_generic_select(wmOperatorType *ot)
|
||||
ot->srna, "wait_to_deselect_others", false, "Wait to Deselect Others", "");
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
|
||||
|
||||
/* Force the selection to act on mouse click, not press. Necessary for some cases, but isn't used
|
||||
* much. */
|
||||
/* Force the selection to act on mouse click, not press.
|
||||
* Necessary for some cases, but isn't used much. */
|
||||
prop = RNA_def_boolean(ot->srna,
|
||||
"use_select_on_click",
|
||||
false,
|
||||
|
||||
@@ -825,7 +825,7 @@ static void print_help(bArgs *ba, bool all)
|
||||
BLI_args_print_arg_doc(ba, "--register-allusers");
|
||||
BLI_args_print_arg_doc(ba, "--unregister");
|
||||
BLI_args_print_arg_doc(ba, "--unregister-allusers");
|
||||
/* Windows only. */
|
||||
/* Windows only. */
|
||||
BLI_args_print_arg_doc(ba, "--qos");
|
||||
|
||||
BLI_args_print_arg_doc(ba, "--version");
|
||||
|
||||
Reference in New Issue
Block a user