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/nodes/composite | |
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/nodes/composite')
-rw-r--r-- | source/blender/nodes/composite/nodes/node_composite_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_image.c b/source/blender/nodes/composite/nodes/node_composite_image.c index 74f18c2e5ae..6b380bfb5af 100644 --- a/source/blender/nodes/composite/nodes/node_composite_image.c +++ b/source/blender/nodes/composite/nodes/node_composite_image.c @@ -283,7 +283,7 @@ static void cmp_node_rlayer_create_outputs_cb(void *UNUSED(userdata), const char *name, int UNUSED(channels), const char *UNUSED(chanid), - int type) + eNodeSocketDatatype type) { /* Register the pass in all scenes that have a render layer node for this layer. * Since multiple scenes can be used in the compositor, the code must loop over all scenes |