Cleanup: spelling in comments
This commit is contained in:
parent
c5c94e3eae
commit
74f45ed9c5
@ -460,7 +460,7 @@ void BlenderDisplayDriver::draw(const Params ¶ms)
|
||||
/* Texture is requested to be cleared and was not yet cleared.
|
||||
*
|
||||
* Do early return which should be equivalent of drawing all-zero texture.
|
||||
* Watchout for the lock though so that the clear happening during update is properly
|
||||
* Watch out for the lock though so that the clear happening during update is properly
|
||||
* synchronized here. */
|
||||
gl_context_mutex_.unlock();
|
||||
return;
|
||||
|
@ -28,7 +28,7 @@ void HIPDeviceKernels::load(HIPDevice *device)
|
||||
for (int i = 0; i < (int)DEVICE_KERNEL_NUM; i++) {
|
||||
HIPDeviceKernel &kernel = kernels_[i];
|
||||
|
||||
/* No megakernel used for GPU. */
|
||||
/* No mega-kernel used for GPU. */
|
||||
if (i == DEVICE_KERNEL_INTEGRATOR_MEGAKERNEL) {
|
||||
continue;
|
||||
}
|
||||
|
@ -1419,7 +1419,7 @@ void OptiXDevice::build_bvh(BVH *bvh, Progress &progress, bool refit)
|
||||
}
|
||||
else {
|
||||
/* Can disable __anyhit__kernel_optix_visibility_test by default (except for thick curves,
|
||||
* since it needs to filter out endcaps there).
|
||||
* since it needs to filter out end-caps there).
|
||||
* It is enabled where necessary (visibility mask exceeds 8 bits or the other any-hit
|
||||
* programs like __anyhit__kernel_optix_shadow_all_hit) via OPTIX_RAY_FLAG_ENFORCE_ANYHIT.
|
||||
*/
|
||||
|
@ -186,8 +186,8 @@ ccl_device_inline float _shader_bsdf_multi_eval(const KernelGlobals *kg,
|
||||
float sum_sample_weight,
|
||||
const uint light_shader_flags)
|
||||
{
|
||||
/* this is the veach one-sample model with balance heuristic, some pdf
|
||||
* factors drop out when using balance heuristic weighting */
|
||||
/* This is the veach one-sample model with balance heuristic,
|
||||
* some PDF factors drop out when using balance heuristic weighting. */
|
||||
for (int i = 0; i < sd->num_closure; i++) {
|
||||
const ShaderClosure *sc = &sd->closure[i];
|
||||
|
||||
|
@ -101,8 +101,7 @@ GHOST_TSuccess GHOST_DisplayManagerSDL::setCurrentDisplaySetting(
|
||||
uint8_t display, const GHOST_DisplaySetting &setting)
|
||||
{
|
||||
/*
|
||||
* Mode switching code ported from Quake 2 version 3.21 and bzflag version
|
||||
* 2.4.0:
|
||||
* Mode switching code ported from Quake 2 version 3.21 and BZFLAG version 2.4.0:
|
||||
* ftp://ftp.idsoftware.com/idstuff/source/q2source-3.21.zip
|
||||
* See linux/gl_glx.c:GLimp_SetMode
|
||||
* http://wiki.bzflag.org/BZFlag_Source
|
||||
|
@ -1528,13 +1528,13 @@ void GHOST_SystemX11::processEvent(XEvent *xe)
|
||||
window->GetTabletData().Pressure = axis_value / ((float)xtablet.PressureLevels);
|
||||
}
|
||||
|
||||
/* the (short) cast and the & 0xffff is bizarre and unexplained anywhere,
|
||||
* but I got garbage data without it. Found it in the xidump.c source --matt
|
||||
/* NOTE(@broken): the (short) cast and the & 0xffff is bizarre and unexplained anywhere,
|
||||
* but I got garbage data without it. Found it in the `xidump.c` source.
|
||||
*
|
||||
* The '& 0xffff' just truncates the value to its two lowest bytes, this probably means
|
||||
* some drivers do not properly set the whole int value? Since we convert to float
|
||||
* afterward, I don't think we need to cast to short here, but do not have a device to
|
||||
* check this. --mont29
|
||||
* NOTE(@mont29): The '& 0xffff' just truncates the value to its two lowest bytes,
|
||||
* this probably means some drivers do not properly set the whole int value?
|
||||
* Since we convert to float afterward,
|
||||
* I don't think we need to cast to short here, but do not have a device to check this.
|
||||
*/
|
||||
if (AXIS_VALUE_GET(3, axis_value)) {
|
||||
window->GetTabletData().Xtilt = (short)(axis_value & 0xffff) /
|
||||
|
@ -1092,9 +1092,9 @@ GHOST_TSuccess GHOST_WindowX11::setOrder(GHOST_TWindowOrder order)
|
||||
XWindowAttributes attr;
|
||||
Atom atom;
|
||||
|
||||
/* We use both XRaiseWindow and _NET_ACTIVE_WINDOW, since some
|
||||
* window managers ignore the former (e.g. kwin from kde) and others
|
||||
* don't implement the latter (e.g. fluxbox pre 0.9.9) */
|
||||
/* We use both #XRaiseWindow and #_NET_ACTIVE_WINDOW, since some
|
||||
* window managers ignore the former (e.g. KWIN from KDE) and others
|
||||
* don't implement the latter (e.g. FLUXBOX before 0.9.9). */
|
||||
|
||||
XRaiseWindow(m_display, m_window);
|
||||
|
||||
|
@ -89,7 +89,7 @@ typedef struct localListBase {
|
||||
void *first, *last;
|
||||
} localListBase;
|
||||
|
||||
/* note: keep this struct aligned (e.g., irix/gcc) - Hos */
|
||||
/* NOTE(@hos): keep this struct aligned (e.g., IRIX/GCC). */
|
||||
typedef struct MemHead {
|
||||
int tag1;
|
||||
size_t len;
|
||||
@ -98,9 +98,8 @@ typedef struct MemHead {
|
||||
const char *nextname;
|
||||
int tag2;
|
||||
short pad1;
|
||||
short alignment; /* if non-zero aligned alloc was used
|
||||
* and alignment is stored here.
|
||||
*/
|
||||
/* if non-zero aligned allocation was used and alignment is stored here. */
|
||||
short alignment;
|
||||
#ifdef DEBUG_MEMCOUNTER
|
||||
int _count;
|
||||
#endif
|
||||
|
@ -39,8 +39,8 @@ namespace blender::bke {
|
||||
* make things easy to save in the colon-delimited Catalog Definition File format.
|
||||
*
|
||||
* The path of a catalog determines where in the catalog hierarchy the catalog is shown. Examples
|
||||
* are "Characters/Ellie/Poses/Hand" or "Kitbash/City/Skyscrapers". The path looks like a
|
||||
* filesystem path, with a few differences:
|
||||
* are "Characters/Ellie/Poses/Hand" or "Kit_bash/City/Skyscrapers". The path looks like a
|
||||
* file-system path, with a few differences:
|
||||
*
|
||||
* - Only slashes are used as path component separators.
|
||||
* - All paths are absolute, so there is no need for a leading slash.
|
||||
|
@ -21,6 +21,7 @@
|
||||
#pragma once
|
||||
|
||||
struct Main;
|
||||
//
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -651,9 +651,8 @@ extern void (*BKE_mesh_batch_cache_free_cb)(struct Mesh *me);
|
||||
|
||||
/* Inlines */
|
||||
|
||||
/* Instead of -1 that function uses ORIGINDEX_NONE as defined in BKE_customdata.h,
|
||||
* but I don't want to force every user of BKE_mesh.h to also include that file.
|
||||
* ~~ Sybren */
|
||||
/* NOTE(@sybren): Instead of -1 that function uses ORIGINDEX_NONE as defined in BKE_customdata.h,
|
||||
* but I don't want to force every user of BKE_mesh.h to also include that file. */
|
||||
BLI_INLINE int BKE_mesh_origindex_mface_mpoly(const int *index_mf_to_mpoly,
|
||||
const int *index_mp_to_orig,
|
||||
const int i)
|
||||
|
@ -417,7 +417,7 @@ typedef struct bNodeTreeType {
|
||||
void (*local_sync)(struct bNodeTree *localtree, struct bNodeTree *ntree);
|
||||
void (*local_merge)(struct Main *bmain, struct bNodeTree *localtree, struct bNodeTree *ntree);
|
||||
|
||||
/* Tree update. Overrides nodetype->updatetreefunc! */
|
||||
/* Tree update. Overrides `nodetype->updatetreefunc` ! */
|
||||
void (*update)(struct bNodeTree *ntree);
|
||||
|
||||
bool (*validate_link)(struct bNodeTree *ntree, struct bNodeLink *link);
|
||||
@ -443,7 +443,7 @@ void ntreeTypeFreeLink(const struct bNodeTreeType *nt);
|
||||
bool ntreeIsRegistered(struct bNodeTree *ntree);
|
||||
struct GHashIterator *ntreeTypeGetIterator(void);
|
||||
|
||||
/* helper macros for iterating over tree types */
|
||||
/* Helper macros for iterating over tree types. */
|
||||
#define NODE_TREE_TYPES_BEGIN(ntype) \
|
||||
{ \
|
||||
GHashIterator *__node_tree_type_iter__ = ntreeTypeGetIterator(); \
|
||||
@ -548,7 +548,7 @@ void nodeUnregisterType(struct bNodeType *ntype);
|
||||
bool nodeTypeUndefined(struct bNode *node);
|
||||
struct GHashIterator *nodeTypeGetIterator(void);
|
||||
|
||||
/* helper macros for iterating over node types */
|
||||
/* Helper macros for iterating over node types. */
|
||||
#define NODE_TYPES_BEGIN(ntype) \
|
||||
{ \
|
||||
GHashIterator *__node_type_iter__ = nodeTypeGetIterator(); \
|
||||
@ -574,7 +574,7 @@ const char *nodeStaticSocketType(int type, int subtype);
|
||||
const char *nodeStaticSocketInterfaceType(int type, int subtype);
|
||||
const char *nodeStaticSocketLabel(int type, int subtype);
|
||||
|
||||
/* helper macros for iterating over node types */
|
||||
/* Helper macros for iterating over node types. */
|
||||
#define NODE_SOCKET_TYPES_BEGIN(stype) \
|
||||
{ \
|
||||
GHashIterator *__node_socket_type_iter__ = nodeSocketTypeGetIterator(); \
|
||||
@ -746,7 +746,8 @@ int BKE_node_clipboard_get_type(void);
|
||||
|
||||
/* Node Instance Hash */
|
||||
typedef struct bNodeInstanceHash {
|
||||
GHash *ghash; /* XXX should be made a direct member, GHash allocation needs to support it */
|
||||
/** XXX should be made a direct member, #GHash allocation needs to support it */
|
||||
GHash *ghash;
|
||||
} bNodeInstanceHash;
|
||||
|
||||
typedef void (*bNodeInstanceValueFP)(void *value);
|
||||
@ -1347,7 +1348,7 @@ void ntreeCompositCryptomatteLayerPrefix(const Scene *scene,
|
||||
const bNode *node,
|
||||
char *r_prefix,
|
||||
size_t prefix_len);
|
||||
/* Update the runtime layer names with the cryptomatte layer names of the references
|
||||
/* Update the runtime layer names with the crypto-matte layer names of the references
|
||||
* render layer or image. */
|
||||
void ntreeCompositCryptomatteUpdateLayerNames(const Scene *scene, bNode *node);
|
||||
struct CryptomatteSession *ntreeCompositCryptomatteSession(const Scene *scene, bNode *node);
|
||||
|
@ -219,7 +219,7 @@ AssetCatalogPath AssetCatalogPath::rebase(const AssetCatalogPath &from_path,
|
||||
return to_path;
|
||||
}
|
||||
|
||||
/* When from_path = "abcd", we need to skip "abcd/" to get the rest of the path, hence the +1. */
|
||||
/* When from_path = "test", we need to skip "test/" to get the rest of the path, hence the +1. */
|
||||
const StringRef suffix = StringRef(this->path_).substr(from_path.length() + 1);
|
||||
const AssetCatalogPath path_suffix(suffix);
|
||||
return to_path / path_suffix;
|
||||
|
@ -1904,7 +1904,7 @@ KeyBlock *BKE_keyblock_add_ctime(Key *key, const char *name, const bool do_force
|
||||
return kb;
|
||||
}
|
||||
|
||||
/* only the active keyblock */
|
||||
/* Only the active key-block. */
|
||||
KeyBlock *BKE_keyblock_from_object(Object *ob)
|
||||
{
|
||||
Key *key = BKE_key_from_object(ob);
|
||||
@ -2247,7 +2247,7 @@ void BKE_keyblock_convert_to_mesh(KeyBlock *kb, Mesh *me)
|
||||
* Computes normals (vertices, polygons and/or loops ones) of given mesh for given shape key.
|
||||
*
|
||||
* \param kb: the KeyBlock to use to compute normals.
|
||||
* \param mesh: the Mesh to apply keyblock to.
|
||||
* \param mesh: the Mesh to apply key-block to.
|
||||
* \param r_vertnors: if non-NULL, an array of vectors, same length as number of vertices.
|
||||
* \param r_polynors: if non-NULL, an array of vectors, same length as number of polygons.
|
||||
* \param r_loopnors: if non-NULL, an array of vectors, same length as number of loops.
|
||||
@ -2345,7 +2345,7 @@ void BKE_keyblock_update_from_vertcos(Object *ob, KeyBlock *kb, const float (*ve
|
||||
return;
|
||||
}
|
||||
|
||||
/* Copy coords to keyblock */
|
||||
/* Copy coords to key-block. */
|
||||
if (ELEM(ob->type, OB_MESH, OB_LATTICE)) {
|
||||
for (a = 0; a < tot; a++, fp += 3, co++) {
|
||||
copy_v3_v3(fp, *co);
|
||||
@ -2405,7 +2405,7 @@ void BKE_keyblock_convert_from_vertcos(Object *ob, KeyBlock *kb, const float (*v
|
||||
|
||||
kb->data = MEM_mallocN(tot * elemsize, __func__);
|
||||
|
||||
/* Copy coords to keyblock */
|
||||
/* Copy coords to key-block. */
|
||||
BKE_keyblock_update_from_vertcos(ob, kb, vertCos);
|
||||
}
|
||||
|
||||
@ -2594,7 +2594,7 @@ bool BKE_keyblock_move(Object *ob, int org_index, int new_index)
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if given keyblock (as index) is used as basis by others in given key.
|
||||
* Check if given key-block (as index) is used as basis by others in given key.
|
||||
*/
|
||||
bool BKE_keyblock_is_basis(Key *key, const int index)
|
||||
{
|
||||
|
@ -4619,11 +4619,11 @@ void psys_get_particle_on_path(ParticleSimulationData *sim,
|
||||
pind.cache = cached ? psys->pointcache : NULL;
|
||||
pind.epoint = NULL;
|
||||
pind.bspline = (psys->part->flag & PART_HAIR_BSPLINE);
|
||||
/* pind.dm disabled in editmode means we don't get effectors taken into
|
||||
* account when subdividing for instance */
|
||||
/* `pind.dm` disabled in edit-mode means we don't get effectors taken into
|
||||
* account when subdividing for instance. */
|
||||
pind.mesh = psys_in_edit_mode(sim->depsgraph, psys) ?
|
||||
NULL :
|
||||
psys->hair_out_mesh; /* XXX Sybren EEK */
|
||||
psys->hair_out_mesh; /* XXX(@sybren) EEK. */
|
||||
init_particle_interpolation(sim->ob, psys, pa, &pind);
|
||||
do_particle_interpolation(psys, p, pa, t, &pind, state);
|
||||
|
||||
|
@ -2295,7 +2295,7 @@ static void softbody_calc_forces(
|
||||
sb_sfesf_threads_run(depsgraph, scene, ob, timenow, sb->totspring, NULL);
|
||||
}
|
||||
|
||||
/* after spring scan because it uses Effoctors too */
|
||||
/* After spring scan because it uses effectors too. */
|
||||
ListBase *effectors = BKE_effectors_create(depsgraph, ob, NULL, sb->effector_weights, false);
|
||||
|
||||
if (do_deflector) {
|
||||
|
@ -761,7 +761,7 @@ static int recursive_operation(const char *startfrom,
|
||||
# endif
|
||||
|
||||
if (is_dir) {
|
||||
/* recursively dig into a subfolder */
|
||||
/* Recurse into sub-directories. */
|
||||
ret = recursive_operation(
|
||||
from_path, to_path, callback_dir_pre, callback_file, callback_dir_post);
|
||||
}
|
||||
|
@ -190,7 +190,7 @@ static uint kdtree_balance(KDTreeNode *nodes, uint nodes_len, uint axis, const u
|
||||
}
|
||||
}
|
||||
|
||||
/* set node and sort subnodes */
|
||||
/* Set node and sort sub-nodes. */
|
||||
node = &nodes[median];
|
||||
node->d = axis;
|
||||
axis = (axis + 1) % KD_DIMS;
|
||||
|
@ -202,7 +202,7 @@ BLI_INLINE list_node *sweep_up(struct SortInfo *si, list_node *list, unsigned in
|
||||
}
|
||||
|
||||
/**
|
||||
* The 'ranks' array essentially captures the recursion stack of a mergesort.
|
||||
* The 'ranks' array essentially captures the recursion stack of a merge-sort.
|
||||
* The merge tree is built in a bottom-up manner. The control loop for
|
||||
* updating the 'ranks' array is analogous to incrementing a binary integer,
|
||||
* and the `O(n)` time for counting `upto` n translates to `O(n)` merges when
|
||||
|
@ -1040,13 +1040,13 @@ unsigned int BLI_scanfill_calc_ex(ScanFillContext *sf_ctx, const int flag, const
|
||||
}
|
||||
|
||||
/* CURRENT STATUS:
|
||||
* - eve->f :1 = available in edges
|
||||
* - eve->poly_nr :polynumber
|
||||
* - eve->edge_tot :amount of edges connected to vertex
|
||||
* - eve->tmp.v :store! original vertex number
|
||||
* - `eve->f`: 1 = available in edges.
|
||||
* - `eve->poly_nr`: poly-number.
|
||||
* - `eve->edge_tot`: amount of edges connected to vertex.
|
||||
* - `eve->tmp.v`: store! original vertex number.
|
||||
*
|
||||
* - eed->f :1 = boundary edge (optionally set by caller)
|
||||
* - eed->poly_nr :poly number
|
||||
* - `eed->f`: 1 = boundary edge (optionally set by caller).
|
||||
* - `eed->poly_nr`: poly number.
|
||||
*/
|
||||
|
||||
/* STEP 3: MAKE POLYFILL STRUCT */
|
||||
|
@ -121,7 +121,7 @@ typedef struct BlendFileReadReport {
|
||||
int proxies_to_lib_overrides_success;
|
||||
/* Number of proxies that failed to convert to library overrides. */
|
||||
int proxies_to_lib_overrides_failures;
|
||||
/* Number of VSE strips that were not read because were in non-supported channels. */
|
||||
/* Number of sequencer strips that were not read because were in non-supported channels. */
|
||||
int vse_strips_skipped;
|
||||
} count;
|
||||
|
||||
|
@ -1695,7 +1695,7 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
|
||||
}
|
||||
}
|
||||
|
||||
/* Show vse color tags by default. */
|
||||
/* Show sequencer color tags by default. */
|
||||
LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) {
|
||||
LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) {
|
||||
LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) {
|
||||
|
@ -86,7 +86,8 @@ void bmesh_disk_vert_replace(BMEdge *e, BMVert *v_dst, BMVert *v_src)
|
||||
|
||||
/**
|
||||
* \section bm_cycles BMesh Cycles
|
||||
* (this is somewhat outdate, though bits of its API are still used) - joeedh
|
||||
*
|
||||
* NOTE(@joeedh): this is somewhat outdated, though bits of its API are still used.
|
||||
*
|
||||
* Cycles are circular doubly linked lists that form the basis of adjacency
|
||||
* information in the BME modeler. Full adjacency relations can be derived
|
||||
|
@ -31,8 +31,7 @@
|
||||
#include "bmesh_walkers_private.h"
|
||||
|
||||
/**
|
||||
* - joeedh -
|
||||
* design notes:
|
||||
* NOTE(@joeedh): Details on design.
|
||||
*
|
||||
* original design: walkers directly emulation recursive functions.
|
||||
* functions save their state onto a worklist, and also add new states
|
||||
|
@ -111,7 +111,7 @@ typedef struct EdgeHalf {
|
||||
bool is_bev;
|
||||
/** Is e->v2 the vertex at this end? */
|
||||
bool is_rev;
|
||||
/** Is e a seam for custom loopdata (e.g., UVs)? */
|
||||
/** Is e a seam for custom loop-data (e.g., UV's). */
|
||||
bool is_seam;
|
||||
/** Used during the custom profile orientation pass. */
|
||||
bool visited_rpo;
|
||||
|
@ -298,14 +298,14 @@ typedef struct GPENCIL_PrivateData {
|
||||
/* Current frame */
|
||||
int cfra;
|
||||
/* If we are rendering for final render (F12).
|
||||
* NOTE: set to false for viewport and opengl rendering (including VSE scene rendering), but set
|
||||
* to true when rendering in `OB_RENDER` shading mode (viewport or opengl rendering) */
|
||||
* NOTE: set to false for viewport and opengl rendering (including sequencer scene rendering),
|
||||
* but set to true when rendering in #OB_RENDER shading mode (viewport or opengl rendering). */
|
||||
bool is_render;
|
||||
/* If we are in viewport display (used for VFX). */
|
||||
bool is_viewport;
|
||||
/* True in selection and auto_depth drawing */
|
||||
bool draw_depth_only;
|
||||
/* Is shading set to wireframe. */
|
||||
/* Is shading set to wire-frame. */
|
||||
bool draw_wireframe;
|
||||
/* Used by the depth merge step. */
|
||||
int is_stroke_order_3d;
|
||||
|
@ -126,9 +126,10 @@ int getname_anim_fcurve(char *name, ID *id, FCurve *fcu)
|
||||
structname = RNA_struct_ui_name(ptr.type);
|
||||
}
|
||||
|
||||
/* For the VSE, a strip's 'Transform' or 'Crop' is a nested (under Sequence) struct, but
|
||||
* displaying the struct name alone is no meaningful information (and also cannot be
|
||||
* filtered well), same for modifiers. So display strip name alongside as well. */
|
||||
/* For the sequencer, a strip's 'Transform' or 'Crop' is a nested (under Sequence)
|
||||
* struct, but displaying the struct name alone is no meaningful information
|
||||
* (and also cannot be filtered well), same for modifiers.
|
||||
* So display strip name alongside as well. */
|
||||
if (GS(ptr.owner_id->name) == ID_SCE) {
|
||||
char stripname[256];
|
||||
if (BLI_str_quoted_substr(
|
||||
|
@ -1115,7 +1115,7 @@ static int add_driver_button_invoke(bContext *C, wmOperator *op, const wmEvent *
|
||||
}
|
||||
|
||||
/* 2) Show editing panel for setting up this driver */
|
||||
/* TODO: Use a different one from the editing popever, so we can have the single/all toggle? */
|
||||
/* TODO: Use a different one from the editing popover, so we can have the single/all toggle? */
|
||||
UI_popover_panel_invoke(C, "GRAPH_PT_drivers_popover", true, op->reports);
|
||||
}
|
||||
|
||||
|
@ -1184,7 +1184,7 @@ static int pose_clear_transform_generic_exec(bContext *C,
|
||||
ViewLayer *view_layer = CTX_data_view_layer(C);
|
||||
View3D *v3d = CTX_wm_view3d(C);
|
||||
FOREACH_OBJECT_IN_MODE_BEGIN (view_layer, v3d, OB_ARMATURE, OB_MODE_POSE, ob_iter) {
|
||||
/* XXX: UGLY HACK (for autokey + clear transforms) */
|
||||
/* XXX: UGLY HACK (for auto-key + clear transforms). */
|
||||
Object *ob_eval = DEG_get_evaluated_object(depsgraph, ob_iter);
|
||||
ListBase dsources = {NULL, NULL};
|
||||
bool changed = false;
|
||||
|
@ -564,7 +564,7 @@ void FILE_OT_find_missing_files(wmOperatorType *ot)
|
||||
/** \name Report Box Operator
|
||||
* \{ */
|
||||
|
||||
/* NOTE(matt): Hard to decide whether to keep this as an operator,
|
||||
/* NOTE(@broken): Hard to decide whether to keep this as an operator,
|
||||
* or turn it into a hard_coded UI control feature,
|
||||
* handling TIMER events for all regions in `interface_handlers.c`.
|
||||
* Not sure how good that is to be accessing UI data from
|
||||
|
@ -1496,8 +1496,10 @@ static void bone_children_clear_transflag(int mode, short around, ListBase *lb)
|
||||
}
|
||||
}
|
||||
|
||||
/* Sets transform flags in the bones.
|
||||
* Returns total number of bones with `BONE_TRANSFORM`. */
|
||||
/**
|
||||
* Sets transform flags in the bones.
|
||||
* Returns total number of bones with #BONE_TRANSFORM.
|
||||
*/
|
||||
int transform_convert_pose_transflags_update(Object *ob,
|
||||
const int mode,
|
||||
const short around,
|
||||
@ -1730,7 +1732,7 @@ void special_aftertrans_update__pose(bContext *C, TransInfo *t)
|
||||
BKE_pose_where_is(t->depsgraph, t->scene, pose_ob);
|
||||
}
|
||||
|
||||
/* set BONE_TRANSFORM flags for autokey, gizmo draw might have changed them */
|
||||
/* Set BONE_TRANSFORM flags for auto-key, gizmo draw might have changed them. */
|
||||
if (!canceled && (t->mode != TFM_DUMMY)) {
|
||||
transform_convert_pose_transflags_update(ob, t->mode, t->around, NULL);
|
||||
}
|
||||
|
@ -958,25 +958,25 @@ void special_aftertrans_update__object(bContext *C, TransInfo *t)
|
||||
}
|
||||
BLI_freelistN(&pidlist);
|
||||
|
||||
/* pointcache refresh */
|
||||
/* Point-cache refresh. */
|
||||
if (BKE_ptcache_object_reset(t->scene, ob, PTCACHE_RESET_OUTDATED)) {
|
||||
DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
|
||||
}
|
||||
|
||||
/* Needed for proper updating of "quick cached" dynamics. */
|
||||
/* Creates troubles for moving animated objects without */
|
||||
/* autokey though, probably needed is an anim sys override? */
|
||||
/* Please remove if some other solution is found. -jahka */
|
||||
/* Needed for proper updating of "quick cached" dynamics.
|
||||
* Creates troubles for moving animated objects without
|
||||
* auto-key though, probably needed is an animation-system override?
|
||||
* NOTE(@jahka): Please remove if some other solution is found. */
|
||||
DEG_id_tag_update(&ob->id, ID_RECALC_TRANSFORM);
|
||||
|
||||
/* Set autokey if necessary */
|
||||
/* Set auto-key if necessary. */
|
||||
if (!canceled) {
|
||||
autokeyframe_object(C, t->scene, t->view_layer, ob, t->mode);
|
||||
}
|
||||
|
||||
motionpath_update |= motionpath_need_update_object(t->scene, ob);
|
||||
|
||||
/* restore rigid body transform */
|
||||
/* Restore rigid body transform. */
|
||||
if (ob->rigidbody_object && canceled) {
|
||||
float ctime = BKE_scene_ctime_get(t->scene);
|
||||
if (BKE_rigidbody_check_sim_running(t->scene->rigidbody_world, ctime)) {
|
||||
|
@ -20,8 +20,8 @@
|
||||
/** \file
|
||||
* \ingroup gpu
|
||||
*
|
||||
* Interface for accessing gpu-related methods for selection. The semantics are
|
||||
* similar to glRenderMode(GL_SELECT) from older OpenGL versions.
|
||||
* Interface for accessing GPU-related methods for selection. The semantics are
|
||||
* similar to `glRenderMode(GL_SELECT)` from older OpenGL versions.
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -20,8 +20,8 @@
|
||||
/** \file
|
||||
* \ingroup gpu
|
||||
*
|
||||
* Interface for accessing gpu-related methods for selection. The semantics will be
|
||||
* similar to glRenderMode(GL_SELECT) since the goal is to maintain compatibility.
|
||||
* Interface for accessing GPU-related methods for selection. The semantics will be
|
||||
* similar to `glRenderMode(GL_SELECT)` since the goal is to maintain compatibility.
|
||||
*/
|
||||
|
||||
#include <cstdlib>
|
||||
|
@ -644,7 +644,7 @@ static bool base_callback(const iTaSC::Timestamp ×tamp,
|
||||
ikscene->baseFrame = iTaSC::F_identity;
|
||||
}
|
||||
next.setValue(&rootmat[0][0]);
|
||||
/* if there is a polar target (only during solving otherwise we don't have end efffector) */
|
||||
/* If there is a polar target (only during solving otherwise we don't have end effector). */
|
||||
if (ikscene->polarConstraint && timestamp.update) {
|
||||
/* compute additional rotation of base frame so that armature follows the polar target */
|
||||
float imat[4][4]; /* IK tree base inverse matrix */
|
||||
|
@ -751,14 +751,14 @@ static void rna_def_nlastrip(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Influence", "Amount the strip contributes to the current result");
|
||||
/* XXX: Update temporarily disabled so that the property can be edited at all!
|
||||
* Even autokey only applies after the curves have been re-evaluated,
|
||||
* Even auto-key only applies after the curves have been re-evaluated,
|
||||
* causing the unkeyed values to be lost. */
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_NLA | NA_EDITED, /*"rna_NlaStrip_update"*/ NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "strip_time", PROP_FLOAT, PROP_TIME);
|
||||
RNA_def_property_ui_text(prop, "Strip Time", "Frame of referenced Action to evaluate");
|
||||
/* XXX: Update temporarily disabled so that the property can be edited at all!
|
||||
* Even autokey only applies after the curves have been re-evaluated,
|
||||
* Even auto-key only applies after the curves have been re-evaluated,
|
||||
* causing the unkeyed values to be lost. */
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_NLA | NA_EDITED, /*"rna_NlaStrip_update"*/ NULL);
|
||||
|
||||
|
@ -1043,8 +1043,8 @@ Mesh *MOD_solidify_extrude_modifyMesh(ModifierData *md, const ModifierEvalContex
|
||||
#define SOLIDIFY_SIDE_NORMALS
|
||||
|
||||
#ifdef SOLIDIFY_SIDE_NORMALS
|
||||
/* Note that, due to the code setting cd_dirty_vert a few lines above,
|
||||
* do_side_normals is always false. - Sybren */
|
||||
/* NOTE(@sybren): due to the code setting cd_dirty_vert a few lines above,
|
||||
* do_side_normals is always false. */
|
||||
const bool do_side_normals = !(result->runtime.cd_dirty_vert & CD_MASK_NORMAL);
|
||||
/* annoying to allocate these since we only need the edge verts, */
|
||||
float(*edge_vert_nos)[3] = do_side_normals ?
|
||||
|
@ -104,7 +104,7 @@ static void localize(bNodeTree *localtree, bNodeTree *ntree)
|
||||
local_node->original = node;
|
||||
|
||||
/* move over the compbufs */
|
||||
/* right after ntreeCopyTree() oldsock pointers are valid */
|
||||
/* right after #ntreeCopyTree() `oldsock` pointers are valid */
|
||||
|
||||
if (ELEM(node->type, CMP_NODE_VIEWER, CMP_NODE_SPLITVIEWER)) {
|
||||
if (node->id) {
|
||||
@ -220,7 +220,7 @@ void register_node_tree_type_cmp(void)
|
||||
tt->type = NTREE_COMPOSIT;
|
||||
strcpy(tt->idname, "CompositorNodeTree");
|
||||
strcpy(tt->ui_name, N_("Compositor"));
|
||||
tt->ui_icon = 0; /* defined in drawnode.c */
|
||||
tt->ui_icon = 0; /* Defined in `drawnode.c`. */
|
||||
strcpy(tt->ui_description, N_("Compositing nodes"));
|
||||
|
||||
tt->free_cache = free_cache;
|
||||
|
@ -119,7 +119,7 @@ void register_node_tree_type_geo(void)
|
||||
tt->type = NTREE_GEOMETRY;
|
||||
strcpy(tt->idname, "GeometryNodeTree");
|
||||
strcpy(tt->ui_name, N_("Geometry Node Editor"));
|
||||
tt->ui_icon = 0; /* defined in drawnode.c */
|
||||
tt->ui_icon = 0; /* Defined in `drawnode.c`. */
|
||||
strcpy(tt->ui_description, N_("Geometry nodes"));
|
||||
tt->rna_ext.srna = &RNA_GeometryNodeTree;
|
||||
tt->update = geometry_node_tree_update;
|
||||
|
@ -86,7 +86,7 @@ struct ConeConfig {
|
||||
bool top_has_center_vert;
|
||||
bool bottom_has_center_vert;
|
||||
|
||||
/* Helpful quantitites. */
|
||||
/* Helpful quantities. */
|
||||
int tot_quad_rings;
|
||||
int tot_edge_rings;
|
||||
int tot_verts;
|
||||
|
@ -872,7 +872,7 @@ static bNodeSocketType *make_socket_type_material()
|
||||
|
||||
void register_standard_node_socket_types(void)
|
||||
{
|
||||
/* draw callbacks are set in drawnode.c to avoid bad-level calls */
|
||||
/* Draw callbacks are set in `drawnode.c` to avoid bad-level calls. */
|
||||
|
||||
nodeRegisterSocketType(make_socket_type_float(PROP_NONE));
|
||||
nodeRegisterSocketType(make_socket_type_float(PROP_UNSIGNED));
|
||||
|
@ -201,7 +201,7 @@ void register_node_tree_type_sh(void)
|
||||
tt->type = NTREE_SHADER;
|
||||
strcpy(tt->idname, "ShaderNodeTree");
|
||||
strcpy(tt->ui_name, N_("Shader Editor"));
|
||||
tt->ui_icon = 0; /* defined in drawnode.c */
|
||||
tt->ui_icon = 0; /* Defined in `drawnode.c`. */
|
||||
strcpy(tt->ui_description, N_("Shader nodes"));
|
||||
|
||||
tt->foreach_nodeclass = foreach_nodeclass;
|
||||
|
@ -169,7 +169,7 @@ void register_node_tree_type_tex(void)
|
||||
tt->type = NTREE_TEXTURE;
|
||||
strcpy(tt->idname, "TextureNodeTree");
|
||||
strcpy(tt->ui_name, N_("Texture Node Editor"));
|
||||
tt->ui_icon = 0; /* defined in drawnode.c */
|
||||
tt->ui_icon = 0; /* Defined in `drawnode.c`. */
|
||||
strcpy(tt->ui_description, N_("Texture nodes"));
|
||||
|
||||
tt->foreach_nodeclass = foreach_nodeclass;
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
/* **************** CURVE Time ******************** */
|
||||
|
||||
/* custom1 = sfra, custom2 = efra */
|
||||
/* custom1 = start-frame, custom2 = end-frame. */
|
||||
static bNodeSocketTemplate time_outputs[] = {{SOCK_FLOAT, N_("Value")}, {-1, ""}};
|
||||
|
||||
static void time_colorfn(
|
||||
|
@ -945,7 +945,7 @@ typedef struct wmDragAsset {
|
||||
int id_type;
|
||||
int import_type; /* eFileAssetImportType */
|
||||
|
||||
/* FIXME: This is temporary evil solution to get scene/viewlayer/etc in the copy callback of the
|
||||
/* FIXME: This is temporary evil solution to get scene/view-layer/etc in the copy callback of the
|
||||
* #wmDropBox.
|
||||
* TODO: Handle link/append in operator called at the end of the drop process, and NOT in its
|
||||
* copy callback.
|
||||
|
Loading…
Reference in New Issue
Block a user