50#define BBONE_SCALE_Y 3.0f
75 float *value =
static_cast<float *
>(value_p);
99 const float *value =
static_cast<const float *
>(value_p);
104 if (bh->
index == 0) {
134 if (pchan && pchan->bone_get(*ob)->segments > 1) {
194 Bone *pchan_bone = pchan ? pchan->bone_get(*ob) :
nullptr;
220 gzgt->
name =
"Armature Spline Widgets";
221 gzgt->
idname =
"VIEW3D_GGT_armature_spline";
Blender kernel action and pose functionality.
General operations, lookup, etc. for blender objects.
Object is a sort of wrapper for general info.
Read Blender memory allocation and freeing.
void get_color_3fv(int colorid, float col[3])
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
MINLINE void copy_v3_v3(float r[3], const float a[3])
void WM_gizmo_target_property_def_func(wmGizmo *gz, const char *idname, const wmGizmoPropertyFnParams *params)
const wmGizmoType * WM_gizmotype_find(const StringRef idname, bool quiet)
void mul_m4_m4m4(float R[4][4], const float A[4][4], const float B[4][4])
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
Base * BKE_view_layer_active_base_get(ViewLayer *view_layer)
static void gizmo_bbone_offset_set(const wmGizmo *, wmGizmoProperty *gz_prop, const void *value_p)
ViewLayer * CTX_data_view_layer(const bContext *C)
static void WIDGETGROUP_armature_spline_setup(const bContext *C, wmGizmoGroup *gzgroup)
void WM_gizmo_set_flag(wmGizmo *gz, const int flag, const bool enable)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
Object * BKE_object_pose_armature_get(Object *ob)
@ ED_GIZMO_MOVE_DRAW_FLAG_FILL
@ ED_GIZMO_MOVE_DRAW_FLAG_ALIGN_VIEW
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
@ ED_GIZMO_MOVE_STYLE_RING_2D
static bool WIDGETGROUP_armature_spline_poll(const bContext *C, wmGizmoGroupType *)
@ WM_GIZMOGROUPTYPE_PERSISTENT
void VIEW3D_GGT_armature_spline(wmGizmoGroupType *gzgt)
Main * CTX_data_main(const bContext *C)
static void gizmo_bbone_offset_get(const wmGizmo *, wmGizmoProperty *gz_prop, void *value_p)
MINLINE float max_ff(float a, float b)
bPoseChannel * BKE_pose_channel_active_if_bonecoll_visible(Object *ob) ATTR_WARN_UNUSED_RESULT
Scene * CTX_data_scene(const bContext *C)
wmKeyMap * WM_gizmogroup_setup_keymap_generic_maybe_drag(const wmGizmoGroupType *, wmKeyConfig *kc)
void copy_m4_m4(float m1[4][4], const float m2[4][4])
wmGizmo * WM_gizmo_new_ptr(const wmGizmoType *gzt, wmGizmoGroup *gzgroup, PointerRNA *properties)
bool BKE_id_is_editable(const Main *bmain, const ID *id)
static void WIDGETGROUP_armature_spline_refresh(const bContext *C, wmGizmoGroup *gzgroup)
View3D * CTX_wm_view3d(const bContext *C)
eView3D_GizmoFlag gizmo_flag
eArmature_Drawtype drawtype
float disp_tail_mat[4][4]
wmGizmoGroupFnRefresh refresh
wmGizmoGroupFnSetupKeymap setup_keymap
eWM_GizmoFlagGroupTypeFlag flag
wmGizmoPropertyFnSet value_set_fn
wmGizmoPropertyFnRangeGet range_get_fn
wmGizmoPropertyFnGet value_get_fn
const wmGizmoPropertyType * type
struct blender::wmGizmoProperty::@216011055122204070127377170176223170047224321165 custom_func