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:
authorAntonio Vazquez <blendergit@gmail.com>2021-12-30 14:48:51 +0300
committerAntonio Vazquez <blendergit@gmail.com>2021-12-30 14:48:51 +0300
commite0d1e66732156e01797dc2f1b7ce9fb507834903 (patch)
treeb4ef890dc370291f7e0ea2b042ba4e1de198260b /source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h
parent52da1afbf67c3be7e4e561ed232632a628c6912b (diff)
Fix T93868: GPencil material filter does not work with instances
When the material is used in several objects, the filter by material is not working as expected because the internal pointers are different due eval version. Now, the original version of the material is compared to keep same address.
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h')
-rw-r--r--source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h b/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h
index 59ed11a02f3..722574929c0 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h
@@ -34,7 +34,7 @@ struct bGPDstroke;
*/
bool is_stroke_affected_by_modifier(struct Object *ob,
char *mlayername,
- const struct Material *material,
+ struct Material *material,
const int mpassindex,
const int gpl_passindex,
const int minpoints,