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:
authorSybren A. Stüvel <sybren@blender.org>2019-11-26 17:11:20 +0300
committerSybren A. Stüvel <sybren@blender.org>2019-11-26 18:26:52 +0300
commit75808620ce495b61e7e7188cc1c040d05929b7dd (patch)
tree9d6e04254aa14cbd41f96145678eb9f7270e7bd3 /source/blender/blenkernel/intern/modifier.c
parent354bc1297e342db59a4f89c79e14523c65fcd693 (diff)
Made ob param of `modifiers_getVirtualModifierList` const
The `modifiers_getVirtualModifierList()` function previously took a non- const `Object *ob` parameter, preventing it from being called from more restrictive functions. Since the function doesn't modify the passed object, it could easily be made const. No functional changes.
Diffstat (limited to 'source/blender/blenkernel/intern/modifier.c')
-rw-r--r--source/blender/blenkernel/intern/modifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c
index 8f04596da3e..fd7d2fd4a03 100644
--- a/source/blender/blenkernel/intern/modifier.c
+++ b/source/blender/blenkernel/intern/modifier.c
@@ -614,7 +614,7 @@ ModifierData *modifiers_getLastPreview(struct Scene *scene, ModifierData *md, in
/* This is to include things that are not modifiers in the evaluation of the modifier stack, for
* example parenting to an armature. */
-ModifierData *modifiers_getVirtualModifierList(Object *ob,
+ModifierData *modifiers_getVirtualModifierList(const Object *ob,
VirtualModifierData *virtualModifierData)
{
ModifierData *md;