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
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.
-rw-r--r--source/blender/blenkernel/BKE_modifier.h2
-rw-r--r--source/blender/blenkernel/intern/modifier.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_modifier.h b/source/blender/blenkernel/BKE_modifier.h
index 0977a406aa0..07dee83e5ca 100644
--- a/source/blender/blenkernel/BKE_modifier.h
+++ b/source/blender/blenkernel/BKE_modifier.h
@@ -417,7 +417,7 @@ typedef struct VirtualModifierData {
ShapeKeyModifierData smd;
} VirtualModifierData;
-struct ModifierData *modifiers_getVirtualModifierList(struct Object *ob,
+struct ModifierData *modifiers_getVirtualModifierList(const struct Object *ob,
struct VirtualModifierData *data);
/* ensure modifier correctness when changing ob->data */
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;