Fix T57985: Out of the edit mode, the texture space is affected by the modifiers of a mesh.

Go for the simple solution for now (disable auto-texspace in evaluated mesh).
Proper fix would be part of known TODO redesign of bbox handling.

Solution suggested by @sergey, thanks!
This commit is contained in:
Bastien Montagne 2018-11-26 10:29:13 +01:00
parent 3919f99354
commit 33cbcd7344
Notes: blender-bot 2023-02-14 04:58:57 +01:00
Referenced by issue #58492, smoke flow jitters around flow source when using adaptive domain
Referenced by issue #57985, Out of the edit mode, the texture space is affected by the modifiers of a mesh.
1 changed files with 3 additions and 0 deletions

View File

@ -1916,5 +1916,8 @@ void BKE_mesh_eval_geometry(
DEG_debug_print_eval(depsgraph, __func__, mesh->id.name, mesh);
if (mesh->bb == NULL || (mesh->bb->flag & BOUNDBOX_DIRTY)) {
BKE_mesh_texspace_calc(mesh);
/* Clear autospace flag in evaluated mesh, so that texspace does not get recomputed when bbox is
* (e.g. after modifiers, etc.) */
mesh->texflag &= ~ME_AUTOSPACE;
}
}