From a7c660fe615030b41128a20e0bd2676ff4c2a196 Mon Sep 17 00:00:00 2001 From: Ray Molenkamp Date: Tue, 17 Mar 2020 13:45:35 -0600 Subject: 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 --- source/blender/nodes/composite/nodes/node_composite_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/nodes') 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 -- cgit v1.2.3