Workbench Next: Remove references to object id name
Avoid unsafe references to potentially temporary objects.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user