Followup to fe3e000: no need to exit pose mode on operator redo

This is to be backported to the release branch.
This commit is contained in:
Sergey Sharybin 2015-01-07 15:38:32 +05:00
parent fedb34c592
commit a52fe40c84
1 changed files with 4 additions and 1 deletions

View File

@ -4914,7 +4914,10 @@ static void direct_link_object(FileData *fd, Object *ob)
* See [#34776, #42780] for more information.
*/
if (fd->memfile || (ob->id.flag & (LIB_EXTERN | LIB_INDIRECT))) {
ob->mode &= ~(OB_MODE_EDIT | OB_MODE_PARTICLE_EDIT | OB_MODE_POSE);
ob->mode &= ~(OB_MODE_EDIT | OB_MODE_PARTICLE_EDIT);
if (!fd->memfile) {
ob->mode &= ~OB_MODE_POSE;
}
}
ob->adt = newdataadr(fd, ob->adt);