[Bf-blender-cvs] [f43c9499bfc] master: Cleanup: use static declarations

Campbell Barton noreply at git.blender.org
Tue Dec 8 10:53:17 CET 2020


Commit: f43c9499bfccbfaf7add1d57407150b1871c2f66
Author: Campbell Barton
Date:   Tue Dec 8 20:44:45 2020 +1100
Branches: master
https://developer.blender.org/rBf43c9499bfccbfaf7add1d57407150b1871c2f66

Cleanup: use static declarations

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

M	source/blender/editors/space_view3d/view3d_placement.c
M	source/blender/makesrna/intern/rna_scene.c

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

diff --git a/source/blender/editors/space_view3d/view3d_placement.c b/source/blender/editors/space_view3d/view3d_placement.c
index 6d10aa5f957..7e8ed276766 100644
--- a/source/blender/editors/space_view3d/view3d_placement.c
+++ b/source/blender/editors/space_view3d/view3d_placement.c
@@ -72,7 +72,7 @@ static void preview_plane_cursor_visible_set(wmGizmoGroup *gzgroup, bool do_draw
  * In this case we can't usefully project the mouse cursor onto the plane,
  * so use a fall-back plane instead.
  */
-const float eps_view_align = 1e-2f;
+static const float eps_view_align = 1e-2f;
 
 /* -------------------------------------------------------------------- */
 /** \name Local Types
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index dc0876f2512..da03921bca6 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -529,7 +529,7 @@ const EnumPropertyItem rna_enum_bake_pass_filter_type_items[] = {
     {0, NULL, 0, NULL, NULL},
 };
 
-const EnumPropertyItem rna_enum_view_layer_aov_type_items[] = {
+static const EnumPropertyItem rna_enum_view_layer_aov_type_items[] = {
     {AOV_TYPE_COLOR, "COLOR", 0, "Color", ""},
     {AOV_TYPE_VALUE, "VALUE", 0, "Value", ""},
     {0, NULL, 0, NULL, NULL},



More information about the Bf-blender-cvs mailing list