UI: remove redundant RNA_TYPE property in the key-map editor

This commit is contained in:
Campbell Barton 2019-06-17 09:08:17 +10:00
parent e85635b882
commit 12da679fa0
Notes: blender-bot 2023-02-14 06:27:47 +01:00
Referenced by issue #65986, Set Origin to center of mass has to be performed several times
Referenced by issue #65927, Cycles denoise tile display on Windows 10 after recent change
Referenced by issue #65894, Extrude missing underside face
Referenced by issue #65886, Crash when deleting a scene when "New Main Window" is open
Referenced by issue #65120, Cycles crashes while rendering animation in video file
3 changed files with 13 additions and 1 deletions

View File

@ -236,6 +236,7 @@ ForEachMacros:
- RNA_BEGIN
- RNA_PROP_BEGIN
- RNA_STRUCT_BEGIN
- RNA_STRUCT_BEGIN_SKIP_RNA_TYPE
- SEQP_BEGIN
- SEQ_BEGIN
- foreach

View File

@ -6450,7 +6450,7 @@ static void template_keymap_item_properties(uiLayout *layout, const char *title,
flow = uiLayoutColumnFlow(layout, 2, false);
RNA_STRUCT_BEGIN (ptr, prop) {
RNA_STRUCT_BEGIN_SKIP_RNA_TYPE (ptr, prop) {
const bool is_set = RNA_property_is_set(ptr, prop);
uiBut *but;

View File

@ -1264,6 +1264,17 @@ void RNA_collection_clear(PointerRNA *ptr, const char *name);
RNA_property_collection_next(&rna_macro_iter)) { \
PropertyRNA *prop = (PropertyRNA *)rna_macro_iter.ptr.data;
#define RNA_STRUCT_BEGIN_SKIP_RNA_TYPE(sptr, prop) \
{ \
CollectionPropertyIterator rna_macro_iter; \
RNA_property_collection_begin( \
sptr, RNA_struct_iterator_property((sptr)->type), &rna_macro_iter); \
if (rna_macro_iter.valid) { \
RNA_property_collection_next(&rna_macro_iter); \
} \
for (; rna_macro_iter.valid; RNA_property_collection_next(&rna_macro_iter)) { \
PropertyRNA *prop = (PropertyRNA *)rna_macro_iter.ptr.data;
#define RNA_STRUCT_END \
} \
RNA_property_collection_end(&rna_macro_iter); \