From 624e93bbef8a8a34be822c1a98df131439c32788 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sat, 20 Apr 2019 18:06:31 +0300 Subject: B-Bones: split the Scale In/Out properties into X and Y values. As far as I can tell, there is no technical reason why the B-Bone segment thickness scaling can't be separated into two axes. The only downside is the increase in complexity of the B-Bone settings, but this is inevitable due to the increase in flexibility. Updating the file is somewhat complicated though, because F-Curves and drivers have to be duplicated and updated to the new names. Reviewers: campbellbarton Subscribers: icappiello, jpbouza Differential Revision: https://developer.blender.org/D4716 --- source/blender/blenloader/intern/versioning_270.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/blenloader/intern/versioning_270.c') diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c index bd405bd6410..20b2bfd95c8 100644 --- a/source/blender/blenloader/intern/versioning_270.c +++ b/source/blender/blenloader/intern/versioning_270.c @@ -256,8 +256,8 @@ static void do_version_action_editor_properties_region(ListBase *regionbase) static void do_version_bones_super_bbone(ListBase *lb) { for (Bone *bone = lb->first; bone; bone = bone->next) { - bone->scaleIn = 1.0f; - bone->scaleOut = 1.0f; + bone->scale_in_x = bone->scale_in_y = 1.0f; + bone->scale_out_x = bone->scale_out_y = 1.0f; do_version_bones_super_bbone(&bone->childbase); } @@ -1338,8 +1338,8 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *bmain) if (ob->pose) { for (bPoseChannel *pchan = ob->pose->chanbase.first; pchan; pchan = pchan->next) { /* see do_version_bones_super_bbone()... */ - pchan->scaleIn = 1.0f; - pchan->scaleOut = 1.0f; + pchan->scale_in_x = pchan->scale_in_y = 1.0f; + pchan->scale_out_x = pchan->scale_out_y = 1.0f; /* also make sure some legacy (unused for over a decade) flags are unset, * so that we can reuse them for stuff that matters now... -- cgit v1.2.3