diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-05 00:33:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-05 00:38:41 +0300 |
commit | 1da8ed2a9737088a29f8782b290ba237bd0e813c (patch) | |
tree | 9bcb8424c7d58ae7a082e747e95f5aad1fac72d7 /source/blender/python | |
parent | 2fb4de1f8c1b3117da47aff39972d92cc078dd29 (diff) |
Cleanup: redundant casts
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_rna_anim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_rna_anim.c b/source/blender/python/intern/bpy_rna_anim.c index bda7d342576..2fe67b02000 100644 --- a/source/blender/python/intern/bpy_rna_anim.c +++ b/source/blender/python/intern/bpy_rna_anim.c @@ -353,7 +353,7 @@ PyObject *pyrna_struct_keyframe_insert(BPy_StructRNA *self, PyObject *args, PyOb } if (prop) { - NlaStrip *strip = (NlaStrip *)ptr.data; + NlaStrip *strip = ptr.data; FCurve *fcu = list_find_fcurve(&strip->fcurves, RNA_property_identifier(prop), index); result = insert_keyframe_direct(&reports, ptr, prop, fcu, cfra, keytype, NULL, options); @@ -452,7 +452,7 @@ PyObject *pyrna_struct_keyframe_delete(BPy_StructRNA *self, PyObject *args, PyOb if (prop) { ID *id = ptr.owner_id; - NlaStrip *strip = (NlaStrip *)ptr.data; + NlaStrip *strip = ptr.data; FCurve *fcu = list_find_fcurve(&strip->fcurves, RNA_property_identifier(prop), index); /* NOTE: This should be true, or else we wouldn't be able to get here. */ |