Fix: Overlay-Next: Null batch dereference
This commit is contained in:
@@ -176,6 +176,7 @@ class Outline : Overlay {
|
||||
break;
|
||||
case OB_VOLUME:
|
||||
geom = DRW_cache_volume_selection_surface_get(ob_ref.object);
|
||||
/* TODO(fclem): Get rid of these check and enforce correct API on the batch cache. */
|
||||
if (geom) {
|
||||
prepass_volume_ps_->draw(geom, manager.unique_handle(ob_ref));
|
||||
}
|
||||
|
||||
@@ -201,6 +201,10 @@ class Prepass : Overlay {
|
||||
}
|
||||
geom_single = DRW_cache_volume_selection_surface_get(ob_ref.object);
|
||||
pass = mesh_ps_;
|
||||
/* TODO(fclem): Get rid of these check and enforce correct API on the batch cache. */
|
||||
if (geom_single == nullptr) {
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case OB_POINTCLOUD:
|
||||
geom_single = point_cloud_sub_pass_setup(*point_cloud_ps_, ob_ref.object);
|
||||
|
||||
Reference in New Issue
Block a user