Fix T95815: missing null check when computing dupli dimensions

Some instances might be "empty" and therefore have no dimensions.
Those should be ignored here.
This commit is contained in:
Jacques Lucke 2022-02-16 18:58:01 +01:00
parent 257ba175fa
commit 0622d2ec61
Notes: blender-bot 2023-02-14 03:34:17 +01:00
Referenced by issue #95815, Crash with nested linked objects and zoom to (numpad ".") function.
1 changed files with 1 additions and 1 deletions

View File

@ -4185,7 +4185,7 @@ bool BKE_object_minmax_dupli(Depsgraph *depsgraph,
ListBase *lb = object_duplilist(depsgraph, scene, ob);
LISTBASE_FOREACH (DupliObject *, dob, lb) {
if ((use_hidden == false) && (dob->no_draw != 0)) {
if (((use_hidden == false) && (dob->no_draw != 0)) || dob->ob_data == nullptr) {
/* pass */
}
else {