Blender V5.3
info_ops.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2008 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include <cstring>
10#include <fmt/format.h>
11
12#include "DNA_space_types.h"
14
15#include "MEM_guardedalloc.h"
16
18
19#include "BLT_translation.hh"
20
21#include "BKE_bpath.hh"
22#include "BKE_context.hh"
23#include "BKE_global.hh"
24#include "BKE_image.hh"
25#include "BKE_lib_id.hh"
26#include "BKE_library.hh"
27#include "BKE_main.hh"
28#include "BKE_packedFile.hh"
29#include "BKE_report.hh"
30#include "BKE_screen.hh"
31
32#include "SEQ_relations.hh"
33
34#include "WM_api.hh"
35#include "WM_types.hh"
36
37#include "UI_interface.hh"
39
40#include "RNA_access.hh"
41#include "RNA_define.hh"
42
43#include "info_intern.hh"
44
45namespace blender {
46
47/* -------------------------------------------------------------------- */
50
59
61{
62 /* identifiers */
63 ot->name = "Pack Linked Libraries";
64 ot->idname = "FILE_OT_pack_libraries";
65 ot->description =
66 "Store all data-blocks linked from other .blend files in the current .blend file. "
67 "Library references are preserved so the linked data-blocks can be unpacked again";
68
69 /* API callbacks. */
71
72 /* flags */
74}
75
86
88
89/* -------------------------------------------------------------------- */
92
94 wmOperator *op,
95 const wmEvent * /*event*/)
96{
98 op,
99 IFACE_("Restore Packed Linked Data to Their Original Locations"),
100 IFACE_("Will create directories so that all paths are valid."),
101 IFACE_("Unpack"),
103 false);
104}
105
107{
108 /* identifiers */
109 ot->name = "Unpack Linked Libraries";
110 ot->idname = "FILE_OT_unpack_libraries";
111 ot->description = "Restore all packed linked data-blocks to their original locations";
112
113 /* API callbacks. */
116
117 /* flags */
119}
120
122
123/* -------------------------------------------------------------------- */
126
128{
129 Main *bmain = CTX_data_main(C);
130
131 if (G.fileflags & G_FILE_AUTOPACK) {
132 G.fileflags &= ~G_FILE_AUTOPACK;
133 }
134 else {
135 BKE_packedfile_pack_all(bmain, op->reports, true);
136 G.fileflags |= G_FILE_AUTOPACK;
137 }
138
139 return OPERATOR_FINISHED;
140}
141
143{
144 /* identifiers */
145 ot->name = "Automatically Pack Resources";
146 ot->idname = "FILE_OT_autopack_toggle";
147 ot->description = "Automatically pack all external files into the .blend file";
148
149 /* API callbacks. */
151
152 /* flags */
154}
155
157
158/* -------------------------------------------------------------------- */
161
163{
164 Main *bmain = CTX_data_main(C);
165
166 BKE_packedfile_pack_all(bmain, op->reports, true);
167
169
170 return OPERATOR_FINISHED;
171}
172
174{
175 Main *bmain = CTX_data_main(C);
176 Image *ima;
177
178 /* First check for dirty images. */
179 for (ima = bmain->images.first(); ima; ima = static_cast<Image *>(ima->id.next)) {
180 if (BKE_image_is_dirty(ima)) {
181 break;
182 }
183 }
184
185 if (ima) {
187 C,
188 op,
189 IFACE_("Pack all used external files into this .blend file"),
190 IFACE_("Warning: Some images are modified and these changes will be lost."),
191 IFACE_("Pack"),
193 false);
194 }
195
196 return pack_all_exec(C, op);
197}
198
200{
201 /* identifiers */
202 ot->name = "Pack Resources";
203 ot->idname = "FILE_OT_pack_all";
204 ot->description = "Pack all used external files into this .blend";
205
206 /* API callbacks. */
207 ot->exec = pack_all_exec;
209
210 /* flags */
212}
213
215
216/* -------------------------------------------------------------------- */
219
221 {PF_USE_LOCAL, "USE_LOCAL", 0, "Use files in current directory (create when necessary)", ""},
223 "WRITE_LOCAL",
224 0,
225 "Write files to current directory (overwrite existing files)",
226 ""},
228 "USE_ORIGINAL",
229 0,
230 "Use files in original location (create when necessary)",
231 ""},
233 "WRITE_ORIGINAL",
234 0,
235 "Write files to original location (overwrite existing files)",
236 ""},
237 {PF_KEEP, "KEEP", 0, "Disable auto-pack, keep all packed files", ""},
238 {PF_REMOVE, "REMOVE", 0, "Remove Pack", ""},
239 /* {PF_ASK, "ASK", 0, "Ask for each file", ""}, */
240 {0, nullptr, 0, nullptr, nullptr},
241};
242
244{
245 Main *bmain = CTX_data_main(C);
246 ePF_FileStatus method = ePF_FileStatus(RNA_enum_get(op->ptr, "method"));
247
248 if (method != PF_KEEP) {
249 WM_cursor_wait(true);
250 BKE_packedfile_unpack_all(bmain, op->reports, method); /* XXX PF_ASK can't work here */
251 WM_cursor_wait(false);
252 }
253 G.fileflags &= ~G_FILE_AUTOPACK;
255
256 return OPERATOR_FINISHED;
257}
258
260{
261 Main *bmain = CTX_data_main(C);
262
263 const PackedFileCount count = BKE_packedfile_count_all(bmain);
264
265 if (count.total() == 0) {
266 BKE_report(op->reports, RPT_WARNING, "No packed files to unpack");
267 G.fileflags &= ~G_FILE_AUTOPACK;
268 return OPERATOR_CANCELLED;
269 }
270
271 const std::string title = fmt::format(
272 fmt::runtime(IFACE_("Unpack - Files: {}, Bakes: {}")), count.individual_files, count.bakes);
273
274 ui::PopupMenu *pup = ui::popup_menu_begin(C, title.c_str(), ICON_NONE);
275 ui::Layout &layout = *popup_menu_layout(pup);
276
278 layout.op_enum("FILE_OT_unpack_all", "method");
279
280 popup_menu_end(C, pup);
281
282 return OPERATOR_INTERFACE;
283}
284
286{
287 /* identifiers */
288 ot->name = "Unpack Resources";
289 ot->idname = "FILE_OT_unpack_all";
290 ot->description = "Unpack all files packed into this .blend to external ones";
291
292 /* API callbacks. */
293 ot->exec = unpack_all_exec;
295
296 /* flags */
298
299 /* properties */
301 ot->srna, "method", unpack_all_method_items, PF_USE_LOCAL, "Method", "How to unpack");
302}
303
305
306/* -------------------------------------------------------------------- */
309
311 {PF_USE_LOCAL, "USE_LOCAL", 0, "Use file from current directory (create when necessary)", ""},
313 "WRITE_LOCAL",
314 0,
315 "Write file to current directory (overwrite existing file)",
316 ""},
318 "USE_ORIGINAL",
319 0,
320 "Use file in original location (create when necessary)",
321 ""},
323 "WRITE_ORIGINAL",
324 0,
325 "Write file to original location (overwrite existing file)",
326 ""},
327 /* {PF_ASK, "ASK", 0, "Ask for each file", ""}, */
328 {0, nullptr, 0, nullptr, nullptr},
329};
330
332{
333 Main *bmain = CTX_data_main(C);
334 ID *id;
335 char idname[MAX_ID_NAME - 2];
336 const short type = RNA_int_get(op->ptr, "id_type");
337 ePF_FileStatus method = ePF_FileStatus(RNA_enum_get(op->ptr, "method"));
338
339 /* Ideally this would be an enum, since it's not - use the list lookup as a type check. */
340 if (which_libbase(bmain, type) == nullptr) [[unlikely]] {
341 return OPERATOR_CANCELLED;
342 }
343
344 RNA_string_get(op->ptr, "id_name", idname);
345 id = BKE_libblock_find_name(bmain, type, idname);
346
347 if (id == nullptr) {
348 BKE_report(op->reports, RPT_WARNING, "No packed file");
349 return OPERATOR_CANCELLED;
350 }
351
352 if (!ID_IS_EDITABLE(id)) {
353 BKE_report(op->reports, RPT_WARNING, "Data-block using this packed file is not editable");
354 return OPERATOR_CANCELLED;
355 }
356
357 if (method != PF_KEEP) {
358 WM_cursor_wait(true);
359 BKE_packedfile_id_unpack(bmain, id, op->reports, method); /* XXX PF_ASK can't work here */
360 WM_cursor_wait(false);
361 }
362
363 G.fileflags &= ~G_FILE_AUTOPACK;
364
365 return OPERATOR_FINISHED;
366}
367
369{
370 ui::PopupMenu *pup = ui::popup_menu_begin(C, IFACE_("Unpack"), ICON_NONE);
371 ui::Layout &layout = *popup_menu_layout(pup);
372
374 layout.op_enum(op->type->idname,
375 "method",
376 static_cast<IDProperty *>(op->ptr->data),
379
380 popup_menu_end(C, pup);
381
382 return OPERATOR_INTERFACE;
383}
384
386{
387 /* identifiers */
388 ot->name = "Unpack Item";
389 ot->idname = "FILE_OT_unpack_item";
390 ot->description = "Unpack this file to an external file";
391
392 /* API callbacks. */
395
396 /* flags */
397 ot->flag = OPTYPE_UNDO;
398
399 /* properties */
401 ot->srna, "method", unpack_item_method_items, PF_USE_LOCAL, "Method", "How to unpack");
403 ot->srna, "id_name", nullptr, BKE_ST_MAXNAME, "ID Name", "Name of ID block to unpack");
404 RNA_def_int(ot->srna,
405 "id_type",
406 ID_IM,
407 0,
408 INT_MAX,
409 "ID Type",
410 "Identifier type of ID block",
411 0,
412 INT_MAX);
413}
414
416
417/* -------------------------------------------------------------------- */
420
422{
423 Main *bmain = CTX_data_main(C);
424 const char *blendfile_path = BKE_main_blendfile_path(bmain);
425
426 if (blendfile_path[0] == '\0') {
427 BKE_report(op->reports, RPT_WARNING, "Cannot set relative paths with an unsaved blend file");
428 return OPERATOR_CANCELLED;
429 }
430
431 BPathSummary summary;
432 BKE_bpath_relative_convert(bmain, blendfile_path, op->reports, &summary);
433 BKE_bpath_summary_report(summary, op->reports);
434
435 /* redraw everything so any changed paths register */
437
438 return OPERATOR_FINISHED;
439}
440
442{
443 /* identifiers */
444 ot->name = "Make Paths Relative";
445 ot->idname = "FILE_OT_make_paths_relative";
446 ot->description = "Make all paths to external files relative to current .blend";
447
448 /* API callbacks. */
450
451 /* flags */
453}
454
456
457/* -------------------------------------------------------------------- */
460
462{
463 Main *bmain = CTX_data_main(C);
464 const char *blendfile_path = BKE_main_blendfile_path(bmain);
465
466 if (blendfile_path[0] == '\0') {
467 BKE_report(op->reports, RPT_WARNING, "Cannot set absolute paths with an unsaved blend file");
468 return OPERATOR_CANCELLED;
469 }
470
471 BPathSummary summary;
472 BKE_bpath_absolute_convert(bmain, blendfile_path, op->reports, &summary);
473 BKE_bpath_summary_report(summary, op->reports);
474
475 /* redraw everything so any changed paths register */
477
478 return OPERATOR_FINISHED;
479}
480
482{
483 /* identifiers */
484 ot->name = "Make Paths Absolute";
485 ot->idname = "FILE_OT_make_paths_absolute";
486 ot->description = "Make all paths to external files absolute";
487
488 /* API callbacks. */
490
491 /* flags */
493}
494
496
497/* -------------------------------------------------------------------- */
500
502{
503 Main *bmain = CTX_data_main(C);
504
505 /* run the missing file check */
507 /* Redraw sequencer since media presence cache might have changed. */
509
510 return OPERATOR_FINISHED;
511}
512
514{
515 /* identifiers */
516 ot->name = "Report Missing Files";
517 ot->idname = "FILE_OT_report_missing_files";
518 ot->description = "Report all missing external files";
519
520 /* API callbacks. */
522
523 /* flags */
524 ot->flag = 0; /* only reports so no need to undo/register */
525}
526
528
529/* -------------------------------------------------------------------- */
532
534{
535 Main *bmain = CTX_data_main(C);
536 const std::string searchpath = RNA_string_get(op->ptr, "directory");
537 const bool find_all = RNA_boolean_get(op->ptr, "find_all");
538
539 BPathSummary summary;
540 BKE_bpath_missing_files_find(bmain, searchpath.c_str(), op->reports, find_all, &summary);
541
542 if (summary.count_changed > 0) {
543 /* Notify sequencers to clear media presence and image caches. */
544 for (Scene &scene : bmain->scenes) {
546 }
548 }
549
550 return OPERATOR_FINISHED;
551}
552
554 wmOperator *op,
555 const wmEvent * /*event*/)
556{
557 /* XXX file open button text "Find Missing Files" */
560}
561
563{
564 /* identifiers */
565 ot->name = "Find Missing Files";
566 ot->idname = "FILE_OT_find_missing_files";
567 ot->description = "Try to find missing external files";
568
569 /* API callbacks. */
572
573 /* flags */
575
576 /* properties */
578 "find_all",
579 false,
580 "Find All",
581 "Find all files in the search path (not just missing)");
582
584 0,
590}
591
593
594/* -------------------------------------------------------------------- */
597
598/* NOTE(@broken): Hard to decide whether to keep this as an operator,
599 * or turn it into a hard_coded UI control feature,
600 * handling TIMER events for all regions in `interface_handlers.cc`.
601 * Not sure how good that is to be accessing UI data from
602 * inactive regions, so use this for now. */
603
604#define INFO_TIMEOUT 5.0f
605#define ERROR_TIMEOUT 10.0f
606#define FLASH_TIMEOUT 1.0f
607#define COLLAPSE_TIMEOUT 0.25f
608
610 wmOperator * /*op*/,
611 const wmEvent *event)
612{
613 ReportList *reports = CTX_wm_reports(C);
614 Report *report;
615
616 /* escape if not our timer */
617 if ((reports->reporttimer == nullptr) || (reports->reporttimer != event->customdata) ||
618 ((report = BKE_reports_last_displayable(reports)) == nullptr))
619 {
620 /* May have been deleted. */
622 }
623
625 ReportTimerInfo *rti = static_cast<ReportTimerInfo *>(reports->reporttimer->customdata);
626 const float flash_timeout = FLASH_TIMEOUT;
627 bool send_notifier = false;
628
629 const float timeout = (report->type & RPT_ERROR_ALL) ? ERROR_TIMEOUT : INFO_TIMEOUT;
630 const float time_duration = float(reports->reporttimer->time_duration);
631
632 /* clear the report display after timeout */
633 if (time_duration > timeout) {
634 WM_event_timer_remove(wm, nullptr, reports->reporttimer);
635 reports->reporttimer = nullptr;
636
638
640 }
641
642 if (rti->widthfac == 0.0f) {
643 rti->widthfac = 1.0f;
644 }
645
646 const float progress = powf(time_duration / timeout, 2.0f);
647 const float flash_progress = powf(time_duration / flash_timeout, 2.0);
648
649 /* save us from too many draws */
650 if (flash_progress <= 1.0f) {
651 /* Flash report briefly according to progress through fade-out duration. */
652 send_notifier = true;
653 }
654 rti->flash_progress = flash_progress;
655
656 /* collapse report at end of timeout */
657 if (progress * timeout > timeout - COLLAPSE_TIMEOUT) {
658 rti->widthfac = (progress * timeout - (timeout - COLLAPSE_TIMEOUT)) / COLLAPSE_TIMEOUT;
659 rti->widthfac = 1.0f - rti->widthfac;
660 send_notifier = true;
661 }
662
663 if (send_notifier) {
665 }
666
668}
669
671{
672 /* identifiers */
673 ot->name = "Update Reports Display";
674 ot->idname = "INFO_OT_reports_display_update";
675 ot->description = "Update the display of reports in Blender UI (internal use)";
676
677 /* API callbacks. */
679
680 /* flags */
681 ot->flag = 0;
682
683 /* properties */
684}
685
686/* report operators */
687
689
690} // namespace blender
#define RPT_ERROR_ALL
Definition BKE_report.hh:53
#define BKE_ST_MAXNAME
Definition BKE_screen.hh:91
#define IFACE_(msgid)
#define MAX_ID_NAME
Definition DNA_ID.h:367
#define ID_IS_EDITABLE(_id)
Definition DNA_ID.h:708
Read Blender memory allocation and freeing.
#define C
Definition RandGen.cpp:29
#define UI_ITEM_NONE
#define ND_SEQUENCER
Definition WM_types.hh:456
#define NC_WINDOW
Definition WM_types.hh:388
#define ND_SPACE_INFO
Definition WM_types.hh:564
#define NC_SCENE
Definition WM_types.hh:391
#define NC_SPACE
Definition WM_types.hh:405
#define powf(x, y)
#define INT_MAX
#define INFO_TIMEOUT
Definition info_ops.cc:604
#define COLLAPSE_TIMEOUT
Definition info_ops.cc:607
#define FLASH_TIMEOUT
Definition info_ops.cc:606
#define ERROR_TIMEOUT
Definition info_ops.cc:605
void relations_refresh_all(Scene *scene)
PopupMenu * popup_menu_begin(bContext *C, const char *title, int icon) ATTR_NONNULL()
BMesh Iterators.
void WM_main_add_notifier(uint type, void *reference)
void FILE_OT_unpack_all(wmOperatorType *ot)
Definition info_ops.cc:285
static wmOperatorStatus pack_all_invoke(bContext *C, wmOperator *op, const wmEvent *)
Definition info_ops.cc:173
Report * BKE_reports_last_displayable(ReportList *reports)
Definition report.cc:381
void FILE_OT_pack_all(wmOperatorType *ot)
Definition info_ops.cc:199
static const EnumPropertyItem unpack_all_method_items[]
Definition info_ops.cc:220
int BKE_packedfile_unpack_all_libraries(Main *bmain, ReportList *reports)
int RNA_enum_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
ID * BKE_libblock_find_name(Main *bmain, short type, const char *name, const std::optional< Library * > lib=std::nullopt) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition lib_id.cc:1808
@ RPT_WARNING
Definition BKE_report.hh:40
static wmOperatorStatus unpack_all_exec(bContext *C, wmOperator *op)
Definition info_ops.cc:243
static wmOperatorStatus pack_libraries_exec(bContext *C, wmOperator *op)
Definition info_ops.cc:51
void FILE_OT_unpack_item(wmOperatorType *ot)
Definition info_ops.cc:385
static wmOperatorStatus find_missing_files_exec(bContext *C, wmOperator *op)
Definition info_ops.cc:533
void FILE_OT_make_paths_relative(wmOperatorType *ot)
Definition info_ops.cc:441
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
int RNA_int_get(PointerRNA *ptr, const char *name)
void FILE_OT_unpack_libraries(wmOperatorType *ot)
Definition info_ops.cc:106
void BKE_packedfile_id_unpack(Main *bmain, ID *id, ReportList *reports, enum ePF_FileStatus how)
void BKE_bpath_missing_files_find(Main *bmain, const char *searchpath, ReportList *reports, bool find_all, BPathSummary *r_summary=nullptr)
Definition bpath.cc:492
void BKE_bpath_relative_convert(Main *bmain, const char *basedir, ReportList *reports, BPathSummary *r_summary=nullptr)
Definition bpath.cc:711
static wmOperatorStatus make_paths_relative_exec(bContext *C, wmOperator *op)
Definition info_ops.cc:421
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 BKE_bpath_summary_report(const BPathSummary &summary, ReportList *reports)
Definition bpath.cc:61
PackedFileCount BKE_packedfile_count_all(Main *bmain)
Global G
Definition blender.cc:57
const char * BKE_main_blendfile_path(const Main *bmain) ATTR_NONNULL()
Definition main.cc:1058
static wmOperatorStatus pack_all_exec(bContext *C, wmOperator *op)
Definition info_ops.cc:162
void BKE_packedfile_pack_all_libraries(Main *bmain, ReportList *reports)
static wmOperatorStatus make_paths_absolute_exec(bContext *C, wmOperator *op)
Definition info_ops.cc:461
@ G_FILE_AUTOPACK
void BKE_packedfile_unpack_all(Main *bmain, ReportList *reports, enum ePF_FileStatus how)
void FILE_OT_pack_libraries(wmOperatorType *ot)
Definition info_ops.cc:60
void BKE_report(ReportList *reports, eReportType type, const char *message)
Definition report.cc:162
@ WM_FILESEL_DIRECTORY
Definition WM_api.hh:1330
wmWindowManager * CTX_wm_manager(const bContext *C)
void INFO_OT_reports_display_update(wmOperatorType *ot)
Definition info_ops.cc:670
static wmOperatorStatus unpack_item_exec(bContext *C, wmOperator *op)
Definition info_ops.cc:331
void BKE_packedfile_pack_all(Main *bmain, ReportList *reports, bool verbose)
static wmOperatorStatus autopack_toggle_exec(bContext *C, wmOperator *op)
Definition info_ops.cc:127
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
wmOperatorStatus WM_operator_confirm_ex(bContext *C, wmOperator *op, const char *title, const char *message, const char *confirm_text, ui::AlertIcon icon, bool cancel_default)
static wmOperatorStatus unpack_libraries_exec(bContext *C, wmOperator *op)
Definition info_ops.cc:76
static wmOperatorStatus update_reports_display_invoke(bContext *C, wmOperator *, const wmEvent *event)
Definition info_ops.cc:609
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
static wmOperatorStatus report_missing_files_exec(bContext *C, wmOperator *op)
Definition info_ops.cc:501
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)
static wmOperatorStatus find_missing_files_invoke(bContext *C, wmOperator *op, const wmEvent *)
Definition info_ops.cc:553
@ FILE_OPENFILE
Definition WM_api.hh:1341
Main * CTX_data_main(const bContext *C)
void FILE_OT_find_missing_files(wmOperatorType *ot)
Definition info_ops.cc:562
static const EnumPropertyItem unpack_item_method_items[]
Definition info_ops.cc:310
void WM_event_timer_remove(wmWindowManager *wm, wmWindow *, wmTimer *timer)
@ OPTYPE_REGISTER
Definition WM_types.hh:188
@ OPTYPE_UNDO
Definition WM_types.hh:190
static wmOperatorStatus unpack_all_invoke(bContext *C, wmOperator *op, const wmEvent *)
Definition info_ops.cc:259
std::string RNA_string_get(PointerRNA *ptr, const char *name)
void BKE_bpath_absolute_convert(Main *bmain, const char *basedir, ReportList *reports, BPathSummary *r_summary=nullptr)
Definition bpath.cc:720
void BKE_bpath_missing_files_check(Main *bmain, ReportList *reports)
Definition bpath.cc:334
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
ReportList * CTX_wm_reports(const bContext *C)
void WM_cursor_wait(bool val)
void FILE_OT_autopack_toggle(wmOperatorType *ot)
Definition info_ops.cc:142
void WM_event_add_fileselect(bContext *C, wmOperator *op)
void FILE_OT_report_missing_files(wmOperatorType *ot)
Definition info_ops.cc:513
void FILE_OT_make_paths_absolute(wmOperatorType *ot)
Definition info_ops.cc:481
ListBaseT< ID > * which_libbase(Main *bmain, short type)
Definition main.cc:1073
static wmOperatorStatus unpack_libraries_invoke(bContext *C, wmOperator *op, const wmEvent *)
Definition info_ops.cc:93
static wmOperatorStatus unpack_item_invoke(bContext *C, wmOperator *op, const wmEvent *)
Definition info_ops.cc:368
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ListBaseT< Image > images
Definition BKE_main.hh:394
ListBaseT< Scene > scenes
Definition BKE_main.hh:386
wmTimer * reporttimer
Definition BKE_report.hh:86
void operator_context_set(wm::OpCallContext opcontext)
void op_enum(StringRefNull opname, StringRefNull propname, IDProperty *properties, wm::OpCallContext context, eUI_Item_Flag flag, const int active=-1)
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1125
const char * description
Definition WM_types.hh:1115
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1141
struct ReportList * reports
struct wmOperatorType * type