Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-01-25 22:40:56 +0300
committerAntonioya <blendergit@gmail.com>2019-01-25 22:40:56 +0300
commitca739ac1d56598333579e996aae9e54f22a47e0d (patch)
tree7293a041f60ac993f327e31642765ba8a35c5c37 /source/blender/draw/engines/gpencil/gpencil_cache_utils.c
parent16c3425fe61220a487aef443e0f58cd07be65c4e (diff)
GP: Apply scale to particles
The particles were using the scale of the original object and the thickness of the stroke was not correct. Now, the scale is applied by particle.
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_cache_utils.c')
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_cache_utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_cache_utils.c b/source/blender/draw/engines/gpencil/gpencil_cache_utils.c
index 8c825a5ae6e..3c3125a0fd6 100644
--- a/source/blender/draw/engines/gpencil/gpencil_cache_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_cache_utils.c
@@ -81,6 +81,7 @@ tGPencilObjectCache *gpencil_object_cache_add(
/* object is duplicated (particle) */
cache_elem->is_dup_ob = ob->base_flag & BASE_FROM_DUPLI;
+ cache_elem->scale = mat4_to_scale(ob->obmat);
/* save FXs */
cache_elem->pixfactor = cache_elem->gpd->pixfactor;