Fix #110166: Prevent ourliner editing generic labels.

When trying to rename a generic label in the outliner, like the "Object"
category name inside library override properties view, `do_item_rename`
will crash because it failed to gurad type `TSE_GENERIC_LABEL`.
Now fixed.

Pull Request: https://projects.blender.org/blender/blender/pulls/110188
This commit is contained in:
YimingWu
2023-07-17 04:47:27 +02:00
committed by YimingWu
parent 8191b152ec
commit a04da965f6

View File

@@ -328,7 +328,8 @@ static void do_item_rename(ARegion *region,
TSE_R_LAYER_BASE,
TSE_SCENE_COLLECTION_BASE,
TSE_VIEW_COLLECTION_BASE,
TSE_LIBRARY_OVERRIDE_BASE))
TSE_LIBRARY_OVERRIDE_BASE,
TSE_GENERIC_LABEL))
{
BKE_report(reports, RPT_WARNING, "Cannot edit builtin name");
}