Add rating to object. #4

Merged
Jeroen Bakker merged 2 commits from my-change into main 2023-03-31 13:14:06 +02:00
Showing only changes of commit 7fc8e003a1 - Show all commits

View File

@ -3150,6 +3150,7 @@ static void rna_def_object(BlenderRNA *brna)
{1, "GOOD", 0, "Good", "I like this one"}, {1, "GOOD", 0, "Good", "I like this one"},
{0, NULL, 0, NULL, NULL}, {0, NULL, 0, NULL, NULL},
}; };
prop = RNA_def_property(srna, "rating", PROP_ENUM, PROP_NONE); prop = RNA_def_property(srna, "rating", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_items(prop, rating_items); RNA_def_property_enum_items(prop, rating_items);
RNA_def_property_ui_text(prop, "Rating", "Rating of the Object"); RNA_def_property_ui_text(prop, "Rating", "Rating of the Object");