diff options
author | Julian Eisel <julian@blender.org> | 2022-03-14 18:39:42 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-03-14 18:50:49 +0300 |
commit | 9b298cf3dbec9e246748448cc635a5055fe90c19 (patch) | |
tree | c9fb6ddaf16bec463d9d4dd5a65a8c9d285afc8f /source/blender/editors/interface/interface_eyedropper_colorband.c | |
parent | cff6eb65804da3a06bde3c9152bec26e01a24992 (diff) |
RNA: Generate property declerations header, solving msg-bus C++ incompatibility
Lets `makesrna` generate a `RNA_prototypes.h` header with declarations for all
RNA properties. This can be included in regular source files when needing to
reference RNA properties statically.
This solves an issue on MSVC with adding such declarations in functions, like
we used to do. See 800fc1736748. Removes any such declarations and the related
FIXME comments.
Reviewed By: campbellbarton, LazyDodo, brecht
Differential Revision: https://developer.blender.org/D13837
Diffstat (limited to 'source/blender/editors/interface/interface_eyedropper_colorband.c')
-rw-r--r-- | source/blender/editors/interface/interface_eyedropper_colorband.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_eyedropper_colorband.c b/source/blender/editors/interface/interface_eyedropper_colorband.c index 8eb7dc24b83..a69c36fefbd 100644 --- a/source/blender/editors/interface/interface_eyedropper_colorband.c +++ b/source/blender/editors/interface/interface_eyedropper_colorband.c @@ -26,6 +26,7 @@ #include "BKE_context.h" #include "RNA_access.h" +#include "RNA_prototypes.h" #include "UI_interface.h" @@ -98,7 +99,6 @@ static bool eyedropper_colorband_init(bContext *C, wmOperator *op) band = ptr.data; /* Set this to a sub-member of the property to trigger an update. */ - extern PropertyRNA rna_ColorRamp_color_mode; rna_update_ptr = ptr; rna_update_prop = &rna_ColorRamp_color_mode; is_undo = RNA_struct_undo_check(ptr.type); |