Blender
V3.3
|
#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 } |
Operators for dealing with GP data-blocks and layers.
Definition in file gpencil_data.c.
#define SELECTED 1 |
typedef struct tJoinGPencil_AdtFixData tJoinGPencil_AdtFixData |
anonymous enum |
Enumerator | |
---|---|
GP_LAYER_MOVE_UP | |
GP_LAYER_MOVE_DOWN |
Definition at line 370 of file gpencil_data.c.
anonymous enum |
Enumerator | |
---|---|
GP_LAYER_DUPLICATE_ALL | |
GP_LAYER_DUPLICATE_EMPTY |
Definition at line 448 of file gpencil_data.c.
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 |
Enumerator | |
---|---|
GP_FRAME_DUP_ACTIVE | |
GP_FRAME_DUP_ALL |
Definition at line 642 of file gpencil_data.c.
anonymous enum |
Enumerator | |
---|---|
GP_FRAME_CLEAN_FILL_ACTIVE | |
GP_FRAME_CLEAN_FILL_ALL |
Definition at line 701 of file gpencil_data.c.
anonymous enum |
Enumerator | |
---|---|
GP_LAYER_MERGE_ACTIVE | |
GP_LAYER_MERGE_ALL |
Definition at line 1320 of file gpencil_data.c.
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.
Definition at line 1325 of file gpencil_data.c.
References copy_v3_fl(), float(), bGPDlayer::frames, invert_m4_m4(), bGPDlayer::layer_invmat, bGPDlayer::layer_mat, bGPDlayer::line_change, LISTBASE_FOREACH, bGPDlayer::location, mul_v3_m4v3(), bGPDlayer::opacity, bGPDspoint::pressure, bGPDlayer::rotation, bGPDlayer::scale, bGPDspoint::strength, unit_m4(), bGPDspoint::x, and zero_v3().
Referenced by gpencil_merge_layer_exec().
bool ED_gpencil_add_lattice_modifier | ( | const bContext * | C, |
ReportList * | reports, | ||
Object * | ob, | ||
Object * | ob_latt | ||
) |
Definition at line 3704 of file gpencil_data.c.
References BKE_gpencil_modifiers_findby_type(), BKE_report(), C, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), ED_object_gpencil_modifier_add(), eGpencilModifierType_Lattice, Object::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NULL, LatticeGpencilModifierData::object, RPT_ERROR, and scene.
Referenced by ED_object_parent_set().
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().
Definition at line 347 of file gpencil_data.c.
References BKE_gpencil_layer_active_get(), C, ED_annotation_data_get_active(), and NULL.
Referenced by GPENCIL_OT_layer_annotation_move(), and GPENCIL_OT_layer_annotation_remove().
Definition at line 3030 of file gpencil_data.c.
References BKE_object_material_len_p(), C, CTX_data_active_object(), Object::data, OB_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_material_hide(), GPENCIL_OT_material_isolate(), GPENCIL_OT_material_lock_all(), GPENCIL_OT_material_reveal(), GPENCIL_OT_material_select(), GPENCIL_OT_material_set(), GPENCIL_OT_material_unlock_all(), and GPENCIL_OT_set_active_material().
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().
|
static |
Definition at line 2029 of file gpencil_data.c.
References BKE_brush_delete(), Paint::brush, Main::brushes, CTX_MODE_PAINT_GPENCIL, CTX_MODE_SCULPT_GPENCIL, CTX_MODE_VERTEX_GPENCIL, CTX_MODE_WEIGHT_GPENCIL, ListBase::first, GP_BRUSH_MATERIAL_PINNED, GP_BRUSH_PRESET_AIRBRUSH, GP_BRUSH_PRESET_CLONE_STROKE, GP_BRUSH_PRESET_DRAW_WEIGHT, GP_BRUSH_PRESET_SMOOTH_STROKE, GP_BRUSH_PRESET_TINT, GP_BRUSH_PRESET_UNKNOWN, GP_BRUSH_PRESET_VERTEX_DRAW, GP_BRUSH_PRESET_VERTEX_REPLACE, Brush::gpencil_sculpt_tool, Brush::gpencil_tool, Brush::gpencil_vertex_tool, Brush::gpencil_weight_tool, Brush::id, if(), ID::next, NULL, and OB_MODE_PAINT_GPENCIL.
Referenced by gpencil_brush_reset_all_exec().
|
static |
Definition at line 1996 of file gpencil_data.c.
References Main::brushes, CTX_MODE_PAINT_GPENCIL, CTX_MODE_SCULPT_GPENCIL, CTX_MODE_VERTEX_GPENCIL, CTX_MODE_WEIGHT_GPENCIL, ListBase::first, Brush::id, ID::next, and NULL.
Referenced by gpencil_brush_reset_all_exec().
|
static |
Definition at line 2097 of file gpencil_data.c.
References BKE_brush_gpencil_paint_presets(), BKE_brush_gpencil_sculpt_presets(), BKE_brush_gpencil_vertex_presets(), BKE_brush_gpencil_weight_presets(), BKE_paint_brush_set(), BKE_paint_toolslots_brush_validate(), Paint::brush, C, CTX_data_main(), CTX_data_mode_enum(), CTX_data_tool_settings(), CTX_MODE_PAINT_GPENCIL, CTX_MODE_SCULPT_GPENCIL, CTX_MODE_VERTEX_GPENCIL, CTX_MODE_WEIGHT_GPENCIL, DEG_relations_tag_update(), ToolSettings::gp_paint, ToolSettings::gp_sculptpaint, ToolSettings::gp_vertexpaint, ToolSettings::gp_weightpaint, gpencil_brush_delete_mode_brushes(), gpencil_brush_get_first_by_mode(), Brush::gpencil_sculpt_tool, Brush::gpencil_tool, Brush::gpencil_vertex_tool, Brush::gpencil_weight_tool, NA_EDITED, NC_BRUSH, NULL, OPERATOR_FINISHED, GpPaint::paint, GpVertexPaint::paint, GpSculptPaint::paint, GpWeightPaint::paint, and WM_main_add_notifier().
Referenced by GPENCIL_OT_brush_reset_all().
|
static |
Definition at line 1932 of file gpencil_data.c.
References BKE_gpencil_brush_preset_set(), Paint::brush, C, CTX_data_main(), CTX_data_mode_enum(), CTX_data_tool_settings(), CTX_MODE_PAINT_GPENCIL, CTX_MODE_SCULPT_GPENCIL, CTX_MODE_VERTEX_GPENCIL, CTX_MODE_WEIGHT_GPENCIL, ToolSettings::gp_paint, ToolSettings::gp_sculptpaint, ToolSettings::gp_vertexpaint, ToolSettings::gp_weightpaint, Brush::gpencil_settings, NA_EDITED, NC_BRUSH, NULL, OPERATOR_FINISHED, GpPaint::paint, GpVertexPaint::paint, GpSculptPaint::paint, GpWeightPaint::paint, BrushGpencilSettings::preset_type, and WM_main_add_notifier().
Referenced by GPENCIL_OT_brush_reset().
|
static |
Definition at line 86 of file gpencil_data.c.
References BKE_gpencil_data_addnew(), BKE_gpencil_layer_addnew(), BKE_report(), C, CTX_data_main(), DATA_, ED_annotation_data_get_pointers(), bGPdata::flag, GP_DATA_ANNOTATIONS, bGPdata::id, id_us_min(), NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_annotation_add().
Definition at line 78 of file gpencil_data.c.
References C, ED_annotation_data_get_pointers(), and NULL.
Referenced by GPENCIL_OT_annotation_add().
|
static |
Definition at line 156 of file gpencil_data.c.
References BKE_report(), C, ED_annotation_data_get_pointers(), bGPdata::id, id_us_min(), NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_data_unlink().
Definition at line 140 of file gpencil_data.c.
References C, ED_annotation_data_get_pointers(), bGPdata::flag, GP_DATA_ANNOTATIONS, and NULL.
Referenced by GPENCIL_OT_data_unlink().
|
static |
Definition at line 953 of file gpencil_data.c.
References BKE_gpencil_layer_frame_delete(), BKE_gpencil_layer_is_editable(), C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), bGPDframe::flag, GP_FRAME_SELECT, gpencil_frame_is_equal(), bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SELECTED, type, and WM_event_add_notifier().
Referenced by GPENCIL_OT_frame_clean_duplicate().
|
static |
Definition at line 706 of file gpencil_data.c.
References BKE_gpencil_free_stroke_weights(), BLI_freelinkN(), C, CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), GP_FRAME_CLEAN_FILL_ALL, GP_STROKE_NOFILL, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH_MUTABLE, MEM_freeN, MEM_SAFE_FREE, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_frame_clean_fill().
|
static |
Definition at line 786 of file gpencil_data.c.
References BKE_gpencil_free_stroke_weights(), BLI_freelinkN(), bool, C, CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), GP_FRAME_SELECT, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH_MUTABLE, MEM_freeN, MEM_SAFE_FREE, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_frame_clean_loose().
|
static |
Definition at line 647 of file gpencil_data.c.
References BKE_gpencil_frame_addcopy(), BKE_gpencil_layer_active_get(), C, RenderData::cfra, CTX_data_scene(), DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, GP_LAYER_LOCKED, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, Scene::r, RNA_enum_get(), scene, and WM_event_add_notifier().
Referenced by GPENCIL_OT_frame_duplicate().
Definition at line 870 of file gpencil_data.c.
References bGPDstroke::aspect_ratio, BLI_listbase_count(), bGPDstroke::caps, equals_v2v2(), equals_v3v3(), equals_v4v4(), ListBase::first, bGPDstroke::hardeness, bGPDstroke::mat_nr, bGPDstroke::next, NULL, bGPDstroke::points, bGPDspoint::pressure, bGPDspoint::strength, bGPDframe::strokes, bGPDstroke::thickness, bGPDstroke::totpoints, bGPDspoint::uv_fac, bGPDspoint::uv_rot, bGPDstroke::uv_rotation, bGPDstroke::uv_scale, bGPDstroke::uv_translation, bGPDspoint::vert_color, bGPDstroke::vert_color_fill, and bGPDspoint::x.
Referenced by gpencil_frame_clean_duplicate_exec().
|
static |
Definition at line 1019 of file gpencil_data.c.
References BKE_gpencil_layer_active_get(), C, DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, bGPDlayer::flag, GP_LAYER_HIDE, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_hide().
|
static |
Definition at line 1239 of file gpencil_data.c.
References BKE_gpencil_layer_active_get(), BKE_report(), C, DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, GP_LAYER_HIDE, GP_LAYER_LOCKED, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_layer_isolate().
Callback to pass to BKE_fcurves_main_cb() for RNA Paths attached to each F-Curve used in the AnimData.
Definition at line 2753 of file gpencil_data.c.
References BKE_animsys_fix_rna_path_rename(), BLI_ghashIterator_getKey(), BLI_ghashIterator_getValue(), FCurve::driver, DRIVER_TARGETS_LOOPER_END, DRIVER_TARGETS_USED_LOOPER_BEGIN, GHASH_ITER, bGPdata::id, LISTBASE_FOREACH, tJoinGPencil_AdtFixData::names_map, FCurve::rna_path, tJoinGPencil_AdtFixData::src_gpd, STREQ, tJoinGPencil_AdtFixData::tar_gpd, user_data, and ChannelDriver::variables.
Referenced by ED_gpencil_join_objects_exec().
|
static |
Definition at line 1521 of file gpencil_data.c.
References BKE_gpencil_layer_active_set(), BKE_reportf(), BLI_findlink(), C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, NA_EDITED, NA_SELECTED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_int_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_layer_active().
|
static |
Definition at line 195 of file gpencil_data.c.
References bGPDlayer::actframe, BKE_gpencil_data_addnew(), BKE_gpencil_layer_addnew(), BKE_gpencil_layer_frame_get(), BKE_report(), C, RenderData::cfra, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), Object::data, DATA_, DEG_id_tag_update(), ED_annotation_data_get_pointers(), GP_DATA_ANNOTATIONS, GP_GETFRAME_ADD_NEW, bGPdata::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, wmOperator::idname, NA_EDITED, NA_SELECTED, NC_GPENCIL, ND_DATA, NULL, OB_GPENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, wmOperator::reports, RPT_ERROR, scene, STREQ, Object::type, and WM_event_add_notifier().
Referenced by GPENCIL_OT_layer_add(), and GPENCIL_OT_layer_annotation_add().
|
static |
Definition at line 1464 of file gpencil_data.c.
References BKE_gpencil_layer_active_set(), BKE_gpencil_layer_addnew(), BKE_reportf(), BLI_findlink(), C, CTX_data_gpencil_data(), DATA_, DEG_id_tag_update(), bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, NA_EDITED, NA_SELECTED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_layer_change().
|
static |
Definition at line 1450 of file gpencil_data.c.
References C, wmOperatorType::name, OPERATOR_INTERFACE, wmOperator::type, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), and uiItemsEnumO().
Referenced by GPENCIL_OT_layer_change().
|
static |
Definition at line 453 of file gpencil_data.c.
References BKE_gpencil_layer_active_get(), BKE_gpencil_layer_active_set(), BKE_gpencil_layer_duplicate(), BLI_insertlinkafter(), BLI_insertlinkbefore(), BLI_uniquename(), bool, C, DATA_, DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, GP_LAYER_DUPLICATE_ALL, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPDlayer::info, bGPdata::layers, NA_EDITED, NA_SELECTED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_layer_duplicate().
|
static |
Definition at line 538 of file gpencil_data.c.
References BKE_gpencil_frame_addnew(), BKE_gpencil_layer_active_get(), BKE_gpencil_layer_addnew(), BKE_gpencil_object_material_ensure(), BKE_gpencil_stroke_duplicate(), BKE_object_material_get(), BLI_addtail(), C, copy_v4_v4(), CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), Object::data, DEG_id_tag_update(), GP_LAYER_COPY_OBJECT_ACT_FRAME, bGPdata::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, bGPDlayer::line_change, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, bGPDstroke::mat_nr, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OB_GPENCIL, bGPDlayer::onion_flag, bGPDlayer::opacity, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), bGPDframe::strokes, bGPDlayer::thickness, bGPDlayer::tintcolor, and WM_event_add_notifier().
Referenced by GPENCIL_OT_layer_duplicate_object().
Definition at line 521 of file gpencil_data.c.
References BKE_gpencil_layer_active_get(), C, CTX_data_active_object(), Object::data, NULL, OB_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_layer_duplicate_object().
|
static |
Definition at line 3746 of file gpencil_data.c.
References BKE_gpencil_layer_active_get(), BKE_gpencil_layer_mask_add(), BKE_gpencil_layer_mask_named_get(), BKE_gpencil_layer_mask_sort(), BKE_gpencil_layer_named_get(), BKE_report(), C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), bGPdata::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OB_GPENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_string_get(), RPT_ERROR, Object::type, and WM_event_add_notifier().
Referenced by GPENCIL_OT_layer_mask_add().
|
static |
Definition at line 3860 of file gpencil_data.c.
References bGPDlayer::act_mask, BKE_gpencil_layer_active_get(), BLI_assert, BLI_findlink(), BLI_listbase_link_move(), C, DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, mask(), bGPDlayer::mask_layers, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_layer_mask_move().
|
static |
Definition at line 3814 of file gpencil_data.c.
References BKE_gpencil_layer_active_get(), BKE_gpencil_layer_mask_remove(), BKE_gpencil_layer_mask_sort(), BLI_findlink(), C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, mask(), NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OB_GPENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::type, and WM_event_add_notifier().
Referenced by GPENCIL_OT_layer_mask_remove().
|
static |
Definition at line 375 of file gpencil_data.c.
References BKE_gpencil_layer_active_get(), BKE_gpencil_layer_mask_sort_all(), BLI_assert, BLI_listbase_link_move(), C, DEG_id_tag_update(), ED_annotation_data_get_active(), ED_gpencil_data_get_active(), ELEM, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, wmOperator::idname, bGPdata::layers, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), STREQ, and WM_event_add_notifier().
Referenced by GPENCIL_OT_layer_annotation_move(), and GPENCIL_OT_layer_move().
|
static |
Definition at line 279 of file gpencil_data.c.
References BKE_gpencil_free_data(), BKE_gpencil_layer_active_get(), BKE_gpencil_layer_active_set(), BKE_gpencil_layer_delete(), BKE_gpencil_layer_mask_sort_all(), BKE_id_free_us(), BKE_report(), C, CTX_data_main(), DEG_id_tag_update(), ED_annotation_data_get_active(), ED_annotation_data_get_pointers(), ED_gpencil_data_get_active(), ELEM, ListBase::first, bGPDlayer::flag, GP_LAYER_LOCKED, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, wmOperator::idname, bGPdata::layers, NA_EDITED, NA_SELECTED, NC_GPENCIL, ND_DATA, bGPDlayer::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bGPDlayer::prev, wmOperator::reports, RPT_ERROR, STREQ, and WM_event_add_notifier().
Referenced by GPENCIL_OT_layer_annotation_remove(), and GPENCIL_OT_layer_remove().
|
static |
Definition at line 1162 of file gpencil_data.c.
References C, DEG_id_tag_update(), ED_gpencil_data_get_active(), GP_LAYER_LOCKED, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by GPENCIL_OT_lock_all().
|
static |
Definition at line 3042 of file gpencil_data.c.
References BKE_gpencil_layer_is_editable(), BKE_gpencil_material(), BKE_object_material_len_p(), C, CTX_data_active_object(), DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ELEM, MaterialGPencilStyle::flag, GP_LAYER_ACTIVE, GP_MATERIAL_HIDE, GP_MATERIAL_LOCKED, Material::gp_style, bGPdata::id, Material::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bGPDstroke::prev, and WM_event_add_notifier().
Referenced by GPENCIL_OT_lock_layer().
|
static |
Definition at line 3226 of file gpencil_data.c.
References Object::actcol, BKE_gpencil_material(), BKE_gpencil_material_settings(), BKE_object_material_len_p(), C, color, CTX_data_active_object(), Object::data, DEG_id_tag_update(), GP_MATERIAL_HIDE, Material::gp_style, bGPdata::id, Material::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_material_hide().
|
static |
Definition at line 3120 of file gpencil_data.c.
References Object::actcol, BKE_gpencil_material(), BKE_gpencil_material_settings(), BKE_object_material_len_p(), BKE_report(), C, CTX_data_active_object(), DEG_id_tag_update(), ED_gpencil_data_get_active(), ELEM, MaterialGPencilStyle::flag, GP_MATERIAL_HIDE, GP_MATERIAL_LOCKED, Material::gp_style, bGPdata::id, Material::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_material_isolate().
|
static |
Definition at line 3344 of file gpencil_data.c.
References BKE_gpencil_material(), BKE_object_material_len_p(), C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), MaterialGPencilStyle::flag, GP_MATERIAL_LOCKED, bGPdata::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by GPENCIL_OT_material_lock_all().
|
static |
Definition at line 1853 of file gpencil_data.c.
References BKE_gpencil_layer_is_editable(), BKE_object_material_get(), BKE_object_material_len_p(), C, CTX_data_active_object(), DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ELEM, MaterialGPencilStyle::flag, GP_MATERIAL_LOCKED, GP_STROKE_SELECT, Material::gp_style, bGPdata::id, Material::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bGPDstroke::prev, and WM_event_add_notifier().
Referenced by GPENCIL_OT_material_lock_unused().
|
static |
Definition at line 3292 of file gpencil_data.c.
References BKE_gpencil_material(), BKE_object_material_len_p(), C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), MaterialGPencilStyle::flag, GP_MATERIAL_HIDE, bGPdata::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by GPENCIL_OT_material_reveal().
|
static |
Definition at line 3450 of file gpencil_data.c.
References Object::actcol, BKE_gpencil_material_settings(), BKE_gpencil_stroke_select_index_reset(), BKE_gpencil_stroke_select_index_set(), bool, C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ED_gpencil_stroke_material_editable(), ELEM, bGPDspoint::flag, GP_FRAME_SELECT, GP_SPOINT_SELECT, GP_STROKE_SELECT, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_material_select().
|
static |
Definition at line 3542 of file gpencil_data.c.
References Object::actcol, BKE_reportf(), C, CTX_data_active_object(), NA_EDITED, NA_SELECTED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, Object::totcol, and WM_event_add_notifier().
Referenced by GPENCIL_OT_material_set().
|
static |
Definition at line 3398 of file gpencil_data.c.
References BKE_gpencil_material(), BKE_object_material_len_p(), C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), MaterialGPencilStyle::flag, GP_MATERIAL_LOCKED, bGPdata::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by GPENCIL_OT_material_unlock_all().
|
static |
Definition at line 3646 of file gpencil_data.c.
References Object::actcol, BKE_gpencil_material(), BKE_gpencil_object_material_ensure(), BKE_object_material_get(), C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), DEG_id_tag_update(), ID_RECALC_COPY_ON_WRITE, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OB_GPENCIL, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), Object::totcol, and WM_event_add_notifier().
Referenced by GPENCIL_OT_materials_copy_to_object().
Definition at line 3632 of file gpencil_data.c.
References BKE_object_material_len_p(), C, CTX_data_active_object(), NULL, OB_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_materials_copy_to_object().
|
static |
Definition at line 1354 of file gpencil_data.c.
References apply_layer_settings(), BKE_gpencil_layer_active_get(), BKE_gpencil_layer_mask_cleanup(), BKE_report(), bGPDlayer::blend_mode, C, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_layer_merge(), eGplBlendMode_Regular, ELEM, bGPDlayer::flag, GP_LAYER_HIDE, GP_LAYER_LOCKED, GP_LAYER_MERGE_ACTIVE, GP_LAYER_MERGE_ALL, GP_LAYER_ONIONSKIN, GP_LAYER_USE_LIGHTS, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, ListBase::last, bGPdata::layers, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD_MUTABLE, NA_EDITED, NA_SELECTED, NC_GPENCIL, ND_DATA, NULL, bGPDlayer::onion_flag, OPERATOR_CANCELLED, OPERATOR_FINISHED, bGPDlayer::prev, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_layer_merge().
void GPENCIL_OT_annotation_add | ( | wmOperatorType * | ot | ) |
Definition at line 124 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_data_add_exec(), gpencil_data_add_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_brush_reset | ( | wmOperatorType * | ot | ) |
Definition at line 1982 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_brush_reset_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_brush_reset_all | ( | wmOperatorType * | ot | ) |
Definition at line 2192 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_brush_reset_all_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_data_unlink | ( | wmOperatorType * | ot | ) |
Definition at line 176 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_data_unlink_exec(), gpencil_data_unlink_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_frame_clean_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 994 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_frame_clean_duplicate_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_frame_clean_fill | ( | wmOperatorType * | ot | ) |
Definition at line 762 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_FRAME_CLEAN_FILL_ACTIVE, GP_FRAME_CLEAN_FILL_ALL, GP_FRAME_DUP_ACTIVE, gpencil_active_layer_poll(), gpencil_frame_clean_fill_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_frame_clean_loose | ( | wmOperatorType * | ot | ) |
Definition at line 844 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_frame_clean_loose_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_frame_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 677 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_FRAME_DUP_ACTIVE, GP_FRAME_DUP_ALL, gpencil_active_layer_poll(), gpencil_frame_duplicate_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_hide | ( | wmOperatorType * | ot | ) |
Definition at line 1054 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_hide_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_active | ( | wmOperatorType * | ot | ) |
Definition at line 1547 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_layer_active_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_add | ( | wmOperatorType * | ot | ) |
Definition at line 245 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_add_poll(), gpencil_layer_add_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_annotation_add | ( | wmOperatorType * | ot | ) |
Definition at line 264 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_add_annotation_poll(), gpencil_layer_add_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_annotation_move | ( | wmOperatorType * | ot | ) |
Definition at line 425 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_LAYER_MOVE_DOWN, GP_LAYER_MOVE_UP, gpencil_active_layer_annotation_poll(), gpencil_layer_move_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_annotation_remove | ( | wmOperatorType * | ot | ) |
Definition at line 355 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_annotation_poll(), gpencil_layer_remove_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_change | ( | wmOperatorType * | ot | ) |
Definition at line 1501 of file gpencil_data.c.
References wmOperatorType::description, DummyRNA_DEFAULT_items, ED_gpencil_layers_with_new_enum_itemf(), wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_layer_change_exec(), gpencil_layer_change_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_enum_funcs(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 492 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_LAYER_DUPLICATE_ALL, GP_LAYER_DUPLICATE_EMPTY, gpencil_active_layer_poll(), gpencil_layer_copy_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_duplicate_object | ( | wmOperatorType * | ot | ) |
Definition at line 609 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_LAYER_COPY_OBJECT_ACT_FRAME, GP_LAYER_COPY_OBJECT_ALL_FRAME, gpencil_layer_duplicate_object_exec(), gpencil_layer_duplicate_object_poll(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_isolate | ( | wmOperatorType * | ot | ) |
Definition at line 1296 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_isolate_layer_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_mask_add | ( | wmOperatorType * | ot | ) |
Definition at line 3797 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_add_poll(), gpencil_layer_mask_add_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_mask_move | ( | wmOperatorType * | ot | ) |
Definition at line 3885 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_LAYER_MOVE_DOWN, GP_LAYER_MOVE_UP, gpencil_active_layer_poll(), gpencil_layer_mask_move_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_mask_remove | ( | wmOperatorType * | ot | ) |
Definition at line 3846 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_layer_mask_remove_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_merge | ( | wmOperatorType * | ot | ) |
Definition at line 1425 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_LAYER_MERGE_ACTIVE, GP_LAYER_MERGE_ALL, gpencil_active_layer_poll(), gpencil_merge_layer_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_move | ( | wmOperatorType * | ot | ) |
Definition at line 402 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_LAYER_MOVE_DOWN, GP_LAYER_MOVE_UP, gpencil_active_layer_poll(), gpencil_layer_move_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_layer_remove | ( | wmOperatorType * | ot | ) |
Definition at line 333 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_layer_remove_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_lock_all | ( | wmOperatorType * | ot | ) |
Definition at line 1183 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_lock_all_exec(), gpencil_reveal_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_lock_layer | ( | wmOperatorType * | ot | ) |
Definition at line 3106 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, gpencil_active_layer_poll(), gpencil_lock_layer_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_material_hide | ( | wmOperatorType * | ot | ) |
Definition at line 3271 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_material_poll(), gpencil_material_hide_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_material_isolate | ( | wmOperatorType * | ot | ) |
Definition at line 3200 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_material_poll(), gpencil_material_isolate_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_material_lock_all | ( | wmOperatorType * | ot | ) |
Definition at line 3380 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_material_poll(), gpencil_material_lock_all_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_material_lock_unused | ( | wmOperatorType * | ot | ) |
Definition at line 1913 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_material_lock_unsused_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_material_reveal | ( | wmOperatorType * | ot | ) |
Definition at line 3327 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_material_poll(), gpencil_material_reveal_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_material_select | ( | wmOperatorType * | ot | ) |
Definition at line 3522 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_material_poll(), gpencil_material_select_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_material_set | ( | wmOperatorType * | ot | ) |
Definition at line 3564 of file gpencil_data.c.
References wmOperatorType::description, DummyRNA_DEFAULT_items, ED_gpencil_material_enum_itemf(), wmOperatorType::exec, wmOperatorType::flag, gpencil_active_material_poll(), gpencil_material_set_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_enum_funcs(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_material_unlock_all | ( | wmOperatorType * | ot | ) |
Definition at line 3433 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_material_poll(), gpencil_material_unlock_all_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_materials_copy_to_object | ( | wmOperatorType * | ot | ) |
Definition at line 3680 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_materials_copy_to_object_exec(), gpencil_materials_copy_to_object_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_reveal | ( | wmOperatorType * | ot | ) |
Definition at line 1142 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_reveal_exec(), gpencil_reveal_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_set_active_material | ( | wmOperatorType * | ot | ) |
Definition at line 3616 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_material_poll(), gpencil_set_active_material_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_arrange | ( | wmOperatorType * | ot | ) |
Definition at line 1726 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_STROKE_MOVE_BOTTOM, GP_STROKE_MOVE_DOWN, GP_STROKE_MOVE_TOP, GP_STROKE_MOVE_UP, gpencil_active_layer_poll(), gpencil_stroke_arrange_exec(), wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_change_color | ( | wmOperatorType * | ot | ) |
Definition at line 1834 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_stroke_change_color_exec(), wmOperatorType::idname, MAX_ID_NAME, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_unlock_all | ( | wmOperatorType * | ot | ) |
Definition at line 1222 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_reveal_poll(), gpencil_unlock_all_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_vertex_group_assign | ( | wmOperatorType * | ot | ) |
Definition at line 2264 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_vertex_group_assign_exec(), gpencil_vertex_group_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_vertex_group_deselect | ( | wmOperatorType * | ot | ) |
Definition at line 2367 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_vertex_group_deselect_exec(), gpencil_vertex_group_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_vertex_group_invert | ( | wmOperatorType * | ot | ) |
Definition at line 2435 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_vertex_group_invert_exec(), gpencil_vertex_group_weight_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_vertex_group_normalize | ( | wmOperatorType * | ot | ) |
Definition at line 2610 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_vertex_group_normalize_exec(), gpencil_vertex_group_weight_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_vertex_group_normalize_all | ( | wmOperatorType * | ot | ) |
Definition at line 2715 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_vertex_group_normalize_all_exec(), gpencil_vertex_group_weight_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_vertex_group_remove_from | ( | wmOperatorType * | ot | ) |
Definition at line 2299 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_vertex_group_poll(), gpencil_vertex_group_remove_from_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_vertex_group_select | ( | wmOperatorType * | ot | ) |
Definition at line 2333 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_vertex_group_poll(), gpencil_vertex_group_select_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_vertex_group_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 2532 of file gpencil_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_vertex_group_smooth_exec(), gpencil_vertex_group_weight_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
|
static |
Definition at line 1102 of file gpencil_data.c.
References C, DEG_id_tag_update(), ED_gpencil_data_get_active(), bGPdata::flag, GP_DATA_STROKE_EDITMODE, GP_LAYER_HIDE, gpencil_reveal_select_frame(), bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), select(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_reveal().
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().
Definition at line 1081 of file gpencil_data.c.
References C, ED_gpencil_stroke_can_use(), ListBase::first, bGPDspoint::flag, bGPDstroke::flag, GP_SPOINT_SELECT, GP_STROKE_SELECT, bGPDstroke::next, bGPDstroke::points, select(), SET_FLAG_FROM_TEST, and bGPDframe::strokes.
Referenced by gpencil_reveal_exec().
|
static |
Definition at line 3585 of file gpencil_data.c.
References Object::actcol, BKE_report(), C, CTX_data_active_object(), ED_gpencil_data_get_active(), GP_EDITABLE_STROKES_BEGIN, GP_EDITABLE_STROKES_END, GP_STROKE_SELECT, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by GPENCIL_OT_set_active_material().
|
static |
Definition at line 1576 of file gpencil_data.c.
References bGPDlayer::actframe, BKE_gpencil_layer_active_get(), BLI_addhead(), BLI_addtail(), BLI_assert, BLI_findindex(), BLI_freelistN(), BLI_genericNodeN(), BLI_insertlinkafter(), BLI_insertlinkbefore(), BLI_listbase_link_move(), BLI_remlink(), bool, C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ED_gpencil_stroke_material_editable(), ELEM, GP_FRAME_SELECT, GP_STROKE_MOVE_BOTTOM, GP_STROKE_MOVE_DOWN, GP_STROKE_MOVE_TOP, GP_STROKE_MOVE_UP, GP_STROKE_SELECT, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_arrange().
|
static |
Definition at line 1753 of file gpencil_data.c.
References Object::actcol, BKE_gpencil_material(), BKE_gpencil_object_material_index_get(), BKE_libblock_find_name(), bool, C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), DEG_id_tag_update(), ED_gpencil_data_get_active(), ED_gpencil_stroke_can_use(), ED_gpencil_stroke_material_editable(), ELEM, GP_FRAME_SELECT, GP_STROKE_SELECT, GPENCIL_MULTIEDIT_SESSIONS_ON, bGPdata::id, ID_MA, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH, MAX_ID_NAME, NA_EDITED, NC_GPENCIL, ND_DATA, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_change_color().
|
static |
Definition at line 1201 of file gpencil_data.c.
References C, DEG_id_tag_update(), ED_gpencil_data_get_active(), GP_LAYER_LOCKED, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by GPENCIL_OT_unlock_all().
|
static |
Definition at line 2244 of file gpencil_data.c.
References C, CTX_data_active_object(), CTX_data_tool_settings(), Object::data, DEG_id_tag_update(), ED_gpencil_vgroup_assign(), ELEM, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, ND_SPACE_PROPERTIES, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, ToolSettings::vgroup_weight, and WM_event_add_notifier().
Referenced by GPENCIL_OT_vertex_group_assign().
|
static |
Definition at line 2348 of file gpencil_data.c.
References C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), ED_gpencil_vgroup_deselect(), ELEM, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, ND_SPACE_PROPERTIES, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by GPENCIL_OT_vertex_group_deselect().
|
static |
Definition at line 2383 of file gpencil_data.c.
References BKE_defvert_add_index_notest(), BKE_defvert_find_index(), BKE_defvert_remove_group(), BKE_report(), BLI_findlink(), C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_tool_settings(), Object::data, DEG_id_tag_update(), DG_LOCK_WEIGHT, ELEM, bDeformGroup::flag, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, ND_SPACE_PROPERTIES, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, bGPdata::vertex_group_active_index, bGPdata::vertex_group_names, MDeformWeight::weight, and WM_event_add_notifier().
Referenced by GPENCIL_OT_vertex_group_invert().
|
static |
Definition at line 2626 of file gpencil_data.c.
References BKE_defvert_find_index(), BLI_findlink(), BLI_listbase_count(), C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_tool_settings(), Object::data, DEG_id_tag_update(), DG_LOCK_WEIGHT, ELEM, bDeformGroup::flag, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, MEM_callocN, MEM_SAFE_FREE, NA_EDITED, NC_GPENCIL, ND_DATA, ND_SPACE_PROPERTIES, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), v, bGPdata::vertex_group_active_index, bGPdata::vertex_group_names, MDeformWeight::weight, and WM_event_add_notifier().
Referenced by GPENCIL_OT_vertex_group_normalize_all().
|
static |
Definition at line 2551 of file gpencil_data.c.
References BKE_defvert_find_index(), BKE_report(), BLI_findlink(), C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_tool_settings(), Object::data, DEG_id_tag_update(), DG_LOCK_WEIGHT, ELEM, bDeformGroup::flag, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, ND_SPACE_PROPERTIES, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, bGPdata::vertex_group_active_index, bGPdata::vertex_group_names, MDeformWeight::weight, and WM_event_add_notifier().
Referenced by GPENCIL_OT_vertex_group_normalize().
Definition at line 2208 of file gpencil_data.c.
References BKE_id_is_editable(), BLI_listbase_is_empty(), C, CTX_data_active_object(), CTX_data_main(), Object::data, ELEM, Object::id, if(), Object::mode, OB_GPENCIL, OB_MODE_EDIT_GPENCIL, OB_MODE_SCULPT_GPENCIL, Object::type, and bGPdata::vertex_group_names.
Referenced by GPENCIL_OT_vertex_group_assign(), GPENCIL_OT_vertex_group_deselect(), GPENCIL_OT_vertex_group_remove_from(), and GPENCIL_OT_vertex_group_select().
|
static |
Definition at line 2280 of file gpencil_data.c.
References C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), ED_gpencil_vgroup_remove(), ELEM, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, ND_SPACE_PROPERTIES, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by GPENCIL_OT_vertex_group_remove_from().
|
static |
Definition at line 2314 of file gpencil_data.c.
References C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), ED_gpencil_vgroup_select(), ELEM, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, ND_SPACE_PROPERTIES, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by GPENCIL_OT_vertex_group_select().
|
static |
Definition at line 2451 of file gpencil_data.c.
References BKE_defvert_ensure_index(), BKE_defvert_find_weight(), BKE_report(), BLI_findlink(), C, CLAMP, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_tool_settings(), Object::data, DEG_id_tag_update(), DG_LOCK_WEIGHT, ELEM, bDeformGroup::flag, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, interpf(), line_point_factor_v3(), NA_EDITED, NC_GPENCIL, ND_DATA, ND_SPACE_PROPERTIES, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_float_get(), RNA_int_get(), RPT_ERROR, bGPdata::vertex_group_active_index, bGPdata::vertex_group_names, MDeformWeight::weight, WM_event_add_notifier(), and bGPDspoint::x.
Referenced by GPENCIL_OT_vertex_group_smooth().
Definition at line 2226 of file gpencil_data.c.
References BKE_id_is_editable(), BLI_listbase_is_empty(), C, CTX_data_active_object(), CTX_data_main(), Object::data, Object::id, if(), Object::mode, OB_GPENCIL, OB_MODE_WEIGHT_GPENCIL, Object::type, and bGPdata::vertex_group_names.
Referenced by GPENCIL_OT_vertex_group_invert(), GPENCIL_OT_vertex_group_normalize(), GPENCIL_OT_vertex_group_normalize_all(), and GPENCIL_OT_vertex_group_smooth().