[Bf-blender-cvs] [b8f5430] particles_refactor: Added "name" property (read-only) for attribute states.
Lukas Tönne
noreply at git.blender.org
Tue Apr 22 12:06:14 CEST 2014
Commit: b8f54307fc5eec959dd0a9bf7fa4fea3527fb762
Author: Lukas Tönne
Date: Thu Dec 19 14:16:49 2013 +0100
https://developer.blender.org/rBb8f54307fc5eec959dd0a9bf7fa4fea3527fb762
Added "name" property (read-only) for attribute states.
===================================================================
M source/blender/python/bparticles/bparticles_py_types.c
===================================================================
diff --git a/source/blender/python/bparticles/bparticles_py_types.c b/source/blender/python/bparticles/bparticles_py_types.c
index 2cdc743..1fd721d 100644
--- a/source/blender/python/bparticles/bparticles_py_types.c
+++ b/source/blender/python/bparticles/bparticles_py_types.c
@@ -50,6 +50,14 @@ PyDoc_STRVAR(bpy_bpar_attrstate_doc,
"Particle attribute state data\n"
);
+PyDoc_STRVAR(bpy_bpar_attrstate_name_doc,
+"Attribute name\n"
+);
+static PyObject *bpy_bpar_attrstate_name_get(BPy_NParticleAttributeState *self)
+{
+ return PyUnicode_FromString(self->attrstate->desc.name);
+}
+
static PyObject *bpy_bpar_state_repr(BPy_NParticleState *self)
{
NParticleState *state = self->state;
More information about the Bf-blender-cvs
mailing list