Fix #115704: Crash when using transfer mode on empty space

Caused by missing null check in a7ae024ea3

Pull Request: https://projects.blender.org/blender/blender/pulls/115753
This commit is contained in:
Pratik Borhade
2023-12-04 13:05:57 +01:00
committed by Pratik Borhade
parent b183a1cd12
commit 1020a7f6ee

View File

@@ -507,7 +507,9 @@ static int object_transfer_mode_invoke(bContext *C, wmOperator *op, const wmEven
Base *base_dst = ED_view3d_give_base_under_cursor(C, event->mval);
if (ID_IS_LINKED(base_dst->object) || ID_IS_OVERRIDE_LIBRARY(base_dst->object)) {
if ((base_dst != nullptr) &&
(ID_IS_LINKED(base_dst->object) || ID_IS_OVERRIDE_LIBRARY(base_dst->object)))
{
BKE_reportf(op->reports,
RPT_ERROR,
"Unable to execute, %s object is linked",