[Bf-blender-cvs] [7b16850] alembic_pointcache: Group pointer property for cache libraries to associate them with an object group.

Lukas Tönne noreply at git.blender.org
Mon Feb 23 14:06:37 CET 2015


Commit: 7b16850073d04212f71cac88e0c9885d39e3a5a0
Author: Lukas Tönne
Date:   Fri Feb 20 16:26:24 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB7b16850073d04212f71cac88e0c9885d39e3a5a0

Group pointer property for cache libraries to associate them with an
object group.

This is somewhat experimental, eventually we may want to link to Objects
instead, or allow multiple cache targets for the same cache, etc.

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

M	source/blender/makesdna/DNA_cache_library_types.h
M	source/blender/makesrna/intern/rna_cache_library.c

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

diff --git a/source/blender/makesdna/DNA_cache_library_types.h b/source/blender/makesdna/DNA_cache_library_types.h
index 861cff4..223cde1 100644
--- a/source/blender/makesdna/DNA_cache_library_types.h
+++ b/source/blender/makesdna/DNA_cache_library_types.h
@@ -39,6 +39,7 @@ typedef struct CacheLibrary {
 	ID id;
 	
 	char filepath[1024]; /* 1024 = FILE_MAX */
+	struct Group *group;
 } CacheLibrary;
 
 #endif
diff --git a/source/blender/makesrna/intern/rna_cache_library.c b/source/blender/makesrna/intern/rna_cache_library.c
index 7d2cde8..31e9aba 100644
--- a/source/blender/makesrna/intern/rna_cache_library.c
+++ b/source/blender/makesrna/intern/rna_cache_library.c
@@ -65,6 +65,11 @@ static void rna_def_cache_library(BlenderRNA *brna)
 	RNA_def_property_string_sdna(prop, NULL, "filepath");
 	RNA_def_property_ui_text(prop, "File Path", "Path to cache library storage");
 	RNA_def_property_update(prop, 0, "rna_CacheLibrary_update");
+	
+	prop = RNA_def_property(srna, "group", PROP_POINTER, PROP_NONE);
+	RNA_def_property_flag(prop, PROP_EDITABLE);
+	RNA_def_property_ui_text(prop, "Group", "Cached object group");
+	RNA_def_property_update(prop, 0, "rna_CacheLibrary_update");
 }
 
 void RNA_def_cache_library(BlenderRNA *brna)




More information about the Bf-blender-cvs mailing list