Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_armature.c
| Show First 20 Lines • Show All 308 Lines • ▼ Show 20 Lines | if (segments == 0) { | ||||
| segments = 1; | segments = 1; | ||||
| bbone = NULL; | bbone = NULL; | ||||
| if ((ob_arm->pose) && | if ((ob_arm->pose) && | ||||
| (pchan = BKE_pose_channel_find_name(ob_arm->pose, bone->name))) | (pchan = BKE_pose_channel_find_name(ob_arm->pose, bone->name))) | ||||
| { | { | ||||
| if (bone->segments > 1) { | if (bone->segments > 1) { | ||||
| segments = bone->segments; | segments = bone->segments; | ||||
| BKE_pchan_bbone_spline_setup(pchan, true, bbone_array); | BKE_pchan_bbone_spline_setup(pchan, true, false, bbone_array); | ||||
| bbone = bbone_array; | bbone = bbone_array; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| segments--; | segments--; | ||||
| /* compute root and tip */ | /* compute root and tip */ | ||||
| ▲ Show 20 Lines • Show All 352 Lines • Show Last 20 Lines | |||||