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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user