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:
authorCampbell Barton <ideasman42@gmail.com>2010-01-05 00:37:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-05 00:37:09 +0300
commit7f03297fc8f3625bbad8ecc18d44b916536ca71f (patch)
treed3e9b297be33d255dc6f91755647b058d618ac1d /source/blender/editors/gpencil
parenta9861e3381f4c2ac44fcc880aa1bd030a3ba8dae (diff)
grease pencil 'Only Endpoints' option wasnt working when the entire zbuffer was filled.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 5efc9d916c1..371e73cfb9b 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -538,7 +538,7 @@ static void gp_stroke_newfrombuffer (tGPsdata *p)
for (i=gpd->sbuffer_size-1; i >= 0; i--)
depth_arr[i] = 0.9999f;
}
- else if(interp_depth) {
+ else {
if(p->gpd->flag & GP_DATA_DEPTH_STROKE_ENDPOINTS) {
/* remove all info between the valid endpoints */
int first_valid = 0;
@@ -557,9 +557,13 @@ static void gp_stroke_newfrombuffer (tGPsdata *p)
/* invalidate non-endpoints, so only blend between first and last */
for (i=first_valid+1; i < last_valid; i++)
depth_arr[i]= FLT_MAX;
+
+ interp_depth= TRUE;
}
- interp_sparse_array(depth_arr, gpd->sbuffer_size, FLT_MAX);
+ if(interp_depth) {
+ interp_sparse_array(depth_arr, gpd->sbuffer_size, FLT_MAX);
+ }
}
}