Skip to content

Commit

Permalink
Cleanup: Remove unused argument in Cycles sync
Browse files Browse the repository at this point in the history
Makes it easier to see where exactly the viewport is used.
  • Loading branch information
sergeyvfx committed May 26, 2021
1 parent 09e77f9 commit 1e6b028
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions intern/cycles/blender/blender_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ void BlenderSync::sync_data(BL::RenderSettings &b_render,

BL::ViewLayer b_view_layer = b_depsgraph.view_layer_eval();

sync_view_layer(b_v3d, b_view_layer);
sync_view_layer(b_view_layer);
sync_integrator();
sync_film(b_v3d);
sync_shaders(b_depsgraph, b_v3d);
Expand Down Expand Up @@ -441,7 +441,7 @@ void BlenderSync::sync_film(BL::SpaceView3D &b_v3d)

/* Render Layer */

void BlenderSync::sync_view_layer(BL::SpaceView3D & /*b_v3d*/, BL::ViewLayer &b_view_layer)
void BlenderSync::sync_view_layer(BL::ViewLayer &b_view_layer)
{
view_layer.name = b_view_layer.name();

Expand Down
2 changes: 1 addition & 1 deletion intern/cycles/blender/blender_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class BlenderSync {
int width,
int height,
void **python_thread_state);
void sync_view_layer(BL::SpaceView3D &b_v3d, BL::ViewLayer &b_view_layer);
void sync_view_layer(BL::ViewLayer &b_view_layer);
vector<Pass> sync_render_passes(BL::Scene &b_scene,
BL::RenderLayer &b_render_layer,
BL::ViewLayer &b_view_layer,
Expand Down

0 comments on commit 1e6b028

Please sign in to comment.