Workbench Next: Remove references to object id name

Avoid unsafe references to potentially temporary objects.
This commit is contained in:
Miguel Pozo
2023-06-29 18:29:52 +02:00
parent 0b13c9c5a6
commit e76fb44c58

View File

@@ -47,7 +47,7 @@ void VolumePass::object_sync_volume(Manager &manager,
active_ = true;
PassMain::Sub &sub_ps = ps_.sub(ob->id.name);
PassMain::Sub &sub_ps = ps_.sub("Volume Object SubPass");
const bool use_slice = (volume->display.axis_slice_method == AXIS_SLICE_SINGLE);
@@ -113,7 +113,7 @@ void VolumePass::object_sync_modifier(Manager &manager,
active_ = true;
PassMain::Sub &sub_ps = ps_.sub(ob->id.name);
PassMain::Sub &sub_ps = ps_.sub("Volume Modifier SubPass");
const bool use_slice = settings.axis_slice_method == AXIS_SLICE_SINGLE;