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

Merged
Pratik Borhade merged 1 commits from PratikPB2123/blender:115704-transfer-mode into main 2023-12-04 13:06:06 +01:00
1 changed files with 3 additions and 1 deletions

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",