diff options
author | Ray Molenkamp <github@lazydodo.com> | 2020-03-17 22:45:35 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2020-03-17 22:45:35 +0300 |
commit | a7c660fe615030b41128a20e0bd2676ff4c2a196 (patch) | |
tree | 5064f2ed558e23f17b4ad1eaec694ede7e5a54a6 /source/blender/render/intern | |
parent | e09f0caff32e61095c3349daa394e1a45b18a893 (diff) |
Cleanup: Fix warnings about function signature of register pass
RE_engine_register_pass is sometimes in the headers with type
as an integer parameter, sometimes as eNodeSocketDatatype.
This caused warnings, the root cause was makesrna was not able
to generate the proper type for enums and defaulted to int.
makesrna has been extended with the RNA_def_property_enum_native_type
that allows telling makesrna the native type of an enum, if set it
will be used otherwise it will still fall back to int.
Differential Revision: https://developer.blender.org/D7117
Reviewed By: brecht
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r-- | source/blender/render/intern/source/render_result.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/render_result.c b/source/blender/render/intern/source/render_result.c index 4e20dd51122..0f39073c693 100644 --- a/source/blender/render/intern/source/render_result.c +++ b/source/blender/render/intern/source/render_result.c @@ -1206,7 +1206,7 @@ static void templates_register_pass_cb(void *userdata, const char *name, int channels, const char *chan_id, - int UNUSED(type)) + eNodeSocketDatatype UNUSED(type)) { ListBase *templates = userdata; RenderPass *pass = MEM_callocN(sizeof(RenderPass), "RenderPassTemplate"); |