[Bf-blender-cvs] [9a6eb3e7876] temp-pose-slider-cleanup: Cleanup: pose_slide.c use STRNCPY No functional changes

Christoph Lendenfeld noreply at git.blender.org
Sun Jun 6 23:18:02 CEST 2021


Commit: 9a6eb3e7876663174570ff3f3e8393d174c2391b
Author: Christoph Lendenfeld
Date:   Sun Jun 6 22:16:30 2021 +0100
Branches: temp-pose-slider-cleanup
https://developer.blender.org/rB9a6eb3e7876663174570ff3f3e8393d174c2391b

Cleanup: pose_slide.c use STRNCPY
No functional changes

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

M	release/datafiles/locale
M	release/scripts/addons
M	source/blender/editors/armature/pose_slide.c

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

diff --git a/release/datafiles/locale b/release/datafiles/locale
index 2cef4877edc..5ab29b1331d 160000
--- a/release/datafiles/locale
+++ b/release/datafiles/locale
@@ -1 +1 @@
-Subproject commit 2cef4877edc40875978c4e95322bb5193f5815bf
+Subproject commit 5ab29b1331d2103dae634b987f121c4599459d7f
diff --git a/release/scripts/addons b/release/scripts/addons
index 27fe7f3a4f9..cdabac54c4f 160000
--- a/release/scripts/addons
+++ b/release/scripts/addons
@@ -1 +1 @@
-Subproject commit 27fe7f3a4f964b53af436c4da4ddea337eff0c7e
+Subproject commit cdabac54c4fe7c6f8df125814442762aa539172b
diff --git a/source/blender/editors/armature/pose_slide.c b/source/blender/editors/armature/pose_slide.c
index f7b54b79601..4df17676771 100644
--- a/source/blender/editors/armature/pose_slide.c
+++ b/source/blender/editors/armature/pose_slide.c
@@ -1107,18 +1107,18 @@ static void pose_slide_draw_status(bContext *C, tPoseSlideOp *pso)
 
   switch (pso->axislock) {
     case PS_LOCK_X:
-      BLI_strncpy(axis_str, TIP_("[X]/Y/Z axis only (X to clear)"), sizeof(axis_str));
+      STRNCPY(axis_str, TIP_("[X]/Y/Z axis only (X to clear)"));
       break;
     case PS_LOCK_Y:
-      BLI_strncpy(axis_str, TIP_("X/[Y]/Z axis only (Y to clear)"), sizeof(axis_str));
+      STRNCPY(axis_str, TIP_("X/[Y]/Z axis only (Y to clear)"));
       break;
     case PS_LOCK_Z:
-      BLI_strncpy(axis_str, TIP_("X/Y/[Z] axis only (Z to clear)"), sizeof(axis_str));
+      STRNCPY(axis_str, TIP_("X/Y/[Z] axis only (Z to clear)"));
       break;
 
     default:
       if (ELEM(pso->channels, PS_TFM_LOC, PS_TFM_ROT, PS_TFM_SIZE)) {
-        BLI_strncpy(axis_str, TIP_("X/Y/Z = Axis Constraint"), sizeof(axis_str));
+        STRNCPY(axis_str, TIP_("X/Y/Z = Axis Constraint"));
       }
       else {
         axis_str[0] = '\0';
@@ -1146,43 +1146,38 @@ static void pose_slide_draw_status(bContext *C, tPoseSlideOp *pso)
                    axis_str);
       break;
     case PS_TFM_BBONE_SHAPE:
-      BLI_strncpy(limits_str,
-                  TIP_("G/R/S/[B]/C - Bendy Bone properties only (B to clear) | %s"),
-                  sizeof(limits_str));
+      STRNCPY(limits_str, TIP_("G/R/S/[B]/C - Bendy Bone properties only (B to clear) | %s"));
       break;
     case PS_TFM_PROPS:
-      BLI_strncpy(limits_str,
-                  TIP_("G/R/S/B/[C] - Custom Properties only (C to clear) | %s"),
-                  sizeof(limits_str));
+      STRNCPY(limits_str, TIP_("G/R/S/B/[C] - Custom Properties only (C to clear) | %s"));
       break;
     default:
-      BLI_strncpy(
-          limits_str, TIP_("G/R/S/B/C - Limit to Transform/Property Set"), sizeof(limits_str));
+      STRNCPY(limits_str, TIP_("G/R/S/B/C - Limit to Transform/Property Set"));
       break;
   }
 
   if (pso->overshoot) {
-    BLI_strncpy(overshoot_str, TIP_("[E] - Disable overshoot"), sizeof(overshoot_str));
+    STRNCPY(overshoot_str, TIP_("[E] - Disable overshoot"));
   }
   else {
-    BLI_strncpy(overshoot_str, TIP_("E - Enable overshoot"), sizeof(overshoot_str));
+    STRNCPY(overshoot_str, TIP_("[E] - Enable overshoot"));
   }
 
   if (pso->precision) {
-    BLI_strncpy(precision_str, TIP_("[Shift] - Precision active"), sizeof(precision_str));
+    STRNCPY(precision_str, TIP_("[Shift] - Precision active"));
   }
   else {
-    BLI_strncpy(precision_str, TIP_("Shift - Hold for precision"), sizeof(precision_str));
+    STRNCPY(precision_str, TIP_("Shift - Hold for precision"));
   }
 
   if (pso->increments) {
-    BLI_strncpy(increments_str, TIP_("[Ctrl] - Increments active"), sizeof(increments_str));
+    STRNCPY(increments_str, TIP_("[Ctrl] - Increments active"));
   }
   else {
-    BLI_strncpy(increments_str, TIP_("Ctrl - Hold for 10% increments"), sizeof(increments_str));
+    STRNCPY(increments_str, TIP_("Ctrl - Hold for 10% increments"));
   }
 
-  BLI_strncpy(bone_vis_str, TIP_("[H] - Toggle bone visibility"), sizeof(increments_str));
+  STRNCPY(bone_vis_str, TIP_("[H] - Toggle bone visibility"));
 
   if (hasNumInput(&pso->num)) {
     Scene *scene = pso->scene;



More information about the Bf-blender-cvs mailing list