diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-30 16:18:29 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-30 17:08:57 +0300 |
commit | 74c7707e8c763a60c2936e95c2f0ad13dfd33f43 (patch) | |
tree | 08dddce249a8821e54728355f32fea976d324ac1 /intern/cycles/blender/blender_texture.h | |
parent | 0e4e1993e619caad3dfbecc20ab9fb20cdf6cd06 (diff) |
Cycles: Pass Blender's C++ RNA structures by reference
This way we avoid passing structures which could be up to
few hundred bytes by value to the utility functions.
Ideally we'll also have to add `const` qualifier in majority
of the calls, but C++ RNA does not allow us to do that because
it does not know if some function modifies contents or not.
Diffstat (limited to 'intern/cycles/blender/blender_texture.h')
-rw-r--r-- | intern/cycles/blender/blender_texture.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/blender/blender_texture.h b/intern/cycles/blender/blender_texture.h index 017b78b67e3..ad96f9db8ed 100644 --- a/intern/cycles/blender/blender_texture.h +++ b/intern/cycles/blender/blender_texture.h @@ -22,8 +22,8 @@ CCL_NAMESPACE_BEGIN -void point_density_texture_space(BL::Scene b_scene, - BL::ShaderNodeTexPointDensity b_point_density_node, +void point_density_texture_space(BL::Scene& b_scene, + BL::ShaderNodeTexPointDensity& b_point_density_node, const int settings, float3& loc, float3& size); |