Orange bugfix; using in NLA window the Ckey option (Convert to NLA), did
not use the proper call to increase user count && set the action to get a tag "extern linked". This caused actions to get lost when indirectly linked from library files.
This commit is contained in:
@@ -351,7 +351,7 @@ static void convert_nla(short mval[2])
|
||||
|
||||
/* Link the action to the nstrip */
|
||||
nstrip->act = base->object->action;
|
||||
nstrip->act->id.us++;
|
||||
id_us_plus(&nstrip->act->id);
|
||||
calc_action_range(nstrip->act, &nstrip->actstart, &nstrip->actend);
|
||||
nstrip->start = nstrip->actstart;
|
||||
nstrip->end = nstrip->actend;
|
||||
|
||||
@@ -981,7 +981,8 @@ int blenderqread(unsigned short event, short val)
|
||||
screen_swapbuffers();
|
||||
}
|
||||
else if(event==3) {
|
||||
BKE_write_undo("10 timer");
|
||||
BIF_undo();
|
||||
BIF_redo();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -989,8 +990,7 @@ int blenderqread(unsigned short event, short val)
|
||||
|
||||
if(event==1) sprintf(tmpstr, "draw %%t|%d ms", time);
|
||||
if(event==2) sprintf(tmpstr, "d+sw %%t|%d ms", time);
|
||||
if(event==3) sprintf(tmpstr, "displist %%t|%d ms", time);
|
||||
if(event==4) sprintf(tmpstr, "undo %%t|%d ms", time);
|
||||
if(event==3) sprintf(tmpstr, "undo %%t|%d ms", time);
|
||||
|
||||
waitcursor(0);
|
||||
pupmenu(tmpstr);
|
||||
|
||||
Reference in New Issue
Block a user