[Bf-blender-cvs] [ac782ba] master: Fix BLI_buffer_reinit not clearing static flag
Campbell Barton
noreply at git.blender.org
Wed Dec 23 15:58:50 CET 2015
Commit: ac782ba31cba4d5c349e97326cc7d77dfc71fd70
Author: Campbell Barton
Date: Thu Dec 24 01:51:45 2015 +1100
Branches: master
https://developer.blender.org/rBac782ba31cba4d5c349e97326cc7d77dfc71fd70
Fix BLI_buffer_reinit not clearing static flag
===================================================================
M source/blender/blenlib/intern/buffer.c
===================================================================
diff --git a/source/blender/blenlib/intern/buffer.c b/source/blender/blenlib/intern/buffer.c
index e217214..fb1b733 100644
--- a/source/blender/blenlib/intern/buffer.c
+++ b/source/blender/blenlib/intern/buffer.c
@@ -123,6 +123,7 @@ void BLI_buffer_reinit(BLI_Buffer *buffer, const size_t new_count)
buffer->alloc_count = new_count;
}
+ buffer->flag &= ~BLI_BUFFER_USE_STATIC;
buffer->data = buffer_alloc(buffer, buffer->alloc_count);
}
else {
More information about the Bf-blender-cvs
mailing list