Particles todo item: particle textures
[blender-staging.git] / source / blender / makesrna / intern / rna_space.c
index 78434643028b2a3e49b8d1de39c19f152f857ad6..e122f99776d9c8ac944c25301eb37de7ecdceb66 100644 (file)
@@ -765,6 +765,14 @@ static EnumPropertyItem *rna_SpaceProperties_texture_context_itemf(bContext *C,
                        tmp.icon = ICON_MATERIAL;
                        RNA_enum_item_add(&item, &totitem, &tmp);
                }
+
+               if(ob->particlesystem.first) {
+                       tmp.value = SB_TEXC_PARTICLES;
+                       tmp.description = "Show Particle Textures";
+                       tmp.identifier = "PARTICLE";
+                       tmp.icon = ICON_PARTICLES;
+                       RNA_enum_item_add(&item, &totitem, &tmp);
+               }
        }
 
        if(scene && scene->world) {