fix [#28961] FCurves.range() returns wrong values for one-point curves (sic!)

also fix for case where verts were treated as found but were infact not because none were selected.
This commit is contained in:
Campbell Barton
2011-10-24 12:26:14 +00:00
parent 5a6605610d
commit a29c3b2bbb

View File

@@ -137,14 +137,19 @@ void make_local_action(bAction *act)
// XXX: double-check this; it used to be just single-user check, but that was when fake-users were still default
if ((act->id.flag & LIB_FAKEUSER) && (act->id.us<=1)) {
id_clear_lib_data(&bmain->action, (ID *)act);
act->id.lib= NULL;
act->id.flag= LIB_LOCAL;
new_id(&bmain->action, (ID *)act, NULL);
return;
}
BKE_animdata_main_cb(bmain, make_localact_init_cb, &mlac);
if (mlac.local && mlac.lib==0) {
id_clear_lib_data(&bmain->action, (ID *)act);
act->id.lib= NULL;
act->id.flag= LIB_LOCAL;
//make_local_action_channels(act);
new_id(&bmain->action, (ID *)act, NULL);
}
else if (mlac.local && mlac.lib) {
mlac.actn= copy_action(act);