Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-01-10 14:53:59 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-01-10 14:53:59 +0300
commitf21f18b572e4fa025516995ddfa6a7c04bdb5907 (patch)
tree660635a7ba86b32e303629743b0ad187b2348991 /source/blender/blenkernel/intern/CCGSubSurf_legacy.c
parent561419374549201845bdd58e7329f61eef574f7f (diff)
Task scheduler: Use const qualifier in callbacks for parallel range
Diffstat (limited to 'source/blender/blenkernel/intern/CCGSubSurf_legacy.c')
-rw-r--r--source/blender/blenkernel/intern/CCGSubSurf_legacy.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/CCGSubSurf_legacy.c b/source/blender/blenkernel/intern/CCGSubSurf_legacy.c
index d289f63dac1..d567b50af56 100644
--- a/source/blender/blenkernel/intern/CCGSubSurf_legacy.c
+++ b/source/blender/blenkernel/intern/CCGSubSurf_legacy.c
@@ -138,7 +138,7 @@ typedef struct CCGSubSurfCalcSubdivData {
static void ccgSubSurf__calcVertNormals_faces_accumulate_cb(
void *__restrict userdata,
- int ptrIdx,
+ const int ptrIdx,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
CCGSubSurfCalcSubdivData *data = userdata;
@@ -232,7 +232,7 @@ static void ccgSubSurf__calcVertNormals_faces_accumulate_cb(
static void ccgSubSurf__calcVertNormals_faces_finalize_cb(
void *__restrict userdata,
- int ptrIdx,
+ const int ptrIdx,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
CCGSubSurfCalcSubdivData *data = userdata;
@@ -273,7 +273,7 @@ static void ccgSubSurf__calcVertNormals_faces_finalize_cb(
static void ccgSubSurf__calcVertNormals_edges_accumulate_cb(
void *__restrict userdata,
- int ptrIdx,
+ const int ptrIdx,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
CCGSubSurfCalcSubdivData *data = userdata;
@@ -422,7 +422,7 @@ static void ccgSubSurf__calcVertNormals(CCGSubSurf *ss,
static void ccgSubSurf__calcSubdivLevel_interior_faces_edges_midpoints_cb(
void *__restrict userdata,
- int ptrIdx,
+ const int ptrIdx,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
CCGSubSurfCalcSubdivData *data = userdata;
@@ -512,7 +512,7 @@ static void ccgSubSurf__calcSubdivLevel_interior_faces_edges_midpoints_cb(
static void ccgSubSurf__calcSubdivLevel_interior_faces_edges_centerpoints_shift_cb(
void *__restrict userdata,
- int ptrIdx,
+ const int ptrIdx,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
CCGSubSurfCalcSubdivData *data = userdata;
@@ -620,7 +620,7 @@ static void ccgSubSurf__calcSubdivLevel_interior_faces_edges_centerpoints_shift_
static void ccgSubSurf__calcSubdivLevel_verts_copydata_cb(
void *__restrict userdata,
- int ptrIdx,
+ const int ptrIdx,
const ParallelRangeTLS *__restrict UNUSED(tls))
{
CCGSubSurfCalcSubdivData *data = userdata;