[Bf-blender-cvs] [624bce6b4d2] master: Cleanup: redundant use of static constant

Campbell Barton noreply at git.blender.org
Sat Jun 26 13:52:39 CEST 2021


Commit: 624bce6b4d2d731700408b8685fcfc7ffbf7f0e2
Author: Campbell Barton
Date:   Sat Jun 26 21:38:33 2021 +1000
Branches: master
https://developer.blender.org/rB624bce6b4d2d731700408b8685fcfc7ffbf7f0e2

Cleanup: redundant use of static constant

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

M	source/blender/blenloader/intern/versioning_260.c

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

diff --git a/source/blender/blenloader/intern/versioning_260.c b/source/blender/blenloader/intern/versioning_260.c
index c19ef1be7c4..f2ad61f8674 100644
--- a/source/blender/blenloader/intern/versioning_260.c
+++ b/source/blender/blenloader/intern/versioning_260.c
@@ -2614,9 +2614,9 @@ void do_versions_after_linking_260(Main *bmain)
 
       float input_locx = 1000000.0f, input_locy = 0.0f;
       float output_locx = -1000000.0f, output_locy = 0.0f;
-      /* rough guess, not nice but we don't have access to UI constants here ... */
-      static const float offsetx = 42 + 3 * 20 + 20;
-      // static const float offsety = 0.0f;
+      /* Rough guess, not nice but we don't have access to UI constants here. */
+      const float offsetx = 42 + 3 * 20 + 20;
+      // const float offsety = 0.0f;
 
       if (create_io_nodes) {
         if (ntree->inputs.first) {



More information about the Bf-blender-cvs mailing list