Cleanup: spelling, comments
This commit is contained in:
parent
18b6c49a90
commit
dbe171fb26
|
@ -681,10 +681,10 @@ void BKE_gpencil_stroke_weights_duplicate(bGPDstroke *gps_src, bGPDstroke *gps_d
|
|||
}
|
||||
|
||||
/**
|
||||
* Make a copy of a given gpencil stroke.
|
||||
* \param gps_src: Source grease pencil strokeyes
|
||||
* \param dup_points: Duplicate points data
|
||||
* \return Pointer to new stroke
|
||||
* Make a copy of a given grease-pencil stroke.
|
||||
* \param gps_src: Source grease pencil strokes.
|
||||
* \param dup_points: Duplicate points data.
|
||||
* \return Pointer to new stroke.
|
||||
*/
|
||||
bGPDstroke *BKE_gpencil_stroke_duplicate(bGPDstroke *gps_src, const bool dup_points)
|
||||
{
|
||||
|
@ -1590,7 +1590,7 @@ Material *BKE_gpencil_object_material_ensure_from_active_input_toolsettings(Main
|
|||
/**
|
||||
* Guaranteed to return a material assigned to object. Returns never NULL.
|
||||
* \param bmain: Main pointer
|
||||
* \param ob: Grease pencil obejct
|
||||
* \param ob: Grease pencil object.
|
||||
* \param brush: Brush
|
||||
* \return Material pointer
|
||||
*/
|
||||
|
@ -2330,8 +2330,8 @@ void BKE_gpencil_visible_stroke_iter(ViewLayer *view_layer,
|
|||
|
||||
/**
|
||||
* Update original pointers in evaluated frame.
|
||||
* \param gpf_orig: Original greas epencil frame
|
||||
* \param gpf_eval: Evaluated grease pencil frame
|
||||
* \param gpf_orig: Original grease-pencil frame.
|
||||
* \param gpf_eval: Evaluated grease pencil frame.
|
||||
*/
|
||||
void BKE_gpencil_frame_original_pointers_update(const struct bGPDframe *gpf_orig,
|
||||
const struct bGPDframe *gpf_eval)
|
||||
|
|
|
@ -989,7 +989,7 @@ bool BKE_gpencil_stroke_smooth_uv(bGPDstroke *gps, int point_index, float influe
|
|||
* \param points: Array of grease pencil points (3D)
|
||||
* \param totpoints: Total of points
|
||||
* \param points2d: Result array of 2D points
|
||||
* \param r_direction: Return Concave (-1), Convex (1), or Autodetect (0)
|
||||
* \param r_direction: Return Concave (-1), Convex (1), or Auto-detect (0)
|
||||
*/
|
||||
void BKE_gpencil_stroke_2d_flat(const bGPDspoint *points,
|
||||
int totpoints,
|
||||
|
@ -1043,7 +1043,7 @@ void BKE_gpencil_stroke_2d_flat(const bGPDspoint *points,
|
|||
points2d[i][1] = dot_v3v3(loc, locy);
|
||||
}
|
||||
|
||||
/* Concave (-1), Convex (1), or Autodetect (0)? */
|
||||
/* Concave (-1), Convex (1), or Auto-detect (0)? */
|
||||
*r_direction = (int)locy[2];
|
||||
}
|
||||
|
||||
|
@ -1056,7 +1056,7 @@ void BKE_gpencil_stroke_2d_flat(const bGPDspoint *points,
|
|||
* \param totpoints: Total points
|
||||
* \param points2d: Result array of 2D points
|
||||
* \param scale: Scale factor
|
||||
* \param r_direction: Return Concave (-1), Convex (1), or Autodetect (0)
|
||||
* \param r_direction: Return Concave (-1), Convex (1), or Auto-detect (0)
|
||||
*/
|
||||
void BKE_gpencil_stroke_2d_flat_ref(const bGPDspoint *ref_points,
|
||||
int ref_totpoints,
|
||||
|
@ -1138,7 +1138,7 @@ void BKE_gpencil_stroke_2d_flat_ref(const bGPDspoint *ref_points,
|
|||
points2d[i][1] = dot_v3v3(loc, locy);
|
||||
}
|
||||
|
||||
/* Concave (-1), Convex (1), or Autodetect (0)? */
|
||||
/* Concave (-1), Convex (1), or Auto-detect (0)? */
|
||||
*r_direction = (int)locy[2];
|
||||
}
|
||||
|
||||
|
|
|
@ -197,7 +197,7 @@ static int gpencil_time_modifier(
|
|||
/**
|
||||
* Set current grease pencil active frame.
|
||||
* \param depsgraph: Current depsgraph
|
||||
* \param gpd: Grease pencil data-block
|
||||
* \param gpd: Grease pencil data-block.
|
||||
*/
|
||||
void BKE_gpencil_frame_active_set(Depsgraph *depsgraph, bGPdata *gpd)
|
||||
{
|
||||
|
@ -223,8 +223,7 @@ void BKE_gpencil_frame_active_set(Depsgraph *depsgraph, bGPdata *gpd)
|
|||
}
|
||||
|
||||
/**
|
||||
* Init grease pencil modifier.
|
||||
* \param void
|
||||
* Initialize grease pencil modifier.
|
||||
*/
|
||||
void BKE_gpencil_modifier_init(void)
|
||||
{
|
||||
|
@ -460,7 +459,6 @@ GpencilModifierData *BKE_gpencil_modifiers_findby_type(Object *ob, GpencilModifi
|
|||
* Set grease pencil modifier error.
|
||||
* \param md: Modifier data
|
||||
* \param _format: Format
|
||||
* \param
|
||||
*/
|
||||
void BKE_gpencil_modifier_set_error(GpencilModifierData *md, const char *_format, ...)
|
||||
{
|
||||
|
@ -560,8 +558,8 @@ static int gpencil_remap_time_get(Depsgraph *depsgraph, Scene *scene, Object *ob
|
|||
return remap_cfra;
|
||||
}
|
||||
|
||||
/** Get the current frame retimed with time modifiers.
|
||||
* \param depsgraph: Current depsgraph
|
||||
/** Get the current frame re-timed with time modifiers.
|
||||
* \param depsgraph: Current depsgraph.
|
||||
* \param scene: Current scene
|
||||
* \param ob: Grease pencil object
|
||||
* \param gpl: Grease pencil layer
|
||||
|
|
|
@ -176,9 +176,9 @@ void BLI_threadpool_init(ListBase *threadbase, void *(*do_thread)(void *), int t
|
|||
unsigned int level = atomic_fetch_and_add_u(&thread_levels, 1);
|
||||
if (level == 0) {
|
||||
#ifdef USE_APPLE_OMP_FIX
|
||||
/* workaround for Apple gcc 4.2.1 omp vs background thread bug,
|
||||
* we copy gomp thread local storage pointer to setting it again
|
||||
* inside the thread that we start */
|
||||
/* Workaround for Apple gcc 4.2.1 OMP vs background thread bug,
|
||||
* we copy GOMP thread local storage pointer to setting it again
|
||||
* inside the thread that we start. */
|
||||
thread_tls_data = pthread_getspecific(gomp_tls_key);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue