[Bf-blender-cvs] [a4c3d64] free-refcount-ids: Add note about object release func...

Bastien Montagne noreply at git.blender.org
Thu Oct 1 17:44:28 CEST 2015


Commit: a4c3d645ed0174b1c2da478a7c8357b381fdd3a8
Author: Bastien Montagne
Date:   Thu Oct 1 17:44:02 2015 +0200
Branches: free-refcount-ids
https://developer.blender.org/rBa4c3d645ed0174b1c2da478a7c8357b381fdd3a8

Add note about object release func...

===================================================================

M	source/blender/blenkernel/intern/object.c

===================================================================

diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index 4aa0b01..7a85fcc 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -387,6 +387,8 @@ void BKE_object_free_caches(Object *object)
  */
 void BKE_object_release_datablocks(Object *ob)
 {
+	/* Note: This totally ignores indirectly-'linked' datablocks (through constraints, modifiers...).
+	 *       That’s fine for now (none of them actually refcount IDs), remap project will rework this deeply anyway. */
 	int a;
 
 	if (ob->data) {




More information about the Bf-blender-cvs mailing list