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:
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.
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue