[Bf-blender-cvs] [56c3dbb6564] hair_guides: Implement BKE_libblock_free_datablock for groom ID.

Lukas Tönne noreply at git.blender.org
Sun Dec 10 12:56:04 CET 2017


Commit: 56c3dbb6564d8212eed4bc885f223fac5aaf6913
Author: Lukas Tönne
Date:   Sun Dec 10 11:52:23 2017 +0000
Branches: hair_guides
https://developer.blender.org/rB56c3dbb6564d8212eed4bc885f223fac5aaf6913

Implement BKE_libblock_free_datablock for groom ID.

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

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

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

diff --git a/source/blender/blenkernel/intern/library_remap.c b/source/blender/blenkernel/intern/library_remap.c
index fb672cb8b9f..8d1d657fbd9 100644
--- a/source/blender/blenkernel/intern/library_remap.c
+++ b/source/blender/blenkernel/intern/library_remap.c
@@ -41,6 +41,7 @@
 #include "DNA_cachefile_types.h"
 #include "DNA_group_types.h"
 #include "DNA_gpencil_types.h"
+#include "DNA_groom_types.h"
 #include "DNA_ipo_types.h"
 #include "DNA_key_types.h"
 #include "DNA_lamp_types.h"
@@ -79,6 +80,7 @@
 #include "BKE_font.h"
 #include "BKE_group.h"
 #include "BKE_gpencil.h"
+#include "BKE_groom.h"
 #include "BKE_idprop.h"
 #include "BKE_image.h"
 #include "BKE_ipo.h"
@@ -866,6 +868,9 @@ void BKE_libblock_free_datablock(ID *id, const int UNUSED(flag))
 		case ID_WS:
 			BKE_workspace_free((WorkSpace *)id);
 			break;
+		case ID_GM:
+			BKE_groom_free((Groom *)id);
+			break;
 	}
 }



More information about the Bf-blender-cvs mailing list