Blender
V3.3
|
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_defaults.h"
#include "DNA_gpencil_modifier_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_listbase.h"
#include "BLI_string_utf8.h"
#include "BLI_string_utils.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_gpencil.h"
#include "BKE_gpencil_modifier.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_query.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "BLT_translation.h"
#include "UI_interface.h"
#include "WM_api.h"
#include "WM_types.h"
#include "object_intern.h"
Go to the source code of this file.
Enumerations | |
enum | { GP_SEGEMENT_MOVE_UP = -1 , GP_SEGEMENT_MOVE_DOWN = 1 } |
Variables | |
static const EnumPropertyItem | gpencil_modifier_apply_as_items [] |
anonymous enum |
Enumerator | |
---|---|
GP_SEGEMENT_MOVE_UP | |
GP_SEGEMENT_MOVE_DOWN |
Definition at line 1096 of file object_gpencil_modifier.c.
|
static |
Definition at line 955 of file object_gpencil_modifier.c.
References BLI_uniquename_cb(), C, dash_segment_name_exists_fn(), DATA_, DEG_id_tag_update(), DashGpencilModifierSegment::dmd, DNA_struct_default_get, ED_object_active_context(), eGpencilModifierType_Dash, gpencil_edit_modifier_property_get(), Object::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, MEM_malloc_arrayN, MEM_SAFE_FREE, DashGpencilModifierSegment::name, NC_OBJECT, ND_MODIFIER, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, DashGpencilModifierData::segment_active_index, DashGpencilModifierData::segments, DashGpencilModifierData::segments_len, and WM_event_add_notifier().
Referenced by dash_segment_add_invoke(), and GPENCIL_OT_segment_add().
|
static |
Definition at line 996 of file object_gpencil_modifier.c.
References C, dash_segment_add_exec(), gpencil_edit_modifier_invoke_properties(), NULL, and OPERATOR_CANCELLED.
Referenced by GPENCIL_OT_segment_add().
|
static |
Definition at line 1101 of file object_gpencil_modifier.c.
References C, DEG_id_tag_update(), ED_object_active_context(), eGpencilModifierType_Dash, GP_SEGEMENT_MOVE_DOWN, GP_SEGEMENT_MOVE_UP, gpencil_edit_modifier_property_get(), Object::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, NC_OBJECT, ND_MODIFIER, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), DashGpencilModifierData::segment_active_index, DashGpencilModifierData::segments, DashGpencilModifierData::segments_len, SWAP, and WM_event_add_notifier().
Referenced by dash_segment_move_invoke(), and GPENCIL_OT_segment_move().
|
static |
Definition at line 1149 of file object_gpencil_modifier.c.
References C, dash_segment_move_exec(), gpencil_edit_modifier_invoke_properties(), NULL, and OPERATOR_CANCELLED.
Referenced by GPENCIL_OT_segment_move().
Definition at line 944 of file object_gpencil_modifier.c.
References DashGpencilModifierSegment::name, DashGpencilModifierData::segments, DashGpencilModifierData::segments_len, and STREQ.
Referenced by dash_segment_add_exec().
Definition at line 939 of file object_gpencil_modifier.c.
References C, and gpencil_edit_modifier_poll_generic().
Referenced by GPENCIL_OT_segment_add(), GPENCIL_OT_segment_move(), and GPENCIL_OT_segment_remove().
|
static |
Definition at line 1021 of file object_gpencil_modifier.c.
References C, DEG_id_tag_update(), ED_object_active_context(), eGpencilModifierType_Dash, gpencil_edit_modifier_property_get(), Object::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, MAX2, MEM_freeN, MEM_malloc_arrayN, MEM_SAFE_FREE, NC_OBJECT, ND_MODIFIER, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, DashGpencilModifierData::segment_active_index, DashGpencilModifierData::segments, DashGpencilModifierData::segments_len, and WM_event_add_notifier().
Referenced by dash_segment_remove_invoke(), and GPENCIL_OT_segment_remove().
|
static |
Definition at line 1068 of file object_gpencil_modifier.c.
References C, dash_segment_remove_exec(), gpencil_edit_modifier_invoke_properties(), NULL, and OPERATOR_CANCELLED.
Referenced by GPENCIL_OT_segment_remove().
GpencilModifierData* ED_object_gpencil_modifier_add | ( | ReportList * | reports, |
Main * | bmain, | ||
Scene * | UNUSEDscene, | ||
Object * | ob, | ||
const char * | name, | ||
int | type | ||
) |
Definition at line 57 of file object_gpencil_modifier.c.
References BKE_gpencil_modifier_get_info(), BKE_gpencil_modifier_new(), BKE_gpencil_modifier_unique_name(), BKE_gpencil_modifiers_findby_type(), BKE_report(), BKE_reportf(), BLI_addtail(), BLI_strncpy_utf8(), Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), eGpencilModifierMode_Editmode, eGpencilModifierTypeFlag_Single, eGpencilModifierTypeFlag_SupportsEditmode, GpencilModifierTypeInfo::flags, Object::greasepencil_modifiers, bGPdata::id, Object::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, GpencilModifierData::mode, GpencilModifierData::name, ID::name, NULL, OB_GPENCIL, RPT_WARNING, type, and Object::type.
Referenced by gpencil_modifier_add_exec().
bool ED_object_gpencil_modifier_apply | ( | Main * | bmain, |
ReportList * | reports, | ||
Depsgraph * | depsgraph, | ||
Object * | ob, | ||
GpencilModifierData * | md, | ||
int | UNUSEDmode | ||
) |
Definition at line 256 of file object_gpencil_modifier.c.
References BKE_gpencil_modifier_free(), BKE_report(), BLI_remlink(), Object::data, depsgraph, ListBase::first, gpencil_modifier_apply_obdata(), Object::greasepencil_modifiers, Object::mode, OB_GPENCIL, OB_MODE_OBJECT, RPT_ERROR, RPT_INFO, and Object::type.
Referenced by gpencil_modifier_apply_exec().
Definition at line 143 of file object_gpencil_modifier.c.
References DEG_id_tag_update(), DEG_relations_tag_update(), ListBase::first, gpencil_object_modifier_remove(), Object::greasepencil_modifiers, Object::id, ID_RECALC_GEOMETRY, and GpencilModifierData::next.
bool ED_object_gpencil_modifier_copy | ( | ReportList * | reports, |
Object * | ob, | ||
GpencilModifierData * | md | ||
) |
Definition at line 294 of file object_gpencil_modifier.c.
References BKE_gpencil_modifier_copydata(), BKE_gpencil_modifier_get_info(), BKE_gpencil_modifier_new(), BKE_gpencil_modifier_unique_name(), BKE_gpencil_modifiers_findby_type(), BKE_report(), BLI_insertlinkafter(), eGpencilModifierFlag_OverrideLibrary_Local, eGpencilModifierTypeFlag_Single, GpencilModifierData::flag, GpencilModifierTypeInfo::flags, Object::greasepencil_modifiers, RPT_WARNING, type, and GpencilModifierData::type.
Referenced by gpencil_modifier_copy_exec().
void ED_object_gpencil_modifier_copy_to_object | ( | Object * | ob_dst, |
GpencilModifierData * | md | ||
) |
Definition at line 317 of file object_gpencil_modifier.c.
References BKE_object_copy_gpencil_modifier(), DEG_id_tag_update(), Object::id, ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NC_OBJECT, ND_MODIFIER, and WM_main_add_notifier().
Referenced by datastack_drop_copy().
bool ED_object_gpencil_modifier_move_down | ( | ReportList * | UNUSEDreports, |
Object * | ob, | ||
GpencilModifierData * | md | ||
) |
Definition at line 178 of file object_gpencil_modifier.c.
References BLI_insertlinkafter(), BLI_remlink(), Object::greasepencil_modifiers, and GpencilModifierData::next.
Referenced by ED_object_gpencil_modifier_move_to_index(), and gpencil_modifier_move_down_exec().
bool ED_object_gpencil_modifier_move_to_index | ( | ReportList * | reports, |
Object * | ob, | ||
GpencilModifierData * | md, | ||
const int | index | ||
) |
Definition at line 190 of file object_gpencil_modifier.c.
References BKE_report(), BLI_assert, BLI_findindex(), BLI_listbase_count(), DEG_id_tag_update(), ED_object_gpencil_modifier_move_down(), ED_object_gpencil_modifier_move_up(), Object::greasepencil_modifiers, Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_MODIFIER, NULL, RPT_WARNING, and WM_main_add_notifier().
Referenced by datastack_drop_reorder(), and gpencil_modifier_move_to_index_exec().
bool ED_object_gpencil_modifier_move_up | ( | ReportList * | UNUSEDreports, |
Object * | ob, | ||
GpencilModifierData * | md | ||
) |
Definition at line 166 of file object_gpencil_modifier.c.
References BLI_insertlinkbefore(), BLI_remlink(), Object::greasepencil_modifiers, and GpencilModifierData::prev.
Referenced by ED_object_gpencil_modifier_move_to_index(), and gpencil_modifier_move_up_exec().
bool ED_object_gpencil_modifier_remove | ( | ReportList * | reports, |
Main * | bmain, | ||
Object * | ob, | ||
GpencilModifierData * | md | ||
) |
Definition at line 122 of file object_gpencil_modifier.c.
References BKE_reportf(), DEG_id_tag_update(), DEG_relations_tag_update(), gpencil_object_modifier_remove(), Object::id, ID_RECALC_GEOMETRY, GpencilModifierData::name, ID::name, and RPT_ERROR.
Referenced by gpencil_modifier_remove_exec().
|
static |
event | If this isn't NULL, the operator will also look for panels underneath the cursor with custom-data set to a modifier. |
r_retval | This should be used if #event is used in order to return OPERATOR_PASS_THROUGH to check other operators with the same key set. |
Definition at line 478 of file object_gpencil_modifier.c.
References BLI_assert, C, CTX_data_pointer_get_type(), PointerRNA::data, GpencilModifierData::name, NULL, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_pointer_is_null(), RNA_string_set(), RNA_struct_is_a(), RNA_struct_property_is_set(), PointerRNA::type, and UI_region_panel_custom_data_under_cursor().
Referenced by dash_segment_add_invoke(), dash_segment_move_invoke(), dash_segment_remove_invoke(), gpencil_modifier_apply_invoke(), gpencil_modifier_copy_invoke(), gpencil_modifier_copy_to_selected_invoke(), gpencil_modifier_move_down_invoke(), gpencil_modifier_move_to_index_invoke(), gpencil_modifier_move_up_invoke(), and gpencil_modifier_remove_invoke().
Definition at line 453 of file object_gpencil_modifier.c.
References C, and gpencil_edit_modifier_poll_generic().
Referenced by OBJECT_OT_gpencil_modifier_copy().
Definition at line 446 of file object_gpencil_modifier.c.
References C, and gpencil_edit_modifier_poll_generic().
Referenced by OBJECT_OT_gpencil_modifier_apply(), OBJECT_OT_gpencil_modifier_move_down(), OBJECT_OT_gpencil_modifier_move_to_index(), OBJECT_OT_gpencil_modifier_move_up(), and OBJECT_OT_gpencil_modifier_remove().
|
static |
Definition at line 417 of file object_gpencil_modifier.c.
References BKE_gpencil_modifier_is_nonlocal_in_liboverride(), BKE_id_is_editable(), C, CTX_data_main(), CTX_data_pointer_get_type(), CTX_wm_operator_poll_msg_set(), PointerRNA::data, ED_object_active_context(), Object::id, is_liboverride_allowed, mod(), PointerRNA::owner_id, ptr, and Object::type.
Referenced by dash_segment_poll(), gpencil_edit_modifier_liboverride_allowed_poll(), and gpencil_edit_modifier_poll().
|
static |
Definition at line 458 of file object_gpencil_modifier.c.
References MAX_NAME, NULL, ot, PROP_HIDDEN, RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by OBJECT_OT_gpencil_modifier_apply(), OBJECT_OT_gpencil_modifier_copy(), OBJECT_OT_gpencil_modifier_copy_to_selected(), OBJECT_OT_gpencil_modifier_move_down(), OBJECT_OT_gpencil_modifier_move_up(), and OBJECT_OT_gpencil_modifier_remove().
|
static |
Definition at line 519 of file object_gpencil_modifier.c.
References BKE_gpencil_modifiers_findby_name(), MAX_NAME, modifier_name, NULL, wmOperator::ptr, RNA_string_get(), type, and GpencilModifierData::type.
Referenced by dash_segment_add_exec(), dash_segment_move_exec(), dash_segment_remove_exec(), gpencil_modifier_apply_exec(), gpencil_modifier_copy_exec(), gpencil_modifier_copy_to_selected_exec(), gpencil_modifier_move_down_exec(), gpencil_modifier_move_to_index_exec(), gpencil_modifier_move_up_exec(), and gpencil_modifier_remove_exec().
|
static |
Definition at line 465 of file object_gpencil_modifier.c.
References ot, PROP_HIDDEN, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by OBJECT_OT_gpencil_modifier_apply(), and OBJECT_OT_gpencil_modifier_remove().
|
static |
Definition at line 326 of file object_gpencil_modifier.c.
References C, CTX_data_main(), CTX_data_scene(), ED_object_active_context(), ED_object_gpencil_modifier_add(), NC_OBJECT, ND_MODIFIER, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), scene, type, and WM_event_add_notifier().
Referenced by OBJECT_OT_gpencil_modifier_add().
|
static |
Definition at line 342 of file object_gpencil_modifier.c.
References Freestyle::a, BKE_gpencil_modifier_get_info(), C, ED_object_active_context(), eGpencilModifierTypeFlag_NoUserAdd, GpencilModifierTypeInfo::flags, EnumPropertyItem::identifier, NULL, RNA_enum_item_add(), RNA_enum_item_end(), rna_enum_object_greasepencil_modifier_type_items, and EnumPropertyItem::value.
Referenced by OBJECT_OT_gpencil_modifier_add().
|
static |
Definition at line 720 of file object_gpencil_modifier.c.
References BKE_reportf(), BLI_listbase_count(), C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), DEG_id_tag_update(), depsgraph, ED_object_active_context(), ED_object_gpencil_modifier_apply(), gpencil_edit_modifier_property_get(), Object::id, ID_RECALC_GEOMETRY, ReportList::list, MAX_NAME, GpencilModifierData::name, NC_OBJECT, ND_MODIFIER, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_INFO, and WM_event_add_notifier().
Referenced by gpencil_modifier_apply_invoke(), and OBJECT_OT_gpencil_modifier_apply().
|
static |
Definition at line 758 of file object_gpencil_modifier.c.
References C, gpencil_edit_modifier_invoke_properties(), and gpencil_modifier_apply_exec().
Referenced by OBJECT_OT_gpencil_modifier_apply().
|
static |
Definition at line 227 of file object_gpencil_modifier.c.
References GpencilModifierTypeInfo::bakeModifier, BKE_gpencil_modifier_get_info(), BKE_report(), Object::data, DEG_id_tag_update(), depsgraph, ELEM, Object::id, ID_RECALC_GEOMETRY, GpencilModifierTypeInfo::isDisabled, NULL, OB_GPENCIL, RPT_ERROR, GpencilModifierData::type, and Object::type.
Referenced by ED_object_gpencil_modifier_apply().
|
static |
Definition at line 802 of file object_gpencil_modifier.c.
References C, DEG_id_tag_update(), ED_object_active_context(), ED_object_gpencil_modifier_copy(), gpencil_edit_modifier_property_get(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_MODIFIER, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_event_add_notifier().
Referenced by gpencil_modifier_copy_invoke(), and OBJECT_OT_gpencil_modifier_copy().
|
static |
Definition at line 817 of file object_gpencil_modifier.c.
References C, gpencil_edit_modifier_invoke_properties(), and gpencil_modifier_copy_exec().
Referenced by OBJECT_OT_gpencil_modifier_copy().
|
static |
Definition at line 843 of file object_gpencil_modifier.c.
References BKE_object_copy_gpencil_modifier(), BKE_reportf(), C, CTX_DATA_BEGIN, CTX_DATA_END, DEG_id_tag_update(), ED_object_active_context(), gpencil_edit_modifier_property_get(), Object::id, ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, ID::name, NC_OBJECT, ND_MODIFIER, OB_GPENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_WARNING, Object::type, and WM_event_add_notifier().
Referenced by gpencil_modifier_copy_to_selected_invoke(), and OBJECT_OT_gpencil_modifier_copy_to_selected().
|
static |
Definition at line 884 of file object_gpencil_modifier.c.
References C, gpencil_edit_modifier_invoke_properties(), and gpencil_modifier_copy_to_selected_exec().
Referenced by OBJECT_OT_gpencil_modifier_copy_to_selected().
Definition at line 895 of file object_gpencil_modifier.c.
References C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_wm_operator_poll_msg_set(), ED_object_active_context(), OB_GPENCIL, and Object::type.
Referenced by OBJECT_OT_gpencil_modifier_copy_to_selected().
|
static |
Definition at line 637 of file object_gpencil_modifier.c.
References C, DEG_id_tag_update(), ED_object_active_context(), ED_object_gpencil_modifier_move_down(), gpencil_edit_modifier_property_get(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_MODIFIER, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_event_add_notifier().
Referenced by gpencil_modifier_move_down_invoke(), and OBJECT_OT_gpencil_modifier_move_down().
|
static |
Definition at line 652 of file object_gpencil_modifier.c.
References C, gpencil_edit_modifier_invoke_properties(), and gpencil_modifier_move_down_exec().
Referenced by OBJECT_OT_gpencil_modifier_move_down().
|
static |
Definition at line 678 of file object_gpencil_modifier.c.
References C, ED_object_active_context(), ED_object_gpencil_modifier_move_to_index(), gpencil_edit_modifier_property_get(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, and RNA_int_get().
Referenced by gpencil_modifier_move_to_index_invoke(), and OBJECT_OT_gpencil_modifier_move_to_index().
|
static |
Definition at line 690 of file object_gpencil_modifier.c.
References C, gpencil_edit_modifier_invoke_properties(), and gpencil_modifier_move_to_index_exec().
Referenced by OBJECT_OT_gpencil_modifier_move_to_index().
|
static |
Definition at line 596 of file object_gpencil_modifier.c.
References C, DEG_id_tag_update(), ED_object_active_context(), ED_object_gpencil_modifier_move_up(), gpencil_edit_modifier_property_get(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_MODIFIER, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_event_add_notifier().
Referenced by gpencil_modifier_move_up_invoke(), and OBJECT_OT_gpencil_modifier_move_up().
|
static |
Definition at line 611 of file object_gpencil_modifier.c.
References C, gpencil_edit_modifier_invoke_properties(), and gpencil_modifier_move_up_exec().
Referenced by OBJECT_OT_gpencil_modifier_move_up().
|
static |
Definition at line 542 of file object_gpencil_modifier.c.
References BKE_reportf(), C, CTX_data_main(), ED_object_active_context(), ED_object_gpencil_modifier_remove(), gpencil_edit_modifier_property_get(), MAX_NAME, GpencilModifierData::name, NC_OBJECT, ND_MODIFIER, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_INFO, and WM_event_add_notifier().
Referenced by gpencil_modifier_remove_invoke(), and OBJECT_OT_gpencil_modifier_remove().
|
static |
Definition at line 569 of file object_gpencil_modifier.c.
References C, gpencil_edit_modifier_invoke_properties(), and gpencil_modifier_remove_exec().
Referenced by OBJECT_OT_gpencil_modifier_remove().
|
static |
Definition at line 101 of file object_gpencil_modifier.c.
References BKE_gpencil_modifier_free(), BKE_object_free_derived_caches(), BLI_findindex(), BLI_remlink(), DEG_relations_tag_update(), and Object::greasepencil_modifiers.
Referenced by ED_object_gpencil_modifier_clear(), and ED_object_gpencil_modifier_remove().
void GPENCIL_OT_segment_add | ( | wmOperatorType * | ot | ) |
Definition at line 1004 of file object_gpencil_modifier.c.
References dash_segment_add_exec(), dash_segment_add_invoke(), dash_segment_poll(), wmOperatorType::description, edit_modifier_properties(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void GPENCIL_OT_segment_move | ( | wmOperatorType * | ot | ) |
Definition at line 1157 of file object_gpencil_modifier.c.
References dash_segment_move_exec(), dash_segment_move_invoke(), dash_segment_poll(), wmOperatorType::description, edit_modifier_properties(), wmOperatorType::exec, wmOperatorType::flag, GP_SEGEMENT_MOVE_DOWN, GP_SEGEMENT_MOVE_UP, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
void GPENCIL_OT_segment_remove | ( | wmOperatorType * | ot | ) |
Definition at line 1076 of file object_gpencil_modifier.c.
References dash_segment_poll(), dash_segment_remove_exec(), dash_segment_remove_invoke(), wmOperatorType::description, edit_modifier_properties(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
void OBJECT_OT_gpencil_modifier_add | ( | wmOperatorType * | ot | ) |
Definition at line 387 of file object_gpencil_modifier.c.
References wmOperatorType::description, ED_operator_object_active_editable(), eGpencilModifierType_Thick, wmOperatorType::exec, wmOperatorType::flag, gpencil_modifier_add_exec(), gpencil_modifier_add_itemf(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_enum_funcs(), rna_enum_object_greasepencil_modifier_type_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
void OBJECT_OT_gpencil_modifier_apply | ( | wmOperatorType * | ot | ) |
Definition at line 777 of file object_gpencil_modifier.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_edit_modifier_poll(), gpencil_edit_modifier_properties(), gpencil_edit_modifier_report_property(), gpencil_modifier_apply_as_items, gpencil_modifier_apply_exec(), gpencil_modifier_apply_invoke(), wmOperatorType::idname, wmOperatorType::invoke, MODIFIER_APPLY_DATA, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
void OBJECT_OT_gpencil_modifier_copy | ( | wmOperatorType * | ot | ) |
Definition at line 826 of file object_gpencil_modifier.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_edit_modifier_liboverride_allowed_poll(), gpencil_edit_modifier_properties(), gpencil_modifier_copy_exec(), gpencil_modifier_copy_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void OBJECT_OT_gpencil_modifier_copy_to_selected | ( | wmOperatorType * | ot | ) |
Definition at line 922 of file object_gpencil_modifier.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_edit_modifier_properties(), gpencil_modifier_copy_to_selected_exec(), gpencil_modifier_copy_to_selected_invoke(), gpencil_modifier_copy_to_selected_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void OBJECT_OT_gpencil_modifier_move_down | ( | wmOperatorType * | ot | ) |
Definition at line 661 of file object_gpencil_modifier.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_edit_modifier_poll(), gpencil_edit_modifier_properties(), gpencil_modifier_move_down_exec(), gpencil_modifier_move_down_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void OBJECT_OT_gpencil_modifier_move_to_index | ( | wmOperatorType * | ot | ) |
Definition at line 699 of file object_gpencil_modifier.c.
References wmOperatorType::description, edit_modifier_properties(), wmOperatorType::exec, wmOperatorType::flag, gpencil_edit_modifier_poll(), gpencil_modifier_move_to_index_exec(), gpencil_modifier_move_to_index_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
void OBJECT_OT_gpencil_modifier_move_up | ( | wmOperatorType * | ot | ) |
Definition at line 620 of file object_gpencil_modifier.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_edit_modifier_poll(), gpencil_edit_modifier_properties(), gpencil_modifier_move_up_exec(), gpencil_modifier_move_up_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void OBJECT_OT_gpencil_modifier_remove | ( | wmOperatorType * | ot | ) |
Definition at line 578 of file object_gpencil_modifier.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_edit_modifier_poll(), gpencil_edit_modifier_properties(), gpencil_edit_modifier_report_property(), gpencil_modifier_remove_exec(), gpencil_modifier_remove_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
|
static |
Definition at line 767 of file object_gpencil_modifier.c.
Referenced by OBJECT_OT_gpencil_modifier_apply().