From a5578351c38e2b2bb45d940a2fc57354e5fe3a5e Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Mon, 14 Mar 2022 16:54:46 +0100 Subject: Auto-generate RNA-structs declarations in `RNA_prototypes.h` So far it was needed to declare a new RNA struct to `RNA_access.h` manually. Since 9b298cf3dbec we generate a `RNA_prototypes.h` for RNA property declarations. Now this also includes the RNA struct declarations, so they don't have to be added manually anymore. Differential Revision: https://developer.blender.org/D13862 Reviewed by: brecht, campbellbarton --- source/blender/compositor/CMakeLists.txt | 4 ++++ source/blender/compositor/intern/COM_Node.cc | 1 + 2 files changed, 5 insertions(+) (limited to 'source/blender/compositor') diff --git a/source/blender/compositor/CMakeLists.txt b/source/blender/compositor/CMakeLists.txt index 8263547ccb3..66f813e02b2 100644 --- a/source/blender/compositor/CMakeLists.txt +++ b/source/blender/compositor/CMakeLists.txt @@ -26,6 +26,8 @@ set(INC # dna_type_offsets.h ${CMAKE_CURRENT_BINARY_DIR}/../makesdna/intern + # RNA_prototypes.h + ${CMAKE_BINARY_DIR}/source/blender/makesrna ) set(INC_SYS @@ -666,3 +668,5 @@ endif() # Needed so we can use dna_type_offsets.h for defaults initialization. add_dependencies(bf_compositor bf_dna) +# RNA_prototypes.h +add_dependencies(bf_compositor bf_rna) diff --git a/source/blender/compositor/intern/COM_Node.cc b/source/blender/compositor/intern/COM_Node.cc index 9f2fb8552f6..a71c7868518 100644 --- a/source/blender/compositor/intern/COM_Node.cc +++ b/source/blender/compositor/intern/COM_Node.cc @@ -4,6 +4,7 @@ #include "BKE_node.h" #include "RNA_access.h" +#include "RNA_prototypes.h" #include "COM_Node.h" /* own include */ -- cgit v1.2.3