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>2020-06-28 18:13:10 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-06-28 18:13:10 +0300
commitb21ba5e5797417f6ed11494f4339e3bc6ee55cd7 (patch)
tree3755b9115b26ba1fa2a9cf3d9bb22048fea991cf /source/blender/editors/object
parent3bdfd8c916adbf8bcf2c83e65b737495c3b4be99 (diff)
GPencil: Cleanup - replace loop with LISTBASE_FOREACH
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_gpencil_modifier.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/source/blender/editors/object/object_gpencil_modifier.c b/source/blender/editors/object/object_gpencil_modifier.c
index 99215686280..6dadfbd75ef 100644
--- a/source/blender/editors/object/object_gpencil_modifier.c
+++ b/source/blender/editors/object/object_gpencil_modifier.c
@@ -105,23 +105,6 @@ GpencilModifierData *ED_object_gpencil_modifier_add(
return new_md;
}
-/* Return true if the object has a modifier of type 'type' other than
- * the modifier pointed to be 'exclude', otherwise returns false. */
-static bool UNUSED_FUNCTION(gpencil_object_has_modifier)(const Object *ob,
- const GpencilModifierData *exclude,
- GpencilModifierType type)
-{
- GpencilModifierData *md;
-
- for (md = ob->greasepencil_modifiers.first; md; md = md->next) {
- if ((md != exclude) && (md->type == type)) {
- return true;
- }
- }
-
- return false;
-}
-
static bool gpencil_object_modifier_remove(Main *bmain,
Object *ob,
GpencilModifierData *md,