Blender  V3.3
Classes | Macros | Typedefs | Enumerations | Functions
gpencil_data.c File Reference
#include <math.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_ghash.h"
#include "BLI_math.h"
#include "BLI_string_utils.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "DNA_anim_types.h"
#include "DNA_brush_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_material_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "BKE_anim_data.h"
#include "BKE_animsys.h"
#include "BKE_brush.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_fcurve_driver.h"
#include "BKE_gpencil.h"
#include "BKE_gpencil_modifier.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_modifier.h"
#include "BKE_object.h"
#include "BKE_paint.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "ED_gpencil.h"
#include "ED_object.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_query.h"
#include "gpencil_intern.h"

Go to the source code of this file.

Classes

struct  tJoinGPencil_AdtFixData
 

Macros

#define SELECTED   1
 

Typedefs

typedef struct tJoinGPencil_AdtFixData tJoinGPencil_AdtFixData
 

Enumerations

enum  { GP_LAYER_MOVE_UP = -1 , GP_LAYER_MOVE_DOWN = 1 }
 
enum  { GP_LAYER_DUPLICATE_ALL = 0 , GP_LAYER_DUPLICATE_EMPTY = 1 }
 
enum  { GP_LAYER_COPY_OBJECT_ALL_FRAME = 0 , GP_LAYER_COPY_OBJECT_ACT_FRAME = 1 }
 
enum  { GP_FRAME_DUP_ACTIVE = 0 , GP_FRAME_DUP_ALL = 1 }
 
enum  { GP_FRAME_CLEAN_FILL_ACTIVE = 0 , GP_FRAME_CLEAN_FILL_ALL = 1 }
 
enum  { GP_LAYER_MERGE_ACTIVE = 0 , GP_LAYER_MERGE_ALL = 1 }
 
enum  { GP_STROKE_MOVE_UP = -1 , GP_STROKE_MOVE_DOWN = 1 , GP_STROKE_MOVE_TOP = 2 , GP_STROKE_MOVE_BOTTOM = 3 }
 

Functions

static bool gpencil_data_add_poll (bContext *C)
 
static int gpencil_data_add_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_annotation_add (wmOperatorType *ot)
 
static bool gpencil_data_unlink_poll (bContext *C)
 
static int gpencil_data_unlink_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_data_unlink (wmOperatorType *ot)
 
static int gpencil_layer_add_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_layer_add (wmOperatorType *ot)
 
static bool gpencil_add_annotation_poll (bContext *C)
 
void GPENCIL_OT_layer_annotation_add (wmOperatorType *ot)
 
static int gpencil_layer_remove_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_layer_remove (wmOperatorType *ot)
 
static bool gpencil_active_layer_annotation_poll (bContext *C)
 
void GPENCIL_OT_layer_annotation_remove (wmOperatorType *ot)
 
static int gpencil_layer_move_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_layer_move (wmOperatorType *ot)
 
void GPENCIL_OT_layer_annotation_move (wmOperatorType *ot)
 
static int gpencil_layer_copy_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_layer_duplicate (wmOperatorType *ot)
 
static bool gpencil_layer_duplicate_object_poll (bContext *C)
 
static int gpencil_layer_duplicate_object_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_layer_duplicate_object (wmOperatorType *ot)
 
static int gpencil_frame_duplicate_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_frame_duplicate (wmOperatorType *ot)
 
static int gpencil_frame_clean_fill_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_frame_clean_fill (wmOperatorType *ot)
 
static int gpencil_frame_clean_loose_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_frame_clean_loose (wmOperatorType *ot)
 
static bool gpencil_frame_is_equal (const bGPDframe *gpf_a, const bGPDframe *gpf_b)
 
static int gpencil_frame_clean_duplicate_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_frame_clean_duplicate (wmOperatorType *ot)
 
static int gpencil_hide_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_hide (wmOperatorType *ot)
 
static bool gpencil_reveal_poll (bContext *C)
 
static void gpencil_reveal_select_frame (bContext *C, bGPDframe *frame, bool select)
 
static int gpencil_reveal_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_reveal (wmOperatorType *ot)
 
static int gpencil_lock_all_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_lock_all (wmOperatorType *ot)
 
static int gpencil_unlock_all_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_unlock_all (wmOperatorType *ot)
 
static int gpencil_isolate_layer_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_layer_isolate (wmOperatorType *ot)
 
static void apply_layer_settings (bGPDlayer *gpl)
 
static int gpencil_merge_layer_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_layer_merge (wmOperatorType *ot)
 
static int gpencil_layer_change_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 
static int gpencil_layer_change_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_layer_change (wmOperatorType *ot)
 
static int gpencil_layer_active_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_layer_active (wmOperatorType *ot)
 
static int gpencil_stroke_arrange_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_stroke_arrange (wmOperatorType *ot)
 
static int gpencil_stroke_change_color_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_stroke_change_color (wmOperatorType *ot)
 
static int gpencil_material_lock_unsused_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_material_lock_unused (wmOperatorType *ot)
 
static int gpencil_brush_reset_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_brush_reset (wmOperatorType *ot)
 
static Brushgpencil_brush_get_first_by_mode (Main *bmain, Paint *UNUSED(paint), const enum eContextObjectMode mode, char tool)
 
static void gpencil_brush_delete_mode_brushes (Main *bmain, Paint *paint, const enum eContextObjectMode mode)
 
static int gpencil_brush_reset_all_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_brush_reset_all (wmOperatorType *ot)
 
static bool gpencil_vertex_group_poll (bContext *C)
 
static bool gpencil_vertex_group_weight_poll (bContext *C)
 
static int gpencil_vertex_group_assign_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_vertex_group_assign (wmOperatorType *ot)
 
static int gpencil_vertex_group_remove_from_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_vertex_group_remove_from (wmOperatorType *ot)
 
static int gpencil_vertex_group_select_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_vertex_group_select (wmOperatorType *ot)
 
static int gpencil_vertex_group_deselect_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_vertex_group_deselect (wmOperatorType *ot)
 
static int gpencil_vertex_group_invert_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_vertex_group_invert (wmOperatorType *ot)
 
static int gpencil_vertex_group_smooth_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_vertex_group_smooth (wmOperatorType *ot)
 
static int gpencil_vertex_group_normalize_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_vertex_group_normalize (wmOperatorType *ot)
 
static int gpencil_vertex_group_normalize_all_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_vertex_group_normalize_all (wmOperatorType *ot)
 
static void gpencil_joined_fix_animdata_cb (ID *id, FCurve *fcu, void *user_data)
 
int ED_gpencil_join_objects_exec (bContext *C, wmOperator *op)
 
static bool gpencil_active_material_poll (bContext *C)
 
static int gpencil_lock_layer_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_lock_layer (wmOperatorType *ot)
 
static int gpencil_material_isolate_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_material_isolate (wmOperatorType *ot)
 
static int gpencil_material_hide_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_material_hide (wmOperatorType *ot)
 
static int gpencil_material_reveal_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_material_reveal (wmOperatorType *ot)
 
static int gpencil_material_lock_all_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_material_lock_all (wmOperatorType *ot)
 
static int gpencil_material_unlock_all_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_material_unlock_all (wmOperatorType *ot)
 
static int gpencil_material_select_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_material_select (wmOperatorType *ot)
 
static int gpencil_material_set_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_material_set (wmOperatorType *ot)
 
static int gpencil_set_active_material_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_set_active_material (wmOperatorType *ot)
 
static bool gpencil_materials_copy_to_object_poll (bContext *C)
 
static int gpencil_materials_copy_to_object_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_materials_copy_to_object (wmOperatorType *ot)
 
bool ED_gpencil_add_lattice_modifier (const bContext *C, ReportList *reports, Object *ob, Object *ob_latt)
 
static int gpencil_layer_mask_add_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_layer_mask_add (wmOperatorType *ot)
 
static int gpencil_layer_mask_remove_exec (bContext *C, wmOperator *UNUSED(op))
 
void GPENCIL_OT_layer_mask_remove (wmOperatorType *ot)
 
static int gpencil_layer_mask_move_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_layer_mask_move (wmOperatorType *ot)
 

Detailed Description

Operators for dealing with GP data-blocks and layers.

Definition in file gpencil_data.c.

Macro Definition Documentation

◆ SELECTED

#define SELECTED   1

Typedef Documentation

◆ tJoinGPencil_AdtFixData

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
GP_LAYER_MOVE_UP 
GP_LAYER_MOVE_DOWN 

Definition at line 370 of file gpencil_data.c.

◆ anonymous enum

anonymous enum
Enumerator
GP_LAYER_DUPLICATE_ALL 
GP_LAYER_DUPLICATE_EMPTY 

Definition at line 448 of file gpencil_data.c.

◆ anonymous enum

anonymous enum
Enumerator
GP_LAYER_COPY_OBJECT_ALL_FRAME 
GP_LAYER_COPY_OBJECT_ACT_FRAME 

Definition at line 516 of file gpencil_data.c.

◆ anonymous enum

anonymous enum
Enumerator
GP_FRAME_DUP_ACTIVE 
GP_FRAME_DUP_ALL 

Definition at line 642 of file gpencil_data.c.

◆ anonymous enum

anonymous enum
Enumerator
GP_FRAME_CLEAN_FILL_ACTIVE 
GP_FRAME_CLEAN_FILL_ALL 

Definition at line 701 of file gpencil_data.c.

◆ anonymous enum

anonymous enum
Enumerator
GP_LAYER_MERGE_ACTIVE 
GP_LAYER_MERGE_ALL 

Definition at line 1320 of file gpencil_data.c.

◆ anonymous enum

anonymous enum
Enumerator
GP_STROKE_MOVE_UP 
GP_STROKE_MOVE_DOWN 
GP_STROKE_MOVE_TOP 
GP_STROKE_MOVE_BOTTOM 

Definition at line 1569 of file gpencil_data.c.

Function Documentation

◆ apply_layer_settings()

static void apply_layer_settings ( bGPDlayer gpl)
static

◆ ED_gpencil_add_lattice_modifier()

bool ED_gpencil_add_lattice_modifier ( const bContext C,
ReportList reports,
Object ob,
Object ob_latt 
)

◆ ED_gpencil_join_objects_exec()

int ED_gpencil_join_objects_exec ( struct bContext C,
struct wmOperator op 
)

Join objects called from OBJECT_OT_join.

Definition at line 2817 of file gpencil_data.c.

References bGPdata::adt, Object::adt, ADT_MERGECOPY_KEEP_DST, GpencilModifierTypeInfo::bakeModifier, BKE_animdata_copy(), BKE_animdata_merge_copy(), BKE_fcurves_main_cb(), BKE_gpencil_layer_duplicate(), BKE_gpencil_layer_transform_matrix_get(), BKE_gpencil_material(), BKE_gpencil_modifier_get_info(), BKE_gpencil_object_material_ensure(), BKE_object_defgroup_unique_name(), BKE_object_material_len_p(), BKE_report(), BLI_addtail(), BLI_ghash_free(), BLI_ghash_insert(), BLI_ghash_str_new(), BLI_listbase_count(), BLI_listbase_is_empty(), BLI_strdup(), BLI_uniquename(), C, copy_m3_m4(), CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), Object::data, DATA_, MDeformWeight::def_nr, DEG_id_tag_update(), DEG_relations_tag_update(), depsgraph, MDeformVert::dw, ED_object_base_free_and_unlink(), bGPDlayer::frames, GPENCIL_ANY_MODE, gpencil_joined_fix_animdata_cb(), bGPdata::id, Object::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, if(), bGPDlayer::info, invert_m3_m3_safe_ortho(), invert_m4_m4_safe_ortho(), bGPdata::layers, LISTBASE_FOREACH, Object::loc, MEM_dupallocN, MEM_freeN, mul_m3_v3(), mul_v3_m3v3(), mul_v3_m4v3(), tJoinGPencil_AdtFixData::names_map, NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, NULL, OB_GPENCIL, Object::obmat, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_WARNING, scene, tJoinGPencil_AdtFixData::src_gpd, sub_v3_v3(), sub_v3_v3v3(), tJoinGPencil_AdtFixData::tar_gpd, Object::type, bGPdata::vertex_group_active_index, bGPdata::vertex_group_names, WM_event_add_notifier(), and bGPDspoint::x.

Referenced by object_join_exec().

◆ gpencil_active_layer_annotation_poll()

static bool gpencil_active_layer_annotation_poll ( bContext C)
static

◆ gpencil_active_material_poll()

static bool gpencil_active_material_poll ( bContext C)
static

◆ gpencil_add_annotation_poll()

static bool gpencil_add_annotation_poll ( bContext C)
static

Definition at line 259 of file gpencil_data.c.

References C, ED_annotation_data_get_pointers(), and NULL.

Referenced by GPENCIL_OT_layer_annotation_add().

◆ gpencil_brush_delete_mode_brushes()

static void gpencil_brush_delete_mode_brushes ( Main bmain,
Paint paint,
const enum eContextObjectMode  mode 
)
static

◆ gpencil_brush_get_first_by_mode()

static Brush* gpencil_brush_get_first_by_mode ( Main bmain,
Paint UNUSEDpaint,
const enum eContextObjectMode  mode,
char  tool 
)
static

◆ gpencil_brush_reset_all_exec()

static int gpencil_brush_reset_all_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_brush_reset_exec()

static int gpencil_brush_reset_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_data_add_exec()

static int gpencil_data_add_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_data_add_poll()

static bool gpencil_data_add_poll ( bContext C)
static

Definition at line 78 of file gpencil_data.c.

References C, ED_annotation_data_get_pointers(), and NULL.

Referenced by GPENCIL_OT_annotation_add().

◆ gpencil_data_unlink_exec()

static int gpencil_data_unlink_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_data_unlink_poll()

static bool gpencil_data_unlink_poll ( bContext C)
static

◆ gpencil_frame_clean_duplicate_exec()

static int gpencil_frame_clean_duplicate_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_frame_clean_fill_exec()

static int gpencil_frame_clean_fill_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_frame_clean_loose_exec()

static int gpencil_frame_clean_loose_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_frame_duplicate_exec()

static int gpencil_frame_duplicate_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_frame_is_equal()

static bool gpencil_frame_is_equal ( const bGPDframe gpf_a,
const bGPDframe gpf_b 
)
static

◆ gpencil_hide_exec()

static int gpencil_hide_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_isolate_layer_exec()

static int gpencil_isolate_layer_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_joined_fix_animdata_cb()

static void gpencil_joined_fix_animdata_cb ( ID id,
FCurve fcu,
void user_data 
)
static

◆ gpencil_layer_active_exec()

static int gpencil_layer_active_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_layer_add_exec()

static int gpencil_layer_add_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_layer_change_exec()

static int gpencil_layer_change_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_layer_change_invoke()

static int gpencil_layer_change_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ gpencil_layer_copy_exec()

static int gpencil_layer_copy_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_layer_duplicate_object_exec()

static int gpencil_layer_duplicate_object_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_layer_duplicate_object_poll()

static bool gpencil_layer_duplicate_object_poll ( bContext C)
static

◆ gpencil_layer_mask_add_exec()

static int gpencil_layer_mask_add_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_layer_mask_move_exec()

static int gpencil_layer_mask_move_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_layer_mask_remove_exec()

static int gpencil_layer_mask_remove_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_layer_move_exec()

static int gpencil_layer_move_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_layer_remove_exec()

static int gpencil_layer_remove_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_lock_all_exec()

static int gpencil_lock_all_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_lock_layer_exec()

static int gpencil_lock_layer_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_material_hide_exec()

static int gpencil_material_hide_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_material_isolate_exec()

static int gpencil_material_isolate_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_material_lock_all_exec()

static int gpencil_material_lock_all_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_material_lock_unsused_exec()

static int gpencil_material_lock_unsused_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_material_reveal_exec()

static int gpencil_material_reveal_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_material_select_exec()

static int gpencil_material_select_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_material_set_exec()

static int gpencil_material_set_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_material_unlock_all_exec()

static int gpencil_material_unlock_all_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_materials_copy_to_object_exec()

static int gpencil_materials_copy_to_object_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_materials_copy_to_object_poll()

static bool gpencil_materials_copy_to_object_poll ( bContext C)
static

◆ gpencil_merge_layer_exec()

static int gpencil_merge_layer_exec ( bContext C,
wmOperator op 
)
static

◆ GPENCIL_OT_annotation_add()

void GPENCIL_OT_annotation_add ( wmOperatorType ot)

◆ GPENCIL_OT_brush_reset()

void GPENCIL_OT_brush_reset ( wmOperatorType ot)

◆ GPENCIL_OT_brush_reset_all()

void GPENCIL_OT_brush_reset_all ( wmOperatorType ot)

◆ GPENCIL_OT_data_unlink()

void GPENCIL_OT_data_unlink ( wmOperatorType ot)

◆ GPENCIL_OT_frame_clean_duplicate()

void GPENCIL_OT_frame_clean_duplicate ( wmOperatorType ot)

◆ GPENCIL_OT_frame_clean_fill()

void GPENCIL_OT_frame_clean_fill ( wmOperatorType ot)

◆ GPENCIL_OT_frame_clean_loose()

void GPENCIL_OT_frame_clean_loose ( wmOperatorType ot)

◆ GPENCIL_OT_frame_duplicate()

void GPENCIL_OT_frame_duplicate ( wmOperatorType ot)

◆ GPENCIL_OT_hide()

void GPENCIL_OT_hide ( wmOperatorType ot)

◆ GPENCIL_OT_layer_active()

void GPENCIL_OT_layer_active ( wmOperatorType ot)

◆ GPENCIL_OT_layer_add()

void GPENCIL_OT_layer_add ( wmOperatorType ot)

◆ GPENCIL_OT_layer_annotation_add()

void GPENCIL_OT_layer_annotation_add ( wmOperatorType ot)

◆ GPENCIL_OT_layer_annotation_move()

void GPENCIL_OT_layer_annotation_move ( wmOperatorType ot)

◆ GPENCIL_OT_layer_annotation_remove()

void GPENCIL_OT_layer_annotation_remove ( wmOperatorType ot)

◆ GPENCIL_OT_layer_change()

void GPENCIL_OT_layer_change ( wmOperatorType ot)

◆ GPENCIL_OT_layer_duplicate()

void GPENCIL_OT_layer_duplicate ( wmOperatorType ot)

◆ GPENCIL_OT_layer_duplicate_object()

void GPENCIL_OT_layer_duplicate_object ( wmOperatorType ot)

◆ GPENCIL_OT_layer_isolate()

void GPENCIL_OT_layer_isolate ( wmOperatorType ot)

◆ GPENCIL_OT_layer_mask_add()

void GPENCIL_OT_layer_mask_add ( wmOperatorType ot)

◆ GPENCIL_OT_layer_mask_move()

void GPENCIL_OT_layer_mask_move ( wmOperatorType ot)

◆ GPENCIL_OT_layer_mask_remove()

void GPENCIL_OT_layer_mask_remove ( wmOperatorType ot)

◆ GPENCIL_OT_layer_merge()

void GPENCIL_OT_layer_merge ( wmOperatorType ot)

◆ GPENCIL_OT_layer_move()

void GPENCIL_OT_layer_move ( wmOperatorType ot)

◆ GPENCIL_OT_layer_remove()

void GPENCIL_OT_layer_remove ( wmOperatorType ot)

◆ GPENCIL_OT_lock_all()

void GPENCIL_OT_lock_all ( wmOperatorType ot)

◆ GPENCIL_OT_lock_layer()

void GPENCIL_OT_lock_layer ( wmOperatorType ot)

◆ GPENCIL_OT_material_hide()

void GPENCIL_OT_material_hide ( wmOperatorType ot)

◆ GPENCIL_OT_material_isolate()

void GPENCIL_OT_material_isolate ( wmOperatorType ot)

◆ GPENCIL_OT_material_lock_all()

void GPENCIL_OT_material_lock_all ( wmOperatorType ot)

◆ GPENCIL_OT_material_lock_unused()

void GPENCIL_OT_material_lock_unused ( wmOperatorType ot)

◆ GPENCIL_OT_material_reveal()

void GPENCIL_OT_material_reveal ( wmOperatorType ot)

◆ GPENCIL_OT_material_select()

void GPENCIL_OT_material_select ( wmOperatorType ot)

◆ GPENCIL_OT_material_set()

void GPENCIL_OT_material_set ( wmOperatorType ot)

◆ GPENCIL_OT_material_unlock_all()

void GPENCIL_OT_material_unlock_all ( wmOperatorType ot)

◆ GPENCIL_OT_materials_copy_to_object()

void GPENCIL_OT_materials_copy_to_object ( wmOperatorType ot)

◆ GPENCIL_OT_reveal()

void GPENCIL_OT_reveal ( wmOperatorType ot)

◆ GPENCIL_OT_set_active_material()

void GPENCIL_OT_set_active_material ( wmOperatorType ot)

◆ GPENCIL_OT_stroke_arrange()

void GPENCIL_OT_stroke_arrange ( wmOperatorType ot)

◆ GPENCIL_OT_stroke_change_color()

void GPENCIL_OT_stroke_change_color ( wmOperatorType ot)

◆ GPENCIL_OT_unlock_all()

void GPENCIL_OT_unlock_all ( wmOperatorType ot)

◆ GPENCIL_OT_vertex_group_assign()

void GPENCIL_OT_vertex_group_assign ( wmOperatorType ot)

◆ GPENCIL_OT_vertex_group_deselect()

void GPENCIL_OT_vertex_group_deselect ( wmOperatorType ot)

◆ GPENCIL_OT_vertex_group_invert()

void GPENCIL_OT_vertex_group_invert ( wmOperatorType ot)

◆ GPENCIL_OT_vertex_group_normalize()

void GPENCIL_OT_vertex_group_normalize ( wmOperatorType ot)

◆ GPENCIL_OT_vertex_group_normalize_all()

void GPENCIL_OT_vertex_group_normalize_all ( wmOperatorType ot)

◆ GPENCIL_OT_vertex_group_remove_from()

void GPENCIL_OT_vertex_group_remove_from ( wmOperatorType ot)

◆ GPENCIL_OT_vertex_group_select()

void GPENCIL_OT_vertex_group_select ( wmOperatorType ot)

◆ GPENCIL_OT_vertex_group_smooth()

void GPENCIL_OT_vertex_group_smooth ( wmOperatorType ot)

◆ gpencil_reveal_exec()

static int gpencil_reveal_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_reveal_poll()

static bool gpencil_reveal_poll ( bContext C)
static

Definition at line 1076 of file gpencil_data.c.

References C, ED_gpencil_data_get_active(), and NULL.

Referenced by GPENCIL_OT_lock_all(), GPENCIL_OT_reveal(), and GPENCIL_OT_unlock_all().

◆ gpencil_reveal_select_frame()

static void gpencil_reveal_select_frame ( bContext C,
bGPDframe frame,
bool  select 
)
static

◆ gpencil_set_active_material_exec()

static int gpencil_set_active_material_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_stroke_arrange_exec()

static int gpencil_stroke_arrange_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_stroke_change_color_exec()

static int gpencil_stroke_change_color_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_unlock_all_exec()

static int gpencil_unlock_all_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_vertex_group_assign_exec()

static int gpencil_vertex_group_assign_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_vertex_group_deselect_exec()

static int gpencil_vertex_group_deselect_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_vertex_group_invert_exec()

static int gpencil_vertex_group_invert_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_vertex_group_normalize_all_exec()

static int gpencil_vertex_group_normalize_all_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_vertex_group_normalize_exec()

static int gpencil_vertex_group_normalize_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_vertex_group_poll()

static bool gpencil_vertex_group_poll ( bContext C)
static

◆ gpencil_vertex_group_remove_from_exec()

static int gpencil_vertex_group_remove_from_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_vertex_group_select_exec()

static int gpencil_vertex_group_select_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ gpencil_vertex_group_smooth_exec()

static int gpencil_vertex_group_smooth_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_vertex_group_weight_poll()

static bool gpencil_vertex_group_weight_poll ( bContext C)
static