[Bf-blender-cvs] [f5f64794c53] greasepencil-object: Fix cache_used error in previous commit

Antonio Vazquez noreply at git.blender.org
Fri May 11 20:02:28 CEST 2018


Commit: f5f64794c53e05326a4b97ae7f922e8f89652b26
Author: Antonio Vazquez
Date:   Fri May 11 19:44:22 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rBf5f64794c53e05326a4b97ae7f922e8f89652b26

Fix cache_used error in previous commit

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

M	source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
index 87426116705..0dd75d23b55 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
@@ -1072,8 +1072,8 @@ static void gp_instance_modifier_make_instances(GPENCIL_StorageList *stl, Object
 				madd_v3_v3fl(newob->obmat[3], mmd->shift, sh);
 				
 				/* add temp object to cache */
-				stl->g_data->gp_object_cache = gpencil_object_cache_allocate(stl->g_data->gp_object_cache, &stl->g_data->gp_cache_size, &stl->g_data->gp_cache_used);
-				gpencil_object_cache_add(stl->g_data->gp_object_cache, newob, true, stl->g_data->gp_cache_used);
+				stl->g_data->gp_object_cache = gpencil_object_cache_allocate(stl->g_data->gp_object_cache, &stl->g_data->gp_cache_size, stl->g_data->gp_cache_used);
+				gpencil_object_cache_add(stl->g_data->gp_object_cache, newob, true, &stl->g_data->gp_cache_used);
 			}
 		}
 	}



More information about the Bf-blender-cvs mailing list