diff options
author | Julian Eisel <julian@blender.org> | 2022-03-14 18:54:46 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-03-14 19:08:46 +0300 |
commit | a5578351c38e2b2bb45d940a2fc57354e5fe3a5e (patch) | |
tree | 3d6b5d275f27f6b549772586c2e3af59ea728a1d /source/blender/editors/asset | |
parent | cc98b40f870c39a997cf99412b308b8a0e82ed44 (diff) |
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
Diffstat (limited to 'source/blender/editors/asset')
-rw-r--r-- | source/blender/editors/asset/CMakeLists.txt | 5 | ||||
-rw-r--r-- | source/blender/editors/asset/intern/asset_mark_clear.cc | 1 | ||||
-rw-r--r-- | source/blender/editors/asset/intern/asset_ops.cc | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/asset/CMakeLists.txt b/source/blender/editors/asset/CMakeLists.txt index 1b0d49039ed..5feb528b6bb 100644 --- a/source/blender/editors/asset/CMakeLists.txt +++ b/source/blender/editors/asset/CMakeLists.txt @@ -12,6 +12,8 @@ set(INC ../../windowmanager ../../../../intern/clog ../../../../intern/guardedalloc + # RNA_prototypes.h + ${CMAKE_BINARY_DIR}/source/blender/makesrna ) set(INC_SYS @@ -50,3 +52,6 @@ set(LIB ) blender_add_lib(bf_editor_asset "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") + +# RNA_prototypes.h +add_dependencies(bf_editor_asset bf_rna) diff --git a/source/blender/editors/asset/intern/asset_mark_clear.cc b/source/blender/editors/asset/intern/asset_mark_clear.cc index 785676f1143..276b2f9a2f6 100644 --- a/source/blender/editors/asset/intern/asset_mark_clear.cc +++ b/source/blender/editors/asset/intern/asset_mark_clear.cc @@ -18,6 +18,7 @@ #include "UI_interface_icons.h" #include "RNA_access.h" +#include "RNA_prototypes.h" #include "ED_asset_list.h" #include "ED_asset_mark_clear.h" diff --git a/source/blender/editors/asset/intern/asset_ops.cc b/source/blender/editors/asset/intern/asset_ops.cc index f0768ebc907..619a873909a 100644 --- a/source/blender/editors/asset/intern/asset_ops.cc +++ b/source/blender/editors/asset/intern/asset_ops.cc @@ -29,6 +29,7 @@ #include "RNA_access.h" #include "RNA_define.h" +#include "RNA_prototypes.h" #include "WM_api.h" |