[Bf-blender-cvs] [29716abcd15] master: Missed in the last commit
Germano Cavalcante
noreply at git.blender.org
Tue Mar 3 04:20:32 CET 2020
Commit: 29716abcd15406004c505f051f4a2932dff64914
Author: Germano Cavalcante
Date: Tue Mar 3 00:20:25 2020 -0300
Branches: master
https://developer.blender.org/rB29716abcd15406004c505f051f4a2932dff64914
Missed in the last commit
===================================================================
M source/blender/editors/transform/transform_snap_object.c
===================================================================
diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c
index 3992c3a3036..2bb5424722f 100644
--- a/source/blender/editors/transform/transform_snap_object.c
+++ b/source/blender/editors/transform/transform_snap_object.c
@@ -279,6 +279,11 @@ static SnapObjectData *snap_object_data_editmesh_get(SnapObjectContext *sctx,
else if (sod->treedata_editmesh.em != em) {
/* Clear only cached. */
init_min_max = false;
+ if (sod->treedata_editmesh.cached) {
+ sod->treedata_editmesh.tree = NULL;
+ /* Only init min and max when you have a non-custom bvhtree pending. */
+ init_min_max = true;
+ }
for (int i = 0; i < ARRAY_SIZE(sod->bvhtree); i++) {
if (sod->cached[i]) {
sod->bvhtree[i] = NULL;
More information about the Bf-blender-cvs
mailing list