[Bf-blender-cvs] [896ad9d5d0d] master: Cleanup: avoid F-string use in startup scripts

Campbell Barton noreply at git.blender.org
Tue Jan 3 03:26:58 CET 2023


Commit: 896ad9d5d0dba73a27664988497f97b8b087f257
Author: Campbell Barton
Date:   Tue Jan 3 13:24:53 2023 +1100
Branches: master
https://developer.blender.org/rB896ad9d5d0dba73a27664988497f97b8b087f257

Cleanup: avoid F-string use in startup scripts

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

M	release/scripts/startup/bl_ui/properties_animviz.py

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

diff --git a/release/scripts/startup/bl_ui/properties_animviz.py b/release/scripts/startup/bl_ui/properties_animviz.py
index 73a2f947958..655f80b9c7c 100644
--- a/release/scripts/startup/bl_ui/properties_animviz.py
+++ b/release/scripts/startup/bl_ui/properties_animviz.py
@@ -57,19 +57,19 @@ class MotionPathButtonsPanel:
             # Update Selected.
             col = layout.column(align=True)
             row = col.row(align=True)
-            row.operator(f"{op_category}.paths_update", text="Update Path", icon=icon)
-            row.operator(f"{op_category}.paths_clear", text="", icon='X').only_selected = True
+            row.operator(op_category + ".paths_update", text="Update Path", icon=icon)
+            row.operator(op_category + ".paths_clear", text="", icon='X').only_selected = True
         else:
             # Calculate.
             col = layout.column(align=True)
             col.label(text="Nothing to show yet...", icon='ERROR')
-            col.operator(f"{op_category}.paths_calculate", text="Calculate...", icon=icon)
+            col.operator(op_category + ".paths_calculate", text="Calculate...", icon=icon)
 
         # Update All & Clear All.
         # Note that 'col' is from inside the preceeding `if` or `else` block.
         row = col.row(align=True)
         row.operator("object.paths_update_visible", text="Update All Paths", icon='WORLD')
-        row.operator(f"{op_category}.paths_clear", text="", icon='X').only_selected = False
+        row.operator(op_category + ".paths_clear", text="", icon='X').only_selected = False
 
 
 class MotionPathButtonsPanel_display:



More information about the Bf-blender-cvs mailing list