Cleanup: spelling in comments
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
/* needed for intel drivers (works w/ mesa-swrast & nvidia) */
|
/* Needed for Intel drivers (works with MESA-software-rasterizer (`swrast`) & NVIDIA). */
|
||||||
#define USE_GLXEW_INIT_WORKAROUND
|
#define USE_GLXEW_INIT_WORKAROUND
|
||||||
|
|
||||||
#ifdef USE_GLXEW_INIT_WORKAROUND
|
#ifdef USE_GLXEW_INIT_WORKAROUND
|
||||||
|
|||||||
@@ -1587,7 +1587,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr)
|
|||||||
{
|
{
|
||||||
NSTimeInterval timestamp = [event timestamp];
|
NSTimeInterval timestamp = [event timestamp];
|
||||||
if (timestamp < m_last_warp_timestamp) {
|
if (timestamp < m_last_warp_timestamp) {
|
||||||
/* After warping we can still receive older unwarped mouse events,
|
/* After warping we can still receive older unwrapped mouse events,
|
||||||
* ignore those. */
|
* ignore those. */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1939,7 +1939,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
|
|||||||
ViewLayer *view_layer;
|
ViewLayer *view_layer;
|
||||||
for (view_layer = scene->view_layers.first; view_layer; view_layer = view_layer->next) {
|
for (view_layer = scene->view_layers.first; view_layer; view_layer = view_layer->next) {
|
||||||
view_layer->flag |= VIEW_LAYER_FREESTYLE;
|
view_layer->flag |= VIEW_LAYER_FREESTYLE;
|
||||||
view_layer->layflag = 0x7FFF; /* solid ztra halo edge strand */
|
view_layer->layflag = 0x7FFF; /* solid Z-transparency halo edge strand. */
|
||||||
view_layer->passflag = SCE_PASS_COMBINED | SCE_PASS_Z;
|
view_layer->passflag = SCE_PASS_COMBINED | SCE_PASS_Z;
|
||||||
view_layer->pass_alpha_threshold = 0.5f;
|
view_layer->pass_alpha_threshold = 0.5f;
|
||||||
BKE_freestyle_config_init(&view_layer->freestyle_config);
|
BKE_freestyle_config_init(&view_layer->freestyle_config);
|
||||||
|
|||||||
@@ -209,8 +209,7 @@ static void vs_add(
|
|||||||
/* This edge stores a direct path back to the original vertex so we can
|
/* This edge stores a direct path back to the original vertex so we can
|
||||||
* backtrack without having to store an array of previous verts. */
|
* backtrack without having to store an array of previous verts. */
|
||||||
|
|
||||||
/* WARNING - setting the edge is not common practice
|
/* WARNING: Setting the edge is not common practice but currently harmless, take care. */
|
||||||
* but currently harmless, take care. */
|
|
||||||
BLI_assert(BM_vert_in_edge(e_prev, v));
|
BLI_assert(BM_vert_in_edge(e_prev, v));
|
||||||
v->e = e_prev;
|
v->e = e_prev;
|
||||||
|
|
||||||
|
|||||||
@@ -59,6 +59,6 @@ bool ED_asset_filter_matches_asset(const AssetFilterSettings *filter, const Asse
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Succesfully passed through all filters. */
|
/* Successfully passed through all filters. */
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2650,7 +2650,7 @@ static double ui_get_but_scale_unit(uiBut *but, double value)
|
|||||||
const int unit_type = UI_but_unit_type_get(but);
|
const int unit_type = UI_but_unit_type_get(but);
|
||||||
|
|
||||||
/* Time unit is a bit special, not handled by BKE_scene_unit_scale() for now. */
|
/* Time unit is a bit special, not handled by BKE_scene_unit_scale() for now. */
|
||||||
if (unit_type == PROP_UNIT_TIME) { /* WARNING - using evil_C :| */
|
if (unit_type == PROP_UNIT_TIME) { /* WARNING: using evil_C :| */
|
||||||
Scene *scene = CTX_data_scene(but->block->evil_C);
|
Scene *scene = CTX_data_scene(but->block->evil_C);
|
||||||
return FRA2TIME(value);
|
return FRA2TIME(value);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2651,11 +2651,15 @@ static int bpy_struct_id_used(StructRNA *srna, char *identifier)
|
|||||||
|
|
||||||
/* -------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------- */
|
||||||
/** \name Module Methods
|
/** \name Module Methods
|
||||||
|
*
|
||||||
|
* Functions that register RNA.
|
||||||
|
*
|
||||||
|
* \note The `self` argument is NULL when called from Python,
|
||||||
|
* but being abused from C so we can pass the `srna` along.
|
||||||
|
* This isn't incorrect since its a Python object - but be careful.
|
||||||
|
*
|
||||||
* \{ */
|
* \{ */
|
||||||
|
|
||||||
/* Function that sets RNA, NOTE - self is NULL when called from python,
|
|
||||||
* but being abused from C so we can pass the srna along.
|
|
||||||
* This isn't incorrect since its a python object - but be careful */
|
|
||||||
PyDoc_STRVAR(BPy_BoolProperty_doc,
|
PyDoc_STRVAR(BPy_BoolProperty_doc,
|
||||||
".. function:: BoolProperty(name=\"\", "
|
".. function:: BoolProperty(name=\"\", "
|
||||||
"description=\"\", "
|
"description=\"\", "
|
||||||
|
|||||||
@@ -3812,7 +3812,7 @@ static void gesture_circle_modal_keymap(wmKeyConfig *keyconf)
|
|||||||
{0, NULL, 0, NULL, NULL},
|
{0, NULL, 0, NULL, NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
/* WARNING - name is incorrect, use for non-3d views */
|
/* WARNING: Name is incorrect, use for non-3d views. */
|
||||||
wmKeyMap *keymap = WM_modalkeymap_find(keyconf, "View3D Gesture Circle");
|
wmKeyMap *keymap = WM_modalkeymap_find(keyconf, "View3D Gesture Circle");
|
||||||
|
|
||||||
/* this function is called for each spacetype, only needs to add map once */
|
/* this function is called for each spacetype, only needs to add map once */
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ enum {
|
|||||||
|
|
||||||
/* for event checks */
|
/* for event checks */
|
||||||
/* only used for KM_TEXTINPUT, so assume that we want all user-inputtable ascii codes included */
|
/* only used for KM_TEXTINPUT, so assume that we want all user-inputtable ascii codes included */
|
||||||
/* UNUSED - see wm_eventmatch - BUG T30479. */
|
/* Unused, see #wm_eventmatch, see: T30479. */
|
||||||
// #define ISTEXTINPUT(event_type) ((event_type) >= ' ' && (event_type) <= 255)
|
// #define ISTEXTINPUT(event_type) ((event_type) >= ' ' && (event_type) <= 255)
|
||||||
/* NOTE: an alternative could be to check `event->utf8_buf`. */
|
/* NOTE: an alternative could be to check `event->utf8_buf`. */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user