50#include "RNA_prototypes.hh"
92 item_tmp.identifier = item_tmp.name =
"All Collections";
101 item_tmp.identifier = item_tmp.name = collection->
id.
name + 2;
119 const int collection_object_index)
124 if (i == collection_object_index) {
140 bmain, scene, ob, single_collection_index);
141 bool is_cycle =
false;
142 bool changed_multi =
false;
150 if (single_collection && collection != single_collection) {
157 bool changed =
false;
175 changed_multi =
true;
184 if (!changed_multi) {
199 ot->
name =
"Add Selected to Active Object's Collection";
201 "Add selected objects to one of the collections the active-object is part of. "
202 "Optionally add to \"All Collections\" to ensure selected objects are included in "
203 "the same collections as the active object";
204 ot->
idname =
"COLLECTION_OT_objects_add_active";
220 "The collection to add other selected objects to");
235 bmain, scene, ob, single_collection_index);
236 bool changed_multi =
false;
245 if (single_collection && collection != single_collection) {
251 bool changed =
false;
260 changed_multi =
true;
266 if (!changed_multi) {
281 ot->
name =
"Remove Selected from Active Collection";
282 ot->
description =
"Remove the object from an object collection that contains the active object";
283 ot->
idname =
"COLLECTION_OT_objects_remove_active";
299 "The collection to remove other selected objects from");
324 ot->
name =
"Remove from All Collections";
325 ot->
description =
"Remove selected objects from all collections";
326 ot->
idname =
"COLLECTION_OT_objects_remove_all";
343 bmain, scene, ob, single_collection_index);
344 bool changed_multi =
false;
351 if (single_collection && collection != single_collection) {
359 bool changed =
false;
368 changed_multi =
true;
373 if (!changed_multi) {
388 ot->
name =
"Remove from Collection";
389 ot->
description =
"Remove selected objects from a collection";
390 ot->
idname =
"COLLECTION_OT_objects_remove";
406 "The collection to remove this object from");
416 bool changed =
false;
442 ot->
name =
"Create New Collection";
443 ot->
description =
"Create an object collection from selected objects";
444 ot->
idname =
"COLLECTION_OT_create";
460 reason =
N_(
"Could not find an active collection");
467 reason =
N_(
"Collection needs to be empty");
506 const std::optional<StringRefNull> filepath = import_properties ?
510 if (!filepath.has_value() || filepath->is_empty()) {
529 const bool do_undo_push,
544 if (collection && collection->
importer) {
574 "Could not add an importer to the active collection '%s'",
602 if (!filepath.empty()) {
654 ot->
name =
"Add Importer";
656 ot->
idname =
"COLLECTION_OT_importer_add";
670 ot->
srna,
"filepath",
nullptr,
FILE_MAX,
"Filepath",
"Filepath for the collection import");
678 "'Glob' file type extension(s), as defined by the selected file handler");
684 "Select the file relative to the blend file");
695 if (id_iter.lib == external_archive_lib) {
696 ids_to_delete.
add(&id_iter);
700 ids_to_delete.
add(&external_archive_lib->
id);
719 Library *external_archive_lib =
data->runtime->archive_library;
720 if (external_archive_lib) {
742 ot->
name =
"Remove Importer";
743 ot->
description =
"Remove Collection Importer and delete its imported data";
744 ot->
idname =
"COLLECTION_OT_importer_remove";
786 if (!filepath_abs[0]) {
806 if (
data->runtime->archive_library) {
809 "Collection '%s' has already been imported from '%s'",
853 if (temp_main->
objects.is_empty()) {
861 Library *external_lib =
nullptr;
901 bmain, scene, view_layer, collection, op->
reports);
905 data->runtime->archive_library = external_archive_lib;
939 ot->
idname =
"COLLECTION_OT_importer_import";
957 Library *external_archive_lib =
data->runtime->archive_library;
958 if (!external_archive_lib) {
968 data->runtime->archive_library =
nullptr;
978 ot->
name =
"Clear Importer";
980 ot->
idname =
"COLLECTION_OT_importer_clear";
999 Library *external_archive_lib =
data->runtime->archive_library;
1000 if (external_archive_lib) {
1028 ot->
name =
"Make Importer Local";
1030 ot->
idname =
"COLLECTION_OT_importer_make_local";
1040 return collection !=
nullptr &&
1094 ot->
name =
"Add Exporter";
1095 ot->
description =
"Add exporter to the exporter list";
1096 ot->
idname =
"COLLECTION_OT_exporter_add";
1111 ListBaseT<CollectionExport> *exporters = &collection->
exporters;
1133 ot->
name =
"Remove Exporter";
1134 ot->
description =
"Remove exporter from the exporter list";
1135 ot->
idname =
"COLLECTION_OT_exporter_remove";
1154 const int to = from + dir;
1167 {-1,
"UP", 0,
"Up",
""},
1168 {1,
"DOWN", 0,
"Down",
""},
1169 {0,
nullptr, 0,
nullptr,
nullptr},
1173 ot->
name =
"Move Exporter";
1174 ot->
description =
"Move exporter up or down in the exporter list";
1175 ot->
idname =
"COLLECTION_OT_exporter_move";
1189 "Direction to move the active exporter");
1196 const bool report_success)
1215 const char *collection_name = collection->
id.
name + 2;
1267 ListBaseT<CollectionExport> *exporters = &collection->
exporters;
1281 ot->
name =
"Export";
1283 ot->
idname =
"COLLECTION_OT_exporter_export";
1305 ListBaseT<CollectionExport> *exporters = &collection->
exporters;
1334 "Exported %d files from collection '%s'",
1336 collection->
id.
name + 2);
1345 ot->
name =
"Export All";
1346 ot->
description =
"Invoke all configured exporters on this collection";
1347 ot->
idname =
"COLLECTION_OT_export_all";
1400 "Exported %d files from %d collections",
1411 ot->
name =
"Export All Collections";
1412 ot->
description =
"Invoke all configured exporters for all collections";
1413 ot->
idname =
"WM_OT_collection_export_all";
1429 bool at_least_one =
false;
1433 "COLLECTION_OT_importer_add", fh->label_with_extensions(), ICON_NONE);
1435 at_least_one =
true;
1439 if (!at_least_one) {
1440 layout.
label(
IFACE_(
"No file handlers available"), ICON_NONE);
1447 layout.
op(
"COLLECTION_OT_importer_make_local",
IFACE_(
"Apply and Make Local"), ICON_CHECKMARK);
1448 layout.
op(
"COLLECTION_OT_importer_clear",
IFACE_(
"Delete Collection Content"), ICON_NONE);
1450 layout.
op(
"COLLECTION_OT_importer_remove",
IFACE_(
"Remove Importer"), ICON_TRASH);
1458 bool at_least_one =
false;
1462 "COLLECTION_OT_exporter_add", fh->label_with_extensions(), ICON_NONE);
1464 at_least_one =
true;
1468 if (!at_least_one) {
1469 layout.
label(
IFACE_(
"No file handlers available"), ICON_NONE);
1498 "Clear and reload the importer data",
1527 if (ob ==
nullptr) {
1546 ot->
name =
"Add to Collection";
1547 ot->
idname =
"OBJECT_OT_collection_add";
1548 ot->
description =
"Add an object to a new collection";
1565 if (
ELEM(
nullptr, ob, collection)) {
1580 op->
reports,
RPT_ERROR,
"Cannot add objects to the collection. %s", reason.c_str());
1592 "Could not add the collection because of dependency cycle detected");
1611 ot->
name =
"Link to Collection";
1612 ot->
idname =
"OBJECT_OT_collection_link";
1613 ot->
description =
"Add an object to an existing collection";
1637 if (!ob || !collection) {
1644 op->
reports,
RPT_ERROR,
"Cannot remove an object from the collection. %s", reason.c_str());
1661 ot->
name =
"Remove Collection";
1662 ot->
idname =
"OBJECT_OT_collection_remove";
1663 ot->
description =
"Remove the active object from this collection";
1690 "Cannot unlink a library override collection which is not the root of its override "
1727 ot->
name =
"Unlink Collection";
1728 ot->
idname =
"OBJECT_OT_collection_unlink";
1729 ot->
description =
"Unlink the collection from all objects";
1768 ot->
name =
"Select Objects in Collection";
1769 ot->
idname =
"OBJECT_OT_collection_objects_select";
1770 ot->
description =
"Select all objects in collection";
#define FOREACH_COLLECTION_BEGIN(_bmain, _scene, Type, _instance)
#define FOREACH_COLLECTION_END
#define CTX_DATA_BEGIN(C, Type, instance, member)
#define FH_MAX_FILE_EXTENSIONS_STR
General operations, lookup, etc. for blender objects.
#define BLI_path_join(...)
#define STRNCPY_UTF8(dst, src)
external readfile function prototypes.
#define ID_IS_LINKED(_id)
#define ID_IS_OVERRIDE_LIBRARY(_id)
Object groups, one object can be in many groups at once.
Object is a sort of wrapper for general info.
#define ND_SPACE_PROPERTIES
#define ND_SPACE_OUTLINER
std::unique_ptr< IDProperty, IDPropertyDeleter > create(StringRef prop_name, int32_t value, eIDPropertyFlag flags={})
Allocate a new IDProperty of type IDP_INT, set its name and value.
std::unique_ptr< IDProperty, IDPropertyDeleter > create_group(StringRef prop_name, eIDPropertyFlag flags={})
Allocate a new IDProperty of type IDP_GROUP.
Library * create_external_archive_library(Main &bmain, Library &external_library)
FileHandlerType * file_handler_find(StringRef idname)
Span< std::unique_ptr< FileHandlerType > > file_handlers()
static wmOperatorStatus collection_objects_remove_exec(bContext *C, wmOperator *op)
void collection_importer_register()
static wmOperatorStatus collection_importer_import_exec(bContext *C, wmOperator *op)
static void COLLECTION_OT_exporter_add(wmOperatorType *ot)
static bool collection_unlink_poll(bContext *C)
static wmOperatorStatus collection_remove_exec(bContext *C, wmOperator *op)
static wmOperatorStatus objects_add_active_exec(bContext *C, wmOperator *op)
static void COLLECTION_OT_exporter_move(wmOperatorType *ot)
static void collection_importer_menu_draw(const bContext *, Menu *menu)
static wmOperatorStatus collection_export(bContext *C, wmOperator *op, Collection *collection, CollectionExportStats &stats)
static bool collection_export_all_poll(bContext *C)
static void collection_importer_add_tag_update(bContext *C, Collection &collection)
static void COLLECTION_OT_exporter_remove(wmOperatorType *ot)
static wmOperatorStatus collection_exporter_remove_exec(bContext *C, wmOperator *op)
static wmOperatorStatus collection_unlink_exec(bContext *C, wmOperator *op)
static wmOperatorStatus collection_importer_add_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static void COLLECTION_OT_export_all(wmOperatorType *ot)
static void COLLECTION_OT_importer_clear(wmOperatorType *ot)
static wmOperatorStatus collection_objects_remove_all_exec(bContext *C, wmOperator *)
void collection_importer_macros_register()
static bool collection_exporter_common_check(const Collection *collection)
static wmOperatorStatus collection_add_exec(bContext *C, wmOperator *)
static wmOperatorStatus select_grouped_exec(bContext *C, wmOperator *)
static wmOperatorStatus collection_exporter_export_exec(bContext *C, wmOperator *op)
void OBJECT_OT_collection_objects_select(wmOperatorType *ot)
void base_select(Base *base, eObjectSelect_Mode mode)
void OBJECT_OT_collection_link(wmOperatorType *ot)
static void COLLECTION_OT_importer_import(wmOperatorType *ot)
static bool collection_importer_add_collection_validate(const Collection *collection, std::string &reason)
Object * context_object(const bContext *C)
static wmOperatorStatus collection_importer_clear_exec(bContext *C, wmOperator *)
static wmOperatorStatus collection_importer_make_local_exec(bContext *C, wmOperator *)
static bool collection_exporter_poll(bContext *C)
static void collection_importer_control_menu_draw(const bContext *, Menu *menu)
static bool collection_importer_add_poll(bContext *C)
static void COLLECTION_OT_importer_remove(wmOperatorType *ot)
static Collection * collection_object_active_find_index(Main *bmain, Scene *scene, Object *ob, const int collection_object_index)
static bool collection_importer_remove_poll(bContext *C)
static wmOperatorStatus collection_importer_add_exec(bContext *C, wmOperator *op)
static void WM_OT_collection_export_all(wmOperatorType *ot)
static void COLLECTION_OT_importer_make_local(wmOperatorType *ot)
static bool collection_importer_import_poll(bContext *C)
void OBJECT_OT_collection_add(wmOperatorType *ot)
static const EnumPropertyItem * collection_object_active_itemf(bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
static wmOperatorStatus objects_remove_active_exec(bContext *C, wmOperator *op)
static wmOperatorStatus collection_exporter_export(bContext *C, wmOperator *op, CollectionExport *data, Collection *collection, const bool report_success)
static void collection_exporter_menu_draw(const bContext *, Menu *menu)
static wmOperatorStatus collection_io_export_all_exec(bContext *C, wmOperator *op)
static wmOperatorStatus collection_importer_remove_exec(bContext *C, wmOperator *)
static bool collection_exporter_remove_poll(bContext *C)
void COLLECTION_OT_create(wmOperatorType *ot)
static wmOperatorStatus collection_link_exec(bContext *C, wmOperator *op)
static Collection * collection_importer_add_ensure(bContext *C, wmOperator *op, const bool do_undo_push, bke::FileHandlerType **r_fh)
static wmOperatorStatus collection_exporter_add_exec(bContext *C, wmOperator *op)
void OBJECT_OT_collection_unlink(wmOperatorType *ot)
static void collection_importer_clear_ids(Main *bmain, Library *external_archive_lib)
static wmOperatorStatus collection_exporter_move_exec(bContext *C, wmOperator *op)
void OBJECT_OT_collection_remove(wmOperatorType *ot)
static wmOperatorStatus collection_export_recursive(bContext *C, wmOperator *op, LayerCollection *layer_collection, CollectionExportStats &stats)
static wmOperatorStatus collection_create_exec(bContext *C, wmOperator *op)
void COLLECTION_OT_objects_add_active(wmOperatorType *ot)
void COLLECTION_OT_objects_remove_all(wmOperatorType *ot)
static wmOperatorStatus wm_collection_export_all_exec(bContext *C, wmOperator *op)
void COLLECTION_OT_objects_remove_active(wmOperatorType *ot)
static void COLLECTION_OT_exporter_export(wmOperatorType *ot)
void COLLECTION_OT_objects_remove(wmOperatorType *ot)
void collection_exporter_register()
static void COLLECTION_OT_importer_add(wmOperatorType *ot)
std::string filename(const std::string_view &str, size_t pos)
int icon_color_from_collection(const Collection *collection)
void WM_main_add_notifier(uint type, void *reference)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
wmOperatorStatus WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
int RNA_enum_get(PointerRNA *ptr, const char *name)
void IDP_ReplaceInGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL()
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void BKE_id_delete(Main *bmain, void *idv, const BKEIDDeleteOptions &options={}) ATTR_NONNULL()
bool BLI_path_abs(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1
wmOperatorStatus WM_operator_filesel(bContext *C, wmOperator *op, const wmEvent *)
void BKE_reports_free(ReportList *reports)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
IDProperty * IDP_CopyProperty(const IDProperty *prop) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BKE_reports_init(ReportList *reports, int flag)
void CTX_wm_window_set(bContext *C, wmWindow *win)
const char * BLI_path_extension(const char *filepath) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
const EnumPropertyItem * RNA_collection_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
wmOperatorTypeMacro * WM_operatortype_macro_define(wmOperatorType *ot, const char *idname)
int RNA_int_get(PointerRNA *ptr, const char *name)
wmOperatorStatus WM_operator_call_notest(bContext *C, wmOperator *op)
wmWindow * CTX_wm_window(const bContext *C)
void BKE_reports_move_to_reports(ReportList *reports_dst, ReportList *reports_src)
void BKE_collection_importer_free_data(CollectionImport *data)
const char * BKE_id_name(const ID &id)
std::optional< StringRefNull > IDP_group_lookup_string(const IDProperty &group, StringRef name)
void id_fake_user_set(ID *id)
CollectionImport * BKE_collection_importer_add(Collection *collection, const char *idname)
void BKE_view_layer_need_resync_tag(ViewLayer *view_layer)
ViewLayer * CTX_data_view_layer(const bContext *C)
bool BKE_collection_exporter_move(Collection *collection, const int from, const int to)
bool BKE_collection_has_object(Collection *collection, const Object *ob)
const char * BKE_main_blendfile_path(const Main *bmain) ATTR_NONNULL()
Collection * BKE_collection_object_find(Main *bmain, Scene *scene, Collection *collection, Object *ob)
void void void const char * BLI_path_basename(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void CTX_wm_operator_poll_msg_set(bContext *C, const char *msg)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void BKE_object_groups_clear(Main *bmain, Scene *scene, Object *object)
void BKE_blendfile_link_append_instantiate_loose_from_bmain(Main *bmain, Scene *scene, ViewLayer *view_layer, Collection *target_collection, ReportList *reports)
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
@ LAYER_COLLECTION_EXCLUDE
wmWindowManager * CTX_wm_manager(const bContext *C)
void ED_undo_push(bContext *C, const char *str, UndoEncodeHints hints=UndoEncodeHints(0))
bool BKE_collection_is_empty(const Collection *collection)
bool BKE_collection_object_cyclic_check(Main *bmain, Object *object, Collection *collection)
void RNA_def_property_subtype(PropertyRNA *prop, PropertySubType subtype)
CollectionExport * BKE_collection_exporter_add(Collection *collection, char *idname, char *label)
void CTX_free(bContext *C)
bool void BLI_path_rel(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1)
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
bool BKE_collection_object_add(Main *bmain, Collection *collection, Object *ob)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
void BKE_main_merge_as_archive_library(Main &bmain_dst, Main *&r_bmain_src, Library &dst_external_library, MainMergeReport &reports)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
@ LIBRARY_FLAG_IS_EXTERNAL
const EnumPropertyItem rna_enum_dummy_NULL_items[]
void BKE_main_id_tag_all(Main *mainvar, int tag, bool value)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
void BKE_main_free(Main *bmain)
void BKE_library_filepath_set(Main *bmain, Library *lib, const char *filepath)
void id_us_ensure_real(ID *id)
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
wmOperatorType * WM_operatortype_append_macro(const char *idname, const char *name, const char *description, int flag)
bool ED_operator_objectmode(bContext *C)
bool BKE_collection_is_content_editable(const Collection *collection, std::string *reason=nullptr)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
wmOperatorStatus WM_operator_type_call_ptr_with_reports(bContext *C, wmOperatorType *ot, wm::OpCallContext context, PointerRNA *properties, ReportList *reports, const wmEvent *event)
bool BKE_collection_object_remove(Main *bmain, Collection *collection, Object *ob, bool free_us)
Main * CTX_data_main(const bContext *C)
void RNA_enum_item_add_separator(EnumPropertyItem **items, int *totitem)
void IDP_FreeProperty(IDProperty *prop)
void BKE_collection_exporter_remove(Collection *collection, CollectionExport *data)
bool WM_menutype_add(MenuType *mt)
wmOperatorStatus WM_operator_name_call_ptr(bContext *C, wmOperatorType *ot, wm::OpCallContext context, PointerRNA *properties, const wmEvent *event)
void CTX_wm_manager_set(bContext *C, wmWindowManager *wm)
wmOperatorStatus WM_enum_search_invoke(bContext *C, wmOperator *op, const wmEvent *)
void DEG_relations_tag_update(Main *bmain)
Scene * CTX_data_scene(const bContext *C)
void CTX_data_main_set(bContext *C, Main *bmain)
bool BKE_collection_has_object_recursive(Collection *collection, Object *ob)
std::string RNA_string_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void CTX_data_ui_context_access_deny(bContext *C, bool deny)
@ RPT_PRINT_HANDLED_BY_OWNER
size_t BKE_id_multi_delete(Main *bmain, Set< ID * > &ids_to_delete, const BKEIDDeleteOptions &options={})
void * BKE_id_new(Main *bmain, short type, const char *name)
PointerRNA CTX_data_pointer_get_type(const bContext *C, const char *member, StructRNA *type)
void CTX_data_scene_set(bContext *C, Scene *scene)
void BKE_library_make_local(Main *bmain, const Library *lib, GHash *old_to_new_ids, bool untagged_only, bool set_fake, bool clear_asset_data)
Collection * CTX_data_collection(const bContext *C)
Collection * BKE_collection_add(Main *bmain, Collection *collection_parent, const char *name_custom)
IDProperty * import_properties
ListBaseT< CollectionExport > exporters
int active_exporter_index
CollectionImport * importer
struct ID * hierarchy_root
IDOverrideLibrary * override_library
eLayerCollection_Flag flag
struct Collection * collection
ListBaseT< LayerCollection > layer_collections
struct Library * archive_parent_library
bke::library::LibraryRuntime * runtime
ListBaseT< Collection > collections
ListBaseT< Library > libraries
ListBaseT< Object > objects
ListBaseT< LayerCollection > layer_collections
std::string get_default_filename(StringRefNull name)
char label[OP_MAX_TYPENAME]
char idname[OP_MAX_TYPENAME]
char export_operator[OP_MAX_TYPENAME]
char import_operator[OP_MAX_TYPENAME]
std::optional< std::string > filter_glob_from_extensions() const
Vector< Library * > archived_libraries
int successful_exports_num
void label(StringRef name, int icon)
PointerRNA op(wmOperatorType *ot, std::optional< StringRef > name, int icon, wm::OpCallContext context, eUI_Item_Flag flag)
void separator(float factor=1.0f, LayoutSeparatorType type=LayoutSeparatorType::Auto)
IDProperty * last_properties
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports
struct wmOperatorType * type