Nkey panel for creases median didn't work properly. Now it does as follows:
- if set to 0 or 1 it applies that value to all creases
- else it adds the diffference of median crease value and the button value

Bugfix #5122

Paths drawing option for Poses now uses entire startframe-endframe range.
Before it skipped the last frame for drawing.
This commit is contained in:
2006-11-04 10:09:05 +00:00
parent 2dcf23c327
commit 1ab71b2233
2 changed files with 9 additions and 23 deletions

View File

@@ -215,7 +215,7 @@ void pose_calculate_path(Object *ob)
for(pchan= ob->pose->chanbase.first; pchan; pchan= pchan->next) {
if(pchan->bone && (pchan->bone->flag & BONE_SELECTED)) {
if(arm->layer & pchan->bone->layer) {
pchan->pathlen= EFRA-SFRA;
pchan->pathlen= EFRA-SFRA+1;
if(pchan->path)
MEM_freeN(pchan->path);
pchan->path= MEM_callocN(3*pchan->pathlen*sizeof(float), "pchan path");
@@ -224,7 +224,7 @@ void pose_calculate_path(Object *ob)
}
cfra= CFRA;
for(CFRA=SFRA; CFRA<EFRA; CFRA++) {
for(CFRA=SFRA; CFRA<=EFRA; CFRA++) {
/* do all updates */
for(base= FIRSTBASE; base; base= base->next) {