[Bf-blender-cvs] [81786c91e4a] greasepencil-object: Cleanup comment
Antonio Vazquez
noreply at git.blender.org
Thu Jun 1 11:12:28 CEST 2017
Commit: 81786c91e4a7029ad985d83d244833a5f8b46d45
Author: Antonio Vazquez
Date: Thu Jun 1 11:12:19 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB81786c91e4a7029ad985d83d244833a5f8b46d45
Cleanup comment
===================================================================
M source/blender/draw/engines/gpencil/gpencil_engine.c
===================================================================
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 859b4165d5c..b606227207a 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -108,10 +108,10 @@ static void GPENCIL_cache_init(void *vedata)
stl->storage->xray = GP_XRAY_FRONT; /* used for drawing */
}
if (!stl->shgroups) {
- /* Alloc maximum size because count strokes is very slow and can be very complex due onion skinning
- Note: I tried to allocate only one and using realloc, increase the size when read a new strokes
- in cache_finish, but the realloc produce weird things on screen, so we keep as is while we
- found a better solution
+ /* Alloc maximum size because count strokes is very slow and can be very complex due onion skinning.
+ I tried to allocate only one block and using realloc, increasing the size when read a new strokes
+ in cache_finish, but the realloc produce weird things on screen, so we keep as is while we found
+ a better solution
*/
stl->shgroups = MEM_mallocN(sizeof(GPENCIL_shgroup) * GPENCIL_MAX_SHGROUPS, "GPENCIL_shgroup");
}
More information about the Bf-blender-cvs
mailing list