[Bf-blender-cvs] [33cbcd73448] blender2.8: Fix T57985: Out of the edit mode, the texture space is affected by the modifiers of a mesh.
Bastien Montagne
noreply at git.blender.org
Mon Nov 26 10:31:28 CET 2018
Commit: 33cbcd73448fb1cedc083c2b1fb9a27489d09432
Author: Bastien Montagne
Date: Mon Nov 26 10:29:13 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB33cbcd73448fb1cedc083c2b1fb9a27489d09432
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!
===================================================================
M source/blender/blenkernel/intern/mesh.c
===================================================================
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c
index 432d1fbc85b..1400fbd514e 100644
--- a/source/blender/blenkernel/intern/mesh.c
+++ b/source/blender/blenkernel/intern/mesh.c
@@ -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;
}
}
More information about the Bf-blender-cvs
mailing list