36 .reports = op->reports,
41 if (paths.is_empty()) {
46 for (
const std::string &path : paths) {
47 params.filepath = path;
66 ot->
name =
"Import SPZ";
67 ot->description =
"Import an SPZ file as a gaussian splat point cloud object";
68 ot->idname =
"WM_OT_spz_import";
71 ot->exec = wm_spz_import_exec;
72 ot->ui = wm_spz_import_draw;
85 prop =
RNA_def_string(ot->srna,
"filter_glob",
"*.spz", 0,
"Extension Filter",
"");
93 auto fh = std::make_unique<bke::FileHandlerType>();
#define STRNCPY_UTF8(dst, src)
void file_handler_add(std::unique_ptr< FileHandlerType > file_handler)
bool poll_file_object_drop(const bContext *C, bke::FileHandlerType *)
Vector< std::string > paths_from_operator_properties(PointerRNA *ptr)
wmOperatorStatus filesel_drop_import_invoke(bContext *C, wmOperator *op, const wmEvent *)
void spz_file_handler_add()
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 WM_operator_properties_filesel(wmOperatorType *ot, const int filter, const short type, const eFileSel_Action action, const eFileSel_Flag flag, const short display, const short sort)
void ED_outliner_select_sync_from_object_tag(bContext *C)
void BKE_report(ReportList *reports, eReportType type, const char *message)
void SPZ_import(bContext *C, const SPZImportParams *import_params)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
bool WM_operator_winactive(bContext *C)
void WM_OT_spz_import(wmOperatorType *ot)
Scene * CTX_data_scene(const bContext *C)