[Bf-blender-cvs] [206a0bd] particles_refactor: Removed unused data type mapping function in RNA, this is now directly refined through the type of the attribute/state.
Lukas Tönne
noreply at git.blender.org
Tue Apr 22 12:05:39 CEST 2014
Commit: 206a0bd42f33f05307e9410c19517d37e2dfe3ae
Author: Lukas Tönne
Date: Sat Dec 14 10:16:25 2013 +0100
https://developer.blender.org/rB206a0bd42f33f05307e9410c19517d37e2dfe3ae
Removed unused data type mapping function in RNA, this is now directly
refined through the type of the attribute/state.
===================================================================
M source/blender/makesrna/intern/rna_nparticle.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_nparticle.c b/source/blender/makesrna/intern/rna_nparticle.c
index 7c4e96a..0132bf0 100644
--- a/source/blender/makesrna/intern/rna_nparticle.c
+++ b/source/blender/makesrna/intern/rna_nparticle.c
@@ -69,38 +69,6 @@ static StructRNA *rna_NParticleAttribute_refine(PointerRNA *ptr)
}
}
-#if 0
-/* Returns the RNA type used for data elements in the attribute buffer.
- * This is mirrors the collection type (see rna_NParticleAttribute_refine),
- * which must also be specified since each collection has a fixed data type.
- */
-static StructRNA *rna_NParticleAttributeState_data_srna(NParticleAttribute *attr)
-{
- switch (attr->desc.datatype) {
- case PAR_ATTR_DATATYPE_FLOAT:
- return &RNA_NParticleDataFloat;
- case PAR_ATTR_DATATYPE_INT:
- return &RNA_NParticleDataInt;
- case PAR_ATTR_DATATYPE_BOOL:
- return &RNA_NParticleDataBool;
- case PAR_ATTR_DATATYPE_VECTOR:
- return &RNA_NParticleDataVector;
- case PAR_ATTR_DATATYPE_POINT:
- return &RNA_NParticleDataPoint;
- case PAR_ATTR_DATATYPE_NORMAL:
- return &RNA_NParticleDataNormal;
- case PAR_ATTR_DATATYPE_COLOR:
- return &RNA_NParticleDataColor;
- case PAR_ATTR_DATATYPE_MATRIX:
- return &RNA_NParticleDataMatrix;
-
- default:
- BLI_assert(false); /* unknown data type, should never happen */
- return &RNA_NParticleDataVoid;
- }
-}
-#endif
-
static void rna_NParticleAttribute_datatype_set(PointerRNA *ptr, int value)
{
// NParticleAttribute *attr = ptr->data;
More information about the Bf-blender-cvs
mailing list