Blender  V3.3
Classes | Functions
gpencil_mesh.cc File Reference
#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)
 

Detailed Description

Operator for converting Grease Pencil data to geometry.

Definition in file gpencil_mesh.cc.

Function Documentation

◆ animdata_keyframe_list_get()

static void animdata_keyframe_list_get ( ListBase ob_list,
const bool  only_selected,
GHash r_keyframes 
)
static

◆ gpencil_bake_duplilist()

static void gpencil_bake_duplilist ( Depsgraph depsgraph,
Scene scene,
Object ob,
ListBase list 
)
static

◆ gpencil_bake_free_ob_list()

static void gpencil_bake_free_ob_list ( ListBase list)
static

Definition at line 165 of file gpencil_mesh.cc.

References LISTBASE_FOREACH_MUTABLE, and MEM_SAFE_FREE.

Referenced by gpencil_bake_mesh_animation_exec().

◆ gpencil_bake_mesh_animation_exec()

static int gpencil_bake_mesh_animation_exec ( bContext C,
wmOperator op 
)
static

◆ gpencil_bake_mesh_animation_invoke()

static int gpencil_bake_mesh_animation_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
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().

◆ gpencil_bake_mesh_animation_poll()

static bool gpencil_bake_mesh_animation_poll ( bContext C)
static

◆ gpencil_bake_ob_list()

static bool gpencil_bake_ob_list ( bContext C,
Depsgraph depsgraph,
Scene scene,
ListBase list 
)
static

◆ gpencil_bake_set_frame_end()

static void gpencil_bake_set_frame_end ( struct Main UNUSEDmain,
struct Scene UNUSEDscene,
struct PointerRNA ptr 
)
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().

◆ GPENCIL_OT_bake_mesh_animation()

void GPENCIL_OT_bake_mesh_animation ( wmOperatorType ot)