- bug fix, extrude and duplicate automatically enter transform which

may request info from the derived surface, this means we have to
   force a manual recalc before we enter transform... proper design
   of mesh data invalidation/recalc should make this unnecessary...
This commit is contained in:
2005-08-06 19:13:13 +00:00
parent 28a1f55ff6
commit 843ffdc49a
2 changed files with 19 additions and 0 deletions

View File

@@ -584,6 +584,15 @@ void extrude_mesh(void)
EM_fgon_flags();
countall();
/* We need to force immediate calculation here because
* transform may use derived objects (which are now stale).
*
* This shouldn't be necessary, derived queries should be
* automatically building this data if invalid. Or something.
*/
DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA);
object_handle_update(G.obedit);
/* individual faces? */
BIF_TransformSetUndo("Extrude");
if(nr==2) {