[Bf-blender-cvs] [0ba3f76] master: Recreating a bmesh log did not account for modified faces.

Antony Riakiotakis noreply at git.blender.org
Thu Apr 17 18:04:10 CEST 2014


Commit: 0ba3f7647071a7bd7fdf48e0d48a9e7e1ee79a7b
Author: Antony Riakiotakis
Date:   Thu Apr 17 18:55:53 2014 +0300
https://developer.blender.org/rB0ba3f7647071a7bd7fdf48e0d48a9e7e1ee79a7b

Recreating a bmesh log did not account for modified faces.

It shouldn't create issues in practice because modified face ids should
have been reclaimed from an added face on a previous entry, but add for
completeness.

===================================================================

M	source/blender/bmesh/intern/bmesh_log.c

===================================================================

diff --git a/source/blender/bmesh/intern/bmesh_log.c b/source/blender/bmesh/intern/bmesh_log.c
index 7dac0d4..7d3bc0e 100644
--- a/source/blender/bmesh/intern/bmesh_log.c
+++ b/source/blender/bmesh/intern/bmesh_log.c
@@ -530,6 +530,7 @@ BMLog *BM_log_from_existing_entries_create(BMesh *bm, BMLogEntry *entry)
 		bm_log_id_ghash_retake(log->unused_ids, entry->added_verts);
 		bm_log_id_ghash_retake(log->unused_ids, entry->added_faces);
 		bm_log_id_ghash_retake(log->unused_ids, entry->modified_verts);
+		bm_log_id_ghash_retake(log->unused_ids, entry->modified_faces);
 	}
 
 	return log;




More information about the Bf-blender-cvs mailing list