A user submitted a BVH file that took a long time to import (I didnt end up finishing since it was so slow)

this is mainly because adding pose keyframes recalculates every handle so importing became increasingly slow.

added a 'fast' argument to insertkey that python api's insertPoseKey can make use of since it alredy accepts a 'fast' option.

The ~4450 frame, 31 bone BVH imports in ~108sec now

Seperated editmode switch statement in space.c's event handling,
if editmode is disabled, or the images is a render or composite, UV editing operations are ignored.
In previous releases it has given an annoying warning if selecting or scaling is attempted when out of UV/Face mode.
This commit is contained in:
2007-09-18 06:41:29 +00:00
parent d86a03113d
commit 0a2b8b1308
20 changed files with 425 additions and 431 deletions

View File

@@ -431,9 +431,9 @@ static PyObject *Constraint_insertKey( BPy_Constraint * self, PyObject * value )
"cannot get a curve from this IPO, may be using libdata" );
if( ob->action )
insert_vert_icu( icu, get_action_frame(ob, cfra), con->enforce);
insert_vert_icu( icu, get_action_frame(ob, cfra), con->enforce, 0);
else
insert_vert_icu( icu, cfra, con->enforce);
insert_vert_icu( icu, cfra, con->enforce, 0);
Py_RETURN_NONE;
}