|
This patch replaces the Hinge/No Scale options of bones by the ability to choose any bone upper in the chain as rotation/scale reference.
So choosing the immediate parent is usual behavior, choosing none is old Hinge and/or No Scale, and choosing another bone… is new option!
On a code level, it adds two new rot_parent and scale_parent bones pointers to each bone, and adapt the pose bone evaluation code, as well as many editing code (to check/avoid invalid situations when adding/reparenting/removing/etc. bones in EditMode).
Coded from an idea of Bassam Kurdali (which did first tests of this patch on a user POV). Patch not yet definitive, have a few additional suggestions to implement.
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+522 lines, -107 lines) |
Patch |
 |
|
release/scripts/startup/bl_ui/properties_data_bone.py
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
|
release/scripts/startup/bl_ui/space_view3d.py
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
|
source/blender/blenkernel/BKE_blender.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
|
source/blender/blenkernel/intern/armature.c
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+82 lines, -17 lines |
0 comments
|
Download
|
 |
|
source/blender/blenloader/intern/readfile.c
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+30 lines, -1 line |
0 comments
|
Download
|
 |
|
source/blender/blenloader/intern/writefile.c
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+11 lines, -1 line |
0 comments
|
Download
|
 |
|
source/blender/editors/armature/editarmature.c
|
View
|
1
2
3
4
5
6
7
8
|
32 chunks |
+217 lines, -63 lines |
0 comments
|
Download
|
 |
|
source/blender/editors/armature/editarmature_generate.c
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
|
source/blender/editors/armature/editarmature_retarget.c
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
|
source/blender/editors/armature/editarmature_sketch.c
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
|
source/blender/editors/include/ED_armature.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
|
source/blender/editors/transform/transform_conversions.c
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
|
source/blender/makesdna/DNA_armature_types.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
|
source/blender/makesrna/intern/rna_armature.c
|
View
|
1
2
3
4
5
6
7
8
|
8 chunks |
+159 lines, -12 lines |
0 comments
|
Download
|
Total messages: 9
|