Commit: 4227b81826257ed2e83d7f65f9f8fc30a3c2edce
Author: Julian Eisel
Date: Wed Nov 27 15:38:31 2019 +0100
Branches: temp-lanpr-review
https://developer.blender.org/rB4227b81826257ed2e83d7f65f9f8fc30a3c2edce
Fix wrong dereferences
===================================================================
M source/blender/editors/lanpr/lanpr_cpu.c
===================================================================
diff --git a/source/blender/editors/lanpr/lanpr_cpu.c
b/source/blender/editors/lanpr/lanpr_cpu.c
index 825bb51bf11..92546885308 100644
--- a/source/blender/editors/lanpr/lanpr_cpu.c
+++ b/source/blender/editors/lanpr/lanpr_cpu.c
@@ -4202,7 +4202,7 @@ static void lanpr_update_gp_strokes_recursive(
}
static int lanpr_collection_types(Collection *c)
{
- CollectionLANPR *cl = &c->lanpr;
+ CollectionLANPR *cl = c->lanpr;
int result = 0;
if (cl->contour.use) {
result |= LANPR_EDGE_FLAG_CONTOUR;
@@ -4243,7 +4243,7 @@ static void lanpr_update_gp_strokes_collection(
if (target_only && target_only != gpobj) {
return;
}
- CollectionLANPR *cl = &col->lanpr;
+ CollectionLANPR *cl = col->lanpr;
int level_start = cl->level_start;
int level_end = (cl->flags & LANPR_LINE_LAYER_USE_MULTIPLE_LEVELS) ?
cl->level_end :
cl->level_start;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs