Blender V5.3
editlattice_select.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include <cstdlib>
10
11#include "MEM_guardedalloc.h"
12
13#include "BLI_bitmap.hh"
14#include "BLI_ghash.hh"
15#include "BLI_listbase.hh"
16#include "BLI_math_vector_c.hh"
17#include "BLI_rand_c.hh"
18#include "BLI_utildefines.hh"
19
20#include "DNA_curve_types.h"
21#include "DNA_lattice_types.h"
22#include "DNA_meshdata_types.h"
23#include "DNA_object_types.h"
24#include "DNA_scene_types.h"
25
26#include "RNA_access.hh"
27#include "RNA_define.hh"
28#include "RNA_enum_types.hh"
29
30#include "BKE_context.hh"
31#include "BKE_lattice.hh"
32#include "BKE_layer.hh"
33#include "BKE_report.hh"
34
35#include "ED_lattice.hh"
36#include "ED_object.hh"
37#include "ED_screen.hh"
38#include "ED_select_utils.hh"
39#include "ED_view3d.hh"
40
41#include "WM_api.hh"
42#include "WM_types.hh"
43
44#include "DEG_depsgraph.hh"
45
46#include "lattice_intern.hh"
47
48namespace blender {
49
50/* -------------------------------------------------------------------- */
53
54static void bpoint_select_set(BPoint *bp, bool select)
55{
56 if (select) {
57 if (!bp->hide) {
58 bp->f1 |= SELECT;
59 }
60 }
61 else {
62 bp->f1 &= ~SELECT;
63 }
64}
65
67{
68 bool changed_multi = false;
69 for (Base *base : bases) {
70 Object *ob_iter = base->object;
71 changed_multi |= ED_lattice_flags_set(ob_iter, 0);
73 }
74 return changed_multi;
75}
76
85
87
88/* -------------------------------------------------------------------- */
91
93{
94 const bool select = (RNA_enum_get(op->ptr, "action") == SEL_SELECT);
95 const float randfac = RNA_float_get(op->ptr, "ratio");
97
98 const Main *bmain = CTX_data_main(C);
99 const Scene *scene = CTX_data_scene(C);
100 ViewLayer *view_layer = CTX_data_view_layer(C);
102 *bmain, scene, view_layer, CTX_wm_view3d(C));
103 for (const int ob_index : objects.index_range()) {
104 Object *obedit = objects[ob_index];
105 Lattice *lt = (id_cast<Lattice *>(obedit->data))->editlatt->latt;
106 int seed_iter = seed;
107
108 /* This gives a consistent result regardless of object order. */
109 if (ob_index) {
110 seed_iter += BLI_ghashutil_strhash_p(obedit->id.name);
111 }
112
113 int a = lt->pntsu * lt->pntsv * lt->pntsw;
114 int elem_map_len = 0;
115 BPoint **elem_map = MEM_new_array_uninitialized<BPoint *>(a, __func__);
116 BPoint *bp = lt->def;
117
118 while (a--) {
119 if (!bp->hide) {
120 elem_map[elem_map_len++] = bp;
121 }
122 bp++;
123 }
124
125 BLI_array_randomize(elem_map, sizeof(*elem_map), elem_map_len, seed_iter);
126 const int count_select = elem_map_len * randfac;
127 for (int i = 0; i < count_select; i++) {
128 bpoint_select_set(elem_map[i], select);
129 }
130 MEM_delete(elem_map);
131
132 if (select == false) {
133 lt->actbp = LT_ACTBP_NONE;
134 }
135
138 }
139
140 return OPERATOR_FINISHED;
141}
142
144{
145 /* identifiers */
146 ot->name = "Select Random";
147 ot->description = "Randomly select UVW control points";
148 ot->idname = "LATTICE_OT_select_random";
149
150 /* API callbacks. */
153
154 /* flags */
156
157 /* props */
159}
160
162
163/* -------------------------------------------------------------------- */
166
167static void ed_lattice_select_mirrored(Lattice *lt, const int axis, const bool extend)
168{
169 const int tot = lt->pntsu * lt->pntsv * lt->pntsw;
170
171 bool flip_uvw[3] = {false};
172 flip_uvw[axis] = true;
173
174 /* we could flip this too */
175 if (!extend) {
176 lt->actbp = LT_ACTBP_NONE;
177 }
178
179 /* store "original" selection */
180 BLI_bitmap *selpoints = BLI_BITMAP_NEW(tot, __func__);
181 BKE_lattice_bitmap_from_flag(lt, selpoints, SELECT, false, false);
182
183 /* actual (de)selection */
184 for (int i = 0; i < tot; i++) {
185 const int i_flip = BKE_lattice_index_flip(lt, i, flip_uvw[0], flip_uvw[1], flip_uvw[2]);
186 BPoint *bp = &lt->def[i];
187 if (!bp->hide) {
188 if (BLI_BITMAP_TEST(selpoints, i_flip)) {
189 bp->f1 |= SELECT;
190 }
191 else {
192 if (!extend) {
193 bp->f1 &= ~SELECT;
194 }
195 }
196 }
197 }
198
199 MEM_delete(selpoints);
200}
201
203{
204 const int axis_flag = RNA_enum_get(op->ptr, "axis");
205 const bool extend = RNA_boolean_get(op->ptr, "extend");
206
207 const Main *bmain = CTX_data_main(C);
208 const Scene *scene = CTX_data_scene(C);
209 ViewLayer *view_layer = CTX_data_view_layer(C);
211 *bmain, scene, view_layer, CTX_wm_view3d(C));
212
213 for (Object *obedit : objects) {
214 Lattice *lt = (id_cast<Lattice *>(obedit->data))->editlatt->latt;
215
216 for (int axis = 0; axis < 3; axis++) {
217 if ((1 << axis) & axis_flag) {
218 ed_lattice_select_mirrored(lt, axis, extend);
219 }
220 }
221
222 /* TODO: only notify changes. */
223 DEG_id_tag_update(obedit->data, ID_RECALC_SELECT);
224 WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
225 }
226
227 return OPERATOR_FINISHED;
228}
229
231{
232 /* identifiers */
233 ot->name = "Select Mirror";
234 ot->description = "Select mirrored lattice points";
235 ot->idname = "LATTICE_OT_select_mirror";
236
237 /* API callbacks. */
240
241 /* flags */
243
244 /* props */
245 RNA_def_enum_flag(ot->srna, "axis", rna_enum_axis_flag_xyz_items, (1 << 0), "Axis", "");
246
247 RNA_def_boolean(ot->srna, "extend", false, "Extend", "Extend the selection");
248}
249
251
252/* -------------------------------------------------------------------- */
255
257 const Lattice *lt, const BLI_bitmap *selpoints, int u, int v, int w, const bool selected)
258{
259 if ((u < 0 || u >= lt->pntsu) || (v < 0 || v >= lt->pntsv) || (w < 0 || w >= lt->pntsw)) {
260 return false;
261 }
262
263 int i = BKE_lattice_index_from_uvw(lt, u, v, w);
264 if (lt->def[i].hide == 0) {
265 return (BLI_BITMAP_TEST(selpoints, i) != 0) == selected;
266 }
267 return false;
268}
269
271{
272 const Main *bmain = CTX_data_main(C);
273 const Scene *scene = CTX_data_scene(C);
274 ViewLayer *view_layer = CTX_data_view_layer(C);
275 bool changed = false;
276
278 *bmain, scene, view_layer, CTX_wm_view3d(C));
279 for (Object *obedit : objects) {
280 Lattice *lt = (id_cast<Lattice *>(obedit->data))->editlatt->latt;
281 BPoint *bp;
282 const int tot = lt->pntsu * lt->pntsv * lt->pntsw;
283 int u, v, w;
284 BLI_bitmap *selpoints;
285
286 lt->actbp = LT_ACTBP_NONE;
287
288 selpoints = BLI_BITMAP_NEW(tot, __func__);
289 BKE_lattice_bitmap_from_flag(lt, selpoints, SELECT, false, false);
290
291 bp = lt->def;
292 for (w = 0; w < lt->pntsw; w++) {
293 for (v = 0; v < lt->pntsv; v++) {
294 for (u = 0; u < lt->pntsu; u++) {
295 if ((bp->hide == 0) && (((bp->f1 & SELECT) == 0) == select)) {
296 if (lattice_test_bitmap_uvw(lt, selpoints, u + 1, v, w, select) ||
297 lattice_test_bitmap_uvw(lt, selpoints, u - 1, v, w, select) ||
298 lattice_test_bitmap_uvw(lt, selpoints, u, v + 1, w, select) ||
299 lattice_test_bitmap_uvw(lt, selpoints, u, v - 1, w, select) ||
300 lattice_test_bitmap_uvw(lt, selpoints, u, v, w + 1, select) ||
301 lattice_test_bitmap_uvw(lt, selpoints, u, v, w - 1, select))
302 {
304 }
305 }
306 bp++;
307 }
308 }
309 }
310
311 MEM_delete(selpoints);
312
313 changed = true;
314 DEG_id_tag_update(obedit->data, ID_RECALC_SELECT);
315 WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
316 }
317
318 return changed ? OPERATOR_FINISHED : OPERATOR_CANCELLED;
319}
320
325
330
332{
333 /* identifiers */
334 ot->name = "Select More";
335 ot->description = "Select vertices directly linked to already selected ones";
336 ot->idname = "LATTICE_OT_select_more";
337
338 /* API callbacks. */
341
342 /* flags */
344}
345
347{
348 /* identifiers */
349 ot->name = "Select Less";
350 ot->description = "Deselect vertices at the boundary of each selection region";
351 ot->idname = "LATTICE_OT_select_less";
352
353 /* API callbacks. */
356
357 /* flags */
359}
360
362
363/* -------------------------------------------------------------------- */
366
367bool ED_lattice_flags_set(Object *obedit, int flag)
368{
369 Lattice *lt = id_cast<Lattice *>(obedit->data);
370 BPoint *bp;
371 int a;
372 bool changed = false;
373
374 bp = lt->editlatt->latt->def;
375
376 a = lt->editlatt->latt->pntsu * lt->editlatt->latt->pntsv * lt->editlatt->latt->pntsw;
377
378 if (lt->editlatt->latt->actbp != LT_ACTBP_NONE) {
380 changed = true;
381 }
382
383 while (a--) {
384 if (bp->hide == 0) {
385 if (bp->f1 != flag) {
386 bp->f1 = flag;
387 changed = true;
388 }
389 }
390 bp++;
391 }
392 return changed;
393}
394
396{
397 const Main *bmain = CTX_data_main(C);
398 const Scene *scene = CTX_data_scene(C);
399 ViewLayer *view_layer = CTX_data_view_layer(C);
400 int action = RNA_enum_get(op->ptr, "action");
401
403 *bmain, scene, view_layer, CTX_wm_view3d(C));
404
405 if (action == SEL_TOGGLE) {
406 action = SEL_SELECT;
407 for (Object *obedit : objects) {
408 Lattice *lt = id_cast<Lattice *>(obedit->data);
410 action = SEL_DESELECT;
411 break;
412 }
413 }
414 }
415
416 bool changed_multi = false;
417 for (Object *obedit : objects) {
418 Lattice *lt;
419 BPoint *bp;
420 int a;
421 bool changed = false;
422
423 switch (action) {
424 case SEL_SELECT:
425 changed = ED_lattice_flags_set(obedit, 1);
426 break;
427 case SEL_DESELECT:
428 changed = ED_lattice_flags_set(obedit, 0);
429 break;
430 case SEL_INVERT:
431 lt = id_cast<Lattice *>(obedit->data);
432 bp = lt->editlatt->latt->def;
433 a = lt->editlatt->latt->pntsu * lt->editlatt->latt->pntsv * lt->editlatt->latt->pntsw;
435
436 while (a--) {
437 if (bp->hide == 0) {
438 bp->f1 ^= SELECT;
439 changed = true;
440 }
441 bp++;
442 }
443 break;
444 }
445 if (changed) {
446 changed_multi = true;
447 DEG_id_tag_update(obedit->data, ID_RECALC_SELECT);
448 WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
449 }
450 }
451
452 if (changed_multi) {
453 return OPERATOR_FINISHED;
454 }
455 return OPERATOR_CANCELLED;
456}
457
459{
460 /* identifiers */
461 ot->name = "(De)select All";
462 ot->description = "Change selection of all UVW control points";
463 ot->idname = "LATTICE_OT_select_all";
464
465 /* API callbacks. */
468
469 /* flags */
471
473}
474
476
477/* -------------------------------------------------------------------- */
480
482{
483 const Main *bmain = CTX_data_main(C);
484 const Scene *scene = CTX_data_scene(C);
485 ViewLayer *view_layer = CTX_data_view_layer(C);
486 const bool is_extend = RNA_boolean_get(op->ptr, "extend");
487 bool changed = false;
488
490 *bmain, scene, view_layer, CTX_wm_view3d(C));
491 for (Object *obedit : objects) {
492 Lattice *lt = (id_cast<Lattice *>(obedit->data))->editlatt->latt;
493 MDeformVert *dv;
494 BPoint *bp;
495 int a, tot;
496
497 if (lt->vertex_group_names.is_empty() || lt->dvert == nullptr) {
498 continue;
499 }
500
501 if (!is_extend) {
502 ED_lattice_flags_set(obedit, 0);
503 }
504
505 dv = lt->dvert;
506 tot = lt->pntsu * lt->pntsv * lt->pntsw;
507
508 for (a = 0, bp = lt->def; a < tot; a++, bp++, dv++) {
509 if (bp->hide == 0) {
510 if (dv->dw == nullptr) {
511 bp->f1 |= SELECT;
512 }
513 }
514 }
515
516 changed = true;
517 DEG_id_tag_update(obedit->data, ID_RECALC_SELECT);
518 WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
519 }
520
521 if (!changed) {
522 BKE_report(op->reports, RPT_ERROR, "No weights/vertex groups on object(s)");
523 return OPERATOR_CANCELLED;
524 }
525 return OPERATOR_FINISHED;
526}
527
529{
530 /* identifiers */
531 ot->name = "Select Ungrouped";
532 ot->idname = "LATTICE_OT_select_ungrouped";
533 ot->description = "Select vertices without a group";
534
535 /* API callbacks. */
538
539 /* flags */
541
542 RNA_def_boolean(ot->srna, "extend", false, "Extend", "Extend the selection");
543}
544
546
547/* -------------------------------------------------------------------- */
553
562
563static void findnearestLattvert__doClosest(void *user_data, BPoint *bp, const float screen_co[2])
564{
566 float dist_test = len_manhattan_v2v2(data->mval_fl, screen_co);
567
568 if ((bp->f1 & SELECT) && data->select) {
569 dist_test += 5.0f;
570 }
571
572 if (dist_test < data->dist) {
573 data->dist = dist_test;
574 data->bp = bp;
575 data->is_changed = true;
576 }
577}
578
580{
582
584 data.select = select;
585 data.mval_fl[0] = vc->mval[0];
586 data.mval_fl[1] = vc->mval[1];
587
589 *vc->bmain, vc->scene, vc->view_layer, vc->v3d);
590 for (Base *base : bases) {
591 data.is_changed = false;
592
593 ED_view3d_viewcontext_init_object(vc, base->object);
594 ED_view3d_init_mats_rv3d(base->object, vc->rv3d);
597
598 if (data.is_changed) {
599 *r_base = base;
600 }
601 }
602 return data.bp;
603}
604
605bool ED_lattice_select_pick(bContext *C, const int mval[2], const SelectPick_Params &params)
606{
607 Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C);
608 BPoint *bp = nullptr;
609 Base *basact = nullptr;
610 bool changed = false;
611
613 vc.mval[0] = mval[0];
614 vc.mval[1] = mval[1];
615
616 bp = findnearestLattvert(&vc, true, &basact);
617 bool found = (bp != nullptr);
618
619 if (params.sel_op == SEL_OP_SET) {
620 if ((found && params.select_passthrough) && (bp->f1 & SELECT)) {
621 found = false;
622 }
623 else if (found || params.deselect_all) {
624 /* Deselect everything. */
626 *vc.bmain, vc.scene, vc.view_layer, vc.v3d);
627 for (Object *ob : objects) {
628 if (ED_lattice_flags_set(ob, 0)) {
631 }
632 }
633 changed = true;
634 }
635 }
636
637 if (found) {
639 Lattice *lt = (id_cast<Lattice *>(vc.obedit->data))->editlatt->latt;
640
641 switch (params.sel_op) {
642 case SEL_OP_ADD: {
643 bp->f1 |= SELECT;
644 break;
645 }
646 case SEL_OP_SUB: {
647 bp->f1 &= ~SELECT;
648 break;
649 }
650 case SEL_OP_XOR: {
651 bp->f1 ^= SELECT; /* swap */
652 break;
653 }
654 case SEL_OP_SET: {
655 bp->f1 |= SELECT;
656 break;
657 }
658 case SEL_OP_AND: {
659 BLI_assert_unreachable(); /* Doesn't make sense for picking. */
660 break;
661 }
662 }
663
664 if (bp->f1 & SELECT) {
665 lt->actbp = bp - lt->def;
666 }
667 else {
668 lt->actbp = LT_ACTBP_NONE;
669 }
670
672 if (BKE_view_layer_active_base_get(vc.view_layer) != basact) {
674 }
675
678
679 changed = true;
680 }
681
682 return changed || found;
683}
684
686
687} // namespace blender
#define SELECT
Definition BKE_mask.hh:19
#define BLI_BITMAP_NEW(_num, _alloc_string)
Definition BLI_bitmap.hh:39
#define BLI_BITMAP_TEST(_bitmap, _index)
Definition BLI_bitmap.hh:63
Random number functions.
#define LT_ACTBP_NONE
Object is a sort of wrapper for general info.
#define V3D_PROJ_TEST_CLIP_DEFAULT
Definition ED_view3d.hh:325
Read Blender memory allocation and freeing.
#define C
Definition RandGen.cpp:29
#define NC_GEOM
Definition WM_types.hh:406
#define ND_SELECT
Definition WM_types.hh:551
#define BLI_assert_unreachable()
#define SET_FLAG_FROM_TEST(value, test, flag)
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
Definition btQuadWord.h:119
IndexRange index_range() const
void base_activate(bContext *C, Base *base)
BMesh Iterators.
void LATTICE_OT_select_mirror(wmOperatorType *ot)
int RNA_enum_get(PointerRNA *ptr, const char *name)
bool ED_lattice_deselect_all_multi(bContext *C)
void WM_operator_properties_select_random(wmOperatorType *ot)
ViewContext ED_view3d_viewcontext_init(bContext *C, Depsgraph *depsgraph)
void * MEM_new_array_uninitialized(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
void BKE_lattice_bitmap_from_flag(const Lattice *lt, unsigned int *bitmap, uint8_t flag, bool clear, bool respecthide)
Definition lattice.cc:239
bool ED_operator_editlattice(bContext *C)
static wmOperatorStatus lattice_select_all_exec(bContext *C, wmOperator *op)
int WM_operator_properties_select_random_seed_increment_get(wmOperator *op)
const EnumPropertyItem rna_enum_axis_flag_xyz_items[]
void LATTICE_OT_select_all(wmOperatorType *ot)
static void findnearestLattvert__doClosest(void *user_data, BPoint *bp, const float screen_co[2])
Base * BKE_view_layer_active_base_get(ViewLayer *view_layer)
static wmOperatorStatus lattice_select_more_less(bContext *C, const bool select)
ATTR_WARN_UNUSED_RESULT const BMVert * v
static wmOperatorStatus lattice_select_mirror_exec(bContext *C, wmOperator *op)
static wmOperatorStatus lattice_select_more_exec(bContext *C, wmOperator *)
static bool lattice_test_bitmap_uvw(const Lattice *lt, const BLI_bitmap *selpoints, int u, int v, int w, const bool selected)
ViewLayer * CTX_data_view_layer(const bContext *C)
void WM_operator_properties_select_all(wmOperatorType *ot)
void BLI_array_randomize(void *data, unsigned int elem_size, unsigned int elem_num, unsigned int seed)
Definition rand.cc:158
void LATTICE_OT_select_random(wmOperatorType *ot)
void ED_view3d_viewcontext_init_object(ViewContext *vc, Object *obact)
static bool lattice_deselect_all_multi(const Span< Base * > bases)
static wmOperatorStatus lattice_select_ungrouped_exec(bContext *C, wmOperator *op)
static void ed_lattice_select_mirrored(Lattice *lt, const int axis, const bool extend)
static void bpoint_select_set(BPoint *bp, bool select)
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
Definition report.cc:162
BMesh const char void * data
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C, bool rna_write_check=false)
int BKE_lattice_index_from_uvw(const Lattice *lt, int u, int v, int w)
Definition lattice.cc:199
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
int BKE_lattice_index_flip(const Lattice *lt, int index, bool flip_u, bool flip_v, bool flip_w)
Definition lattice.cc:217
void LATTICE_OT_select_less(wmOperatorType *ot)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
void ED_view3d_init_mats_rv3d(const Object *ob, RegionView3D *rv3d)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
MINLINE float len_manhattan_v2v2(const float a[2], const float b[2]) ATTR_WARN_UNUSED_RESULT
bool BKE_lattice_is_any_selected(const Lattice *lt)
Definition lattice.cc:693
unsigned int BLI_bitmap
Definition BLI_bitmap.hh:15
Main * CTX_data_main(const bContext *C)
void LATTICE_OT_select_more(wmOperatorType *ot)
void LATTICE_OT_select_ungrouped(wmOperatorType *ot)
@ ID_RECALC_SELECT
Definition DNA_ID.h:1101
Vector< Object * > BKE_view_layer_array_from_objects_in_edit_mode_unique_data(const Main &bmain, const Scene *scene, ViewLayer *view_layer, const View3D *v3d)
PropertyRNA * RNA_def_enum_flag(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
Vector< Base * > BKE_view_layer_array_from_bases_in_edit_mode_unique_data(const Main &bmain, const Scene *scene, ViewLayer *view_layer, const View3D *v3d)
unsigned int BLI_ghashutil_strhash_p(const void *ptr)
bool ED_lattice_select_pick(bContext *C, const int mval[2], const SelectPick_Params &params)
Scene * CTX_data_scene(const bContext *C)
@ OPTYPE_REGISTER
Definition WM_types.hh:188
@ OPTYPE_UNDO
Definition WM_types.hh:190
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
float ED_view3d_select_dist_px()
static wmOperatorStatus lattice_select_less_exec(bContext *C, wmOperator *)
static BPoint * findnearestLattvert(ViewContext *vc, bool select, Base **r_base)
float RNA_float_get(PointerRNA *ptr, const char *name)
bool ED_lattice_flags_set(Object *obedit, int flag)
View3D * CTX_wm_view3d(const bContext *C)
void lattice_foreachScreenVert(const ViewContext *vc, void(*func)(void *user_data, BPoint *bp, const float screen_co[2]), void *user_data, eV3DProjTest clip_flag)
static wmOperatorStatus lattice_select_random_exec(bContext *C, wmOperator *op)
struct Object * object
struct Lattice * latt
char name[258]
Definition DNA_ID.h:433
struct EditLatt * editlatt
struct MDeformVert * dvert
ListBaseT< struct bDeformGroup > vertex_group_names
struct BPoint * def
struct MDeformWeight * dw
ViewLayer * view_layer
Definition ED_view3d.hh:80
RegionView3D * rv3d
Definition ED_view3d.hh:86
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1125
const char * description
Definition WM_types.hh:1115
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1165
struct ReportList * reports