Bugfixes for frame number boost:
- Found several places, where people explicitly casted the frame number to short. - Fixed the crash in BPY_interface by adding an empty line (to make it recompile everywhere, make clean doesn't help...) For the build system maintainers: Problem was: The change in makesdna changed the position of the scriptlink structure. BPY_interface.c somehow didn't get recompiled (not even after a make clean!!!) which triggered crashes on adding scriptlinks.
This commit is contained in:
@@ -2340,7 +2340,7 @@ static void createTransObject(TransInfo *t)
|
||||
popfirst(&elems); // bring back pushed listbase
|
||||
|
||||
if(elems.first) {
|
||||
float cfraont;
|
||||
int cfraont;
|
||||
int ipoflag;
|
||||
|
||||
base->flag |= BA_DO_IPO+BA_WAS_SEL;
|
||||
@@ -2356,7 +2356,7 @@ static void createTransObject(TransInfo *t)
|
||||
for(ik= elems.first; ik; ik= ik->next) {
|
||||
|
||||
/* weak... this doesn't correct for floating values, giving small errors */
|
||||
CFRA= (short)(ik->val/G.scene->r.framelen);
|
||||
CFRA= (int)(ik->val/G.scene->r.framelen);
|
||||
|
||||
do_ob_ipo(ob);
|
||||
ObjectToTransData(td, ob); // does where_is_object()
|
||||
@@ -2376,7 +2376,7 @@ static void createTransObject(TransInfo *t)
|
||||
poplast(ob->loc);
|
||||
set_no_parent_ipo(0);
|
||||
|
||||
CFRA= (short)cfraont;
|
||||
CFRA= cfraont;
|
||||
ob->ipoflag= ipoflag;
|
||||
|
||||
where_is_object(ob); // restore
|
||||
|
||||
Reference in New Issue
Block a user