Preview Range Bugfix:
Removed some code that was causing problems and wasn't even needed. Now, there are no more problems when setting the preview range from the Action Editor when it was displaying an action that was scaled in the NLA.
This commit is contained in:
@@ -594,15 +594,6 @@ void anim_previewrange_set()
|
||||
mval[0]= rect.xmax;
|
||||
mval[1]= rect.ymax-2;
|
||||
areamouseco_to_ipoco(G.v2d, mval, &rectf.xmax, &rectf.ymax);
|
||||
|
||||
/* check if this is called from the action editor (with scaling) */
|
||||
if (curarea->spacetype == SPACE_ACTION) {
|
||||
/* if action is mapped in NLA, it returns a correction */
|
||||
if(G.saction->pin==0 && OBACT) {
|
||||
rectf.xmin= get_action_frame(OBACT, rectf.xmin);
|
||||
rectf.xmax= get_action_frame(OBACT, rectf.xmax);
|
||||
}
|
||||
}
|
||||
|
||||
/* set preview-range */
|
||||
G.scene->r.psfra= rectf.xmin;
|
||||
|
||||
Reference in New Issue
Block a user