Missing call to free mesh octree in post transform function.
Was breaking x-mirror
This commit is contained in:
2009-01-04 19:11:56 +00:00
parent d19e758964
commit 3009e10151

View File

@@ -3829,6 +3829,18 @@ void special_aftertrans_update(TransInfo *t)
/* clear flag that was set for time-slide drawing */
saction->flag &= ~SACTION_MOVING;
}
else if (t->obedit) {
// TRANSFORM_FIX_ME
// if (t->mode==TFM_BONESIZE || t->mode==TFM_BONE_ENVELOPE)
// allqueue(REDRAWBUTSEDIT, 0);
if (t->obedit->type == OB_MESH)
{
EditMesh *em = ((Mesh *)t->obedit->data)->edit_mesh;
/* table needs to be created for each edit command, since vertices can move etc */
mesh_octree_table(t->obedit, em, NULL, 'e');
}
}
#if 0 // TRANSFORM_FIX_ME
else if (t->spacetype == SPACE_NLA) {
recalc_all_ipos(); // bad
@@ -3865,13 +3877,6 @@ void special_aftertrans_update(TransInfo *t)
if (G.sipo->blocktype==ID_SEQ)
resetslowpar= 0;
}
else if (t->obedit) {
if (t->mode==TFM_BONESIZE || t->mode==TFM_BONE_ENVELOPE)
allqueue(REDRAWBUTSEDIT, 0);
/* table needs to be created for each edit command, since vertices can move etc */
mesh_octree_table(t->obedit, NULL, 'e');
}
else if ((t->flag & T_POSE) && (t->poseobj)) {
bArmature *arm;
bPose *pose;