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:
committed by
Pratik Borhade
parent
b183a1cd12
commit
1020a7f6ee
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user