Blender
V3.3
|
#include <math.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "DNA_gpencil_types.h"
#include "DNA_view3d_types.h"
#include "BKE_context.h"
#include "BKE_gpencil.h"
#include "BKE_gpencil_curve.h"
#include "BKE_gpencil_geom.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_gpencil.h"
#include "DEG_depsgraph.h"
#include "gpencil_intern.h"
Go to the source code of this file.
Functions | |
Enter Edit-Mode | |
static bool | gpencil_curve_edit_mode_poll (bContext *C) |
static int | gpencil_stroke_enter_editcurve_mode_exec (bContext *C, wmOperator *op) |
void | GPENCIL_OT_stroke_enter_editcurve_mode (wmOperatorType *ot) |
Set Handle Type | |
static int | gpencil_editcurve_set_handle_type_exec (bContext *C, wmOperator *op) |
void | GPENCIL_OT_stroke_editcurve_set_handle_type (wmOperatorType *ot) |
Operators for editing Grease Pencil strokes.
Definition in file gpencil_edit_curve.c.
Definition at line 43 of file gpencil_edit_curve.c.
References BKE_gpencil_layer_active_get(), C, CTX_data_active_object(), Object::data, GPENCIL_CURVE_EDIT_SESSIONS_ON, if(), NULL, OB_GPENCIL, and Object::type.
Referenced by GPENCIL_OT_stroke_editcurve_set_handle_type().
|
static |
Definition at line 132 of file gpencil_edit_curve.c.
References bGPDcurve_point::bezt, BKE_gpencil_editcurve_recalculate_handles(), BKE_gpencil_stroke_geometry_update(), C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), ELEM, BezTriple::f1, BezTriple::f2, BezTriple::f3, bGPDcurve_point::flag, GP_CURVE_POINT_SELECT, GP_EDITABLE_CURVES_BEGIN, GP_EDITABLE_CURVES_END, GP_STROKE_NEEDS_CURVE_UPDATE, BezTriple::h1, BezTriple::h2, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SELECT, and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_editcurve_set_handle_type().
void GPENCIL_OT_stroke_editcurve_set_handle_type | ( | wmOperatorType * | ot | ) |
Definition at line 178 of file gpencil_edit_curve.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_curve_edit_mode_poll(), gpencil_editcurve_set_handle_type_exec(), HD_ALIGN, HD_AUTO, HD_FREE, HD_VECT, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_gpencil().
void GPENCIL_OT_stroke_enter_editcurve_mode | ( | wmOperatorType * | ot | ) |
Definition at line 97 of file gpencil_edit_curve.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gpencil_active_layer_poll(), gpencil_stroke_enter_editcurve_mode_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), RNA_def_property_ui_range(), and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().
|
static |
Definition at line 58 of file gpencil_edit_curve.c.
References BKE_gpencil_editcurve_stroke_sync_selection(), BKE_gpencil_stroke_editcurve_update(), BKE_gpencil_stroke_geometry_update(), C, CTX_data_active_object(), bGPdata::curve_edit_threshold, Object::data, DEG_id_tag_update(), ELEM, bGPdata::flag, GP_CURVE_NEEDS_STROKE_UPDATE, GP_DATA_CURVE_EDIT_MODE, GP_STROKE_NEEDS_CURVE_UPDATE, GP_STROKE_SELECT, 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_float_get(), and WM_event_add_notifier().
Referenced by GPENCIL_OT_stroke_enter_editcurve_mode().