[Bf-blender-cvs] [a8a348a7fab] greasepencil-object: GPencil: Cleanup ScrArea from sa to area

Antonio Vazquez noreply at git.blender.org
Fri Apr 3 16:46:50 CEST 2020


Commit: a8a348a7fabfcbc03f8b88970f1c685b90c859bb
Author: Antonio Vazquez
Date:   Fri Apr 3 16:46:42 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rBa8a348a7fabfcbc03f8b88970f1c685b90c859bb

GPencil: Cleanup ScrArea from sa to area

===================================================================

M	source/blender/editors/gpencil/gpencil_mesh.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_mesh.c b/source/blender/editors/gpencil/gpencil_mesh.c
index a01ecf6399c..465737237cd 100644
--- a/source/blender/editors/gpencil/gpencil_mesh.c
+++ b/source/blender/editors/gpencil/gpencil_mesh.c
@@ -73,8 +73,8 @@ static bool gp_bake_mesh_animation_poll(bContext *C)
   }
 
   /* Only if the current view is 3D View. */
-  ScrArea *sa = CTX_wm_area(C);
-  return (sa && sa->spacetype);
+  ScrArea *area = CTX_wm_area(C);
+  return (area && area->spacetype);
 }
 
 static int gp_bake_mesh_animation_exec(bContext *C, wmOperator *op)



More information about the Bf-blender-cvs mailing list