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

Lukas Tönne noreply at git.blender.org
Mon Mar 23 13:00:41 CET 2015


Commit: e6a6e5d17af75a9c77a216a58c33573761195d03
Author: Lukas Tönne
Date:   Fri Feb 20 16:26:24 2015 +0100
Branches: gooseberry
https://developer.blender.org/rBe6a6e5d17af75a9c77a216a58c33573761195d03

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