[Bf-blender-cvs] [ec09ded792c] master: Fix missing i18n context variable in UI py script.

Bastien Montagne noreply at git.blender.org
Thu Mar 3 09:11:32 CET 2022


Commit: ec09ded792cfbfd500353ff98b61f0ff6ed4ac6d
Author: Bastien Montagne
Date:   Thu Mar 3 08:57:06 2022 +0100
Branches: master
https://developer.blender.org/rBec09ded792cfbfd500353ff98b61f0ff6ed4ac6d

Fix missing i18n context variable in UI py script.

Mistake in own rBdb3f5ae48ac, thanks to Ethan-Hall (@Ethan1080) for the
heads up.

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index d6aea8e2d89..39269c95b31 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -1285,6 +1285,7 @@ class VIEW3D_MT_view_align_selected(Menu):
 
     def draw(self, _context):
         layout = self.layout
+        i18n_text_ctxt = bpy.app.translations.contexts_C_to_py['BLT_I18NCONTEXT_EDITOR_VIEW3D']
 
         props = layout.operator("view3d.view_axis", text="Top", text_ctxt=i18n_text_ctxt)
         props.align_active = True



More information about the Bf-blender-cvs mailing list