Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-02-07 15:51:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-07 15:51:47 +0300
commitbb571c67cb2ead3d354e445a3c44604925422ffc (patch)
tree6b08ae7fab1dbe2cbdc82a9f1ae7cc889b03d0c8 /source/blender/makesrna/intern/rna_texture.c
parent3238730e3678394ed6ecd3d2ce634f9502400d6e (diff)
mat/lamp/world.textures -> texture_slots
object.materials -> material_slots since neither contain textures or materials directly.
Diffstat (limited to 'source/blender/makesrna/intern/rna_texture.c')
-rw-r--r--source/blender/makesrna/intern/rna_texture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c
index f4b081b273e..453b0caab16 100644
--- a/source/blender/makesrna/intern/rna_texture.c
+++ b/source/blender/makesrna/intern/rna_texture.c
@@ -195,22 +195,22 @@ char *rna_TextureSlot_path(PointerRNA *ptr)
/* find the 'textures' property of the ID-struct */
RNA_id_pointer_create(ptr->id.data, &id_ptr);
- prop= RNA_struct_find_property(&id_ptr, "textures");
+ prop= RNA_struct_find_property(&id_ptr, "texture_slots");
/* get an iterator for this property, and try to find the relevant index */
if (prop) {
int index= RNA_property_collection_lookup_index(&id_ptr, prop, ptr);
if (index >= 0)
- return BLI_sprintfN("textures[%d]", index);
+ return BLI_sprintfN("texture_slots[%d]", index);
}
}
/* this is a compromise for the remaining cases... */
if (mtex->tex)
- return BLI_sprintfN("textures[\"%s\"]", mtex->tex->id.name+2);
+ return BLI_sprintfN("texture_slots[\"%s\"]", mtex->tex->id.name+2);
else
- return BLI_strdup("textures[0]");
+ return BLI_strdup("texture_slots[0]");
}
static int rna_TextureSlot_name_length(PointerRNA *ptr)