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/BKE_modifier.h
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/BKE_modifier.h')
-rw-r--r--source/blender/blenkernel/BKE_modifier.h2
1 files changed, 1 insertions, 1 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 */