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
This commit is contained in:
Pratik Borhade 2021-06-23 11:08:01 +02:00 committed by Philipp Oeser
parent 82c17082ba
commit a6f275cad3
Notes: blender-bot 2024-04-11 14:26:06 +02:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #89396, Environment Pass does not work with "Persistent Data" turned on
Referenced by issue #88808, Set Origin missing from Text object in 2.93
1 changed files with 1 additions and 1 deletions

View File

@ -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'