[Bf-blender-cvs] [4227b818262] temp-lanpr-review: Fix wrong dereferences

Julian Eisel noreply at git.blender.org
Wed Nov 27 15:39:03 CET 2019


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;



More information about the Bf-blender-cvs mailing list