Commit: 9f258ea3131e360026a00717dbd21225eb187ed3 Author: Sergey Sharybin Date: Fri Jun 4 10:49:06 2021 +0200 Branches: cycles-x https://developer.blender.org/rB9f258ea3131e360026a00717dbd21225eb187ed3
Cycles X: Move pass mapping outside of the class No functional changes, just avoids use of class as a namespace, and allows to modify the logic and signature a bit easier. Differential Revision: https://developer.blender.org/D11551 =================================================================== M intern/cycles/blender/blender_sync.cpp M intern/cycles/blender/blender_sync.h =================================================================== diff --git a/intern/cycles/blender/blender_sync.cpp b/intern/cycles/blender/blender_sync.cpp index 15908c3329d..3d1a4eaac60 100644 --- a/intern/cycles/blender/blender_sync.cpp +++ b/intern/cycles/blender/blender_sync.cpp @@ -496,7 +496,7 @@ void BlenderSync::sync_images() } /* Passes */ -PassType BlenderSync::get_pass_type(BL::RenderPass &b_pass) +static PassType get_pass_type(BL::RenderPass &b_pass) { string name = b_pass.name(); #define MAP_PASS(passname, passtype) \ diff --git a/intern/cycles/blender/blender_sync.h b/intern/cycles/blender/blender_sync.h index bbfaa1764fd..40d289f5a69 100644 --- a/intern/cycles/blender/blender_sync.h +++ b/intern/cycles/blender/blender_sync.h @@ -102,8 +102,6 @@ class BlenderSync { static BufferParams get_buffer_params( BL::SpaceView3D &b_v3d, BL::RegionView3D &b_rv3d, Camera *cam, int width, int height); - static PassType get_pass_type(BL::RenderPass &b_pass); - private: static DenoiseParams get_denoise_params(BL::Scene &b_scene, BL::ViewLayer &b_view_layer, _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs