Fix T40057: invisible hair particles slowing down mesh edits

Skip doing particle update in object_handle_update if object is in
edit mode.

Object will be re-evaluated on exit from edit mode anyway, so it's
_expected_ to be a safe change.
This commit is contained in:
2014-06-09 17:32:19 +06:00
parent 4bd2609cd0
commit 0ae8ce3ab1

View File

@@ -2975,7 +2975,7 @@ void BKE_object_handle_update_ex(EvaluationContext *eval_ctx,
lamp_drivers_update(scene, ob->data, ctime);
/* particles */
if (ob->particlesystem.first) {
if (ob != scene->obedit && ob->particlesystem.first) {
ParticleSystem *tpsys, *psys;
DerivedMesh *dm;
ob->transflag &= ~OB_DUPLIPARTS;