Refactor: Simplify ID Property freeing
authorJacques Lucke <mail@jlucke.com>
Thu, 16 May 2019 12:11:11 +0000 (14:11 +0200)
committerJacques Lucke <mail@jlucke.com>
Thu, 16 May 2019 12:11:11 +0000 (14:11 +0200)
commitdb5120603f8f6236d1417199f257e35e0eb8c00b
treeb2c55dedaf2b49ac8abd4f50878bcf374e71cccb
parentc0d743238d022e12872549176257db8b9d602e3d
Refactor: Simplify ID Property freeing

This also makes `IDP_CopyProperty` the "opposite"
of `IDP_FreeProperty`, which is what I'd expect.

Two refactoring steps:
* rename IDP_FreeProperty to IDP_FreePropertyContent
* new IDP_FreeProperty function that actually frees the property

Reviewers: brecht

Differential Revision: https://developer.blender.org/D4872
37 files changed:
source/blender/blenkernel/BKE_idprop.h
source/blender/blenkernel/intern/action.c
source/blender/blenkernel/intern/addon.c
source/blender/blenkernel/intern/armature.c
source/blender/blenkernel/intern/blender.c
source/blender/blenkernel/intern/blender_user_menu.c
source/blender/blenkernel/intern/constraint.c
source/blender/blenkernel/intern/fmodifier.c
source/blender/blenkernel/intern/idprop.c
source/blender/blenkernel/intern/layer.c
source/blender/blenkernel/intern/node.c
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/scene.c
source/blender/blenkernel/intern/screen.c
source/blender/blenkernel/intern/workspace.c
source/blender/blenkernel/intern/writeffmpeg.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/versioning_280.c
source/blender/blenloader/intern/versioning_defaults.c
source/blender/depsgraph/intern/depsgraph_query_iter.cc
source/blender/editors/armature/armature_utils.c
source/blender/editors/armature/pose_lib.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/armature/pose_utils.c
source/blender/editors/interface/interface.c
source/blender/editors/interface/interface_context_menu.c
source/blender/editors/interface/interface_layout.c
source/blender/imbuf/intern/metadata.c
source/blender/makesrna/intern/rna_access.c
source/blender/python/generic/idprop_py_api.c
source/blender/python/intern/bpy_rna.c
source/blender/windowmanager/gizmo/intern/wm_gizmo.c
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/intern/wm_keymap.c
source/blender/windowmanager/intern/wm_operator_type.c
source/blender/windowmanager/intern/wm_operators.c