[Bf-blender-cvs] [9f258ea3131] cycles-x: Cycles X: Move pass mapping outside of the class
Sergey Sharybin
noreply at git.blender.org
Thu Jun 10 10:51:22 CEST 2021
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,
More information about the Bf-blender-cvs
mailing list