Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_ghash.h"
#include "BLI_math.h"
#include "DNA_anim_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "BKE_anim_data.h"
#include "BKE_context.h"
#include "BKE_duplilist.h"
#include "BKE_gpencil_geom.h"
#include "BKE_layer.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "ED_gpencil.h"
#include "ED_transform_snap_object_context.h"
#include "gpencil_intern.h"
Go to the source code of this file.
Classes | |
struct | GpBakeOb |
Functions | |
static void | gpencil_bake_set_frame_end (struct Main *UNUSED(main), struct Scene *UNUSED(scene), struct PointerRNA *ptr) |
static bool | gpencil_bake_mesh_animation_poll (bContext *C) |
static void | animdata_keyframe_list_get (ListBase *ob_list, const bool only_selected, GHash *r_keyframes) |
static void | gpencil_bake_duplilist (Depsgraph *depsgraph, Scene *scene, Object *ob, ListBase *list) |
static bool | gpencil_bake_ob_list (bContext *C, Depsgraph *depsgraph, Scene *scene, ListBase *list) |
static void | gpencil_bake_free_ob_list (ListBase *list) |
static int | gpencil_bake_mesh_animation_exec (bContext *C, wmOperator *op) |
static int | gpencil_bake_mesh_animation_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) |
void | GPENCIL_OT_bake_mesh_animation (wmOperatorType *ot) |
Operator for converting Grease Pencil data to geometry.
Definition in file gpencil_mesh.cc.
|
static |
Definition at line 76 of file gpencil_mesh.cc.
References AnimData::action, BKE_animdata_from_id(), BLI_ghash_haskey(), BLI_ghash_insert(), bAction::curves, BezTriple::f2, Object::id, if(), LISTBASE_FOREACH, GpBakeOb::ob, POINTER_FROM_INT, SELECT, and BezTriple::vec.
|
static |
Definition at line 104 of file gpencil_mesh.cc.
References BLI_addtail(), depsgraph, free_object_duplilist(), LISTBASE_FOREACH, GpBakeOb::ob, OB_MESH, object_duplilist(), and scene.
Referenced by gpencil_bake_ob_list().
Definition at line 165 of file gpencil_mesh.cc.
References LISTBASE_FOREACH_MUTABLE, and MEM_SAFE_FREE.
Referenced by gpencil_bake_mesh_animation_exec().
|
static |
Definition at line 172 of file gpencil_mesh.cc.
References angle(), BKE_object_obdata_is_libdata(), BKE_report(), BKE_view_layer_non_active_selected_object(), C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), depsgraph, ED_gpencil_add_object(), RenderData::efra, ListBase::first, GP_TARGET_OB_SELECTED, gpencil_bake_free_ob_list(), gpencil_bake_ob_list(), View3D::local_view_uuid, View3D::localvd, OB_GPENCIL, offset, OPERATOR_CANCELLED, wmOperator::ptr, Scene::r, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), RNA_int_get(), RPT_INFO, RPT_WARNING, scene, RenderData::sfra, and Object::type.
Referenced by GPENCIL_OT_bake_mesh_animation().
|
static |
Definition at line 381 of file gpencil_mesh.cc.
References C, and WM_operator_props_dialog_popup().
Referenced by GPENCIL_OT_bake_mesh_animation().
Definition at line 59 of file gpencil_mesh.cc.
References blender::compositor::area(), C, CTX_data_mode_enum(), CTX_MODE_OBJECT, and CTX_wm_area().
Referenced by GPENCIL_OT_bake_mesh_animation().
|
static |
Definition at line 121 of file gpencil_mesh.cc.
References BLI_addtail(), C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, depsgraph, gpencil_bake_duplilist(), GpBakeOb::ob, OB_EMPTY, OB_MESH, scene, and Object::type.
Referenced by gpencil_bake_mesh_animation_exec().
|
static |
Definition at line 46 of file gpencil_mesh.cc.
References ptr, RNA_int_get(), and RNA_int_set().
Referenced by GPENCIL_OT_bake_mesh_animation().
void GPENCIL_OT_bake_mesh_animation | ( | wmOperatorType * | ot | ) |
Definition at line 390 of file gpencil_mesh.cc.
References DEG2RADF, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GP_REPROJECT_VIEW, GP_TARGET_OB_NEW, GP_TARGET_OB_SELECTED, gpencil_bake_mesh_animation_exec(), gpencil_bake_mesh_animation_invoke(), gpencil_bake_mesh_animation_poll(), gpencil_bake_set_frame_end(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_float_distance(), RNA_def_float_rotation(), RNA_def_int(), RNA_def_property_flag(), RNA_def_property_float_default(), RNA_def_property_update_runtime(), rna_gpencil_reproject_type_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_gpencil().