[Bf-blender-cvs] [4e0d7349e8a] hair_guides: writefile function for Groom.

Lukas Tönne noreply at git.blender.org
Sun Dec 10 13:46:27 CET 2017


Commit: 4e0d7349e8a2494838372bc300560419252c32ae
Author: Lukas Tönne
Date:   Sun Dec 10 12:46:02 2017 +0000
Branches: hair_guides
https://developer.blender.org/rB4e0d7349e8a2494838372bc300560419252c32ae

writefile function for Groom.

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

M	source/blender/blenloader/intern/writefile.c

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

diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index e83f2314406..88326aa7ada 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -118,6 +118,7 @@
 #include "DNA_controller_types.h"
 #include "DNA_dynamicpaint_types.h"
 #include "DNA_genfile.h"
+#include "DNA_groom_types.h"
 #include "DNA_group_types.h"
 #include "DNA_gpencil_types.h"
 #include "DNA_fileglobal_types.h"
@@ -3813,6 +3814,11 @@ static void write_workspace(WriteData *wd, WorkSpace *workspace)
 	writelist(wd, DATA, TransformOrientation, transform_orientations);
 }
 
+static void write_groom(WriteData *wd, Groom *groom)
+{
+	writestruct(wd, ID_GM, Groom, 1, groom);
+}
+
 /* Keep it last of write_foodata functions. */
 static void write_libraries(WriteData *wd, Main *main)
 {
@@ -4108,6 +4114,9 @@ static bool write_file_handle(
 					case ID_CF:
 						write_cachefile(wd, (CacheFile *)id);
 						break;
+					case ID_GM:
+						write_groom(wd, (Groom *)id);
+						break;
 					case ID_LI:
 						/* Do nothing, handled below - and should never be reached. */
 						BLI_assert(0);



More information about the Bf-blender-cvs mailing list