Fixed a mistake where the hrad/tail radius UI numinput didnt check weather the bobne was connected before using the parents tail value for its head.
This commit is contained in:
@@ -1717,9 +1717,10 @@ static void v3d_editarmature_buts(uiBlock *block, Object *ob, float lim)
|
||||
ob_eul[0]= 180.0*ebone->roll/M_PI;
|
||||
uiDefButF(block, NUM, B_ARMATUREPANEL1, "Roll:", 10, 100, 140, 19, ob_eul, -lim, lim, 1000, 3, "");
|
||||
|
||||
|
||||
uiBlockBeginAlign(block);
|
||||
uiDefButF(block, NUM, B_ARMATUREPANEL1, "TipRadius:", 10, 150, 140, 19, &ebone->rad_tail, 0, lim, 10, 3, "");
|
||||
if (ebone->parent)
|
||||
if (ebone->parent && ebone->flag & BONE_CONNECTED )
|
||||
uiDefButF(block, NUM, B_ARMATUREPANEL1, "HeadRadius:", 10, 130, 140, 19, &ebone->parent->rad_tail, 0, lim, 10, 3, "");
|
||||
else
|
||||
uiDefButF(block, NUM, B_ARMATUREPANEL1, "HeadRadius:", 10, 130, 140, 19, &ebone->rad_head, 0, lim, 10, 3, "");
|
||||
|
||||
Reference in New Issue
Block a user