[Bf-blender-cvs] [a6f275cad32] master: Fix T88808: Set Origin missing from Text object in 2.93

Pratik Borhade noreply at git.blender.org
Wed Jun 23 11:15:53 CEST 2021


Commit: a6f275cad32e9566a9028318c21b70c2a9ece66d
Author: Pratik Borhade
Date:   Wed Jun 23 11:08:01 2021 +0200
Branches: master
https://developer.blender.org/rBa6f275cad32e9566a9028318c21b70c2a9ece66d

Fix T88808: Set Origin missing from Text object in 2.93

Fix T88808.
Caused by {rB5f2c5e5bb8c15bf0d6679351e3482f9c38c00935}

object type for `TEXT object` was missing in following check
that's why `Set Origin` option was lost from object context menu.

Reviewed By: lichtwerk

Maniphest Tasks: T88808

Differential Revision: https://developer.blender.org/D11495

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

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 bc66725b7fd..80cede9ee5a 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -2530,7 +2530,7 @@ class VIEW3D_MT_object_context_menu(Menu):
                 layout.operator_menu_enum("gpencil.convert", "type", text="Convert To")
 
             if (
-                    obj.type in {'MESH', 'CURVE', 'SURFACE', 'GPENCIL', 'LATTICE', 'ARMATURE', 'META'} or
+                    obj.type in {'MESH', 'CURVE', 'SURFACE', 'GPENCIL', 'LATTICE', 'ARMATURE', 'META', 'FONT'} or
                     (obj.type == 'EMPTY' and obj.instance_collection is not None)
             ):
                 layout.operator_context = 'INVOKE_REGION_WIN'



More information about the Bf-blender-cvs mailing list