Page MenuHome

RNA function descriptions not showing in Python console on autocomplete
Closed, ResolvedPublic

Description

Although the RNA functions got ui descriptions, at least some do not show these texts when they should (in Python console on autocomplete)

Example:
BlenderSVN\blender\source\blender\makesrna\intern\rna_mesh.c

func = RNA_def_function(srna, "new", "rna_Mesh_vertex_color_new");
RNA_def_function_flag(func, FUNC_USE_CONTEXT);
RNA_def_function_ui_description(func, "Add a vertex color layer to Mesh"); // HERE IT IS!


Python console:

>>> bpy.data.meshes['Cube'].vertex_colors.new(
new()

Should be more like:
>>> bpy.data.meshes['Cube'].vertex_colors.new(
new() - Add a vertex color layer to Mesh

Others: Scene.update(), Mesh.new() etc.

Details

Type
Bug

Event Timeline

Cambell, can you please check this?

fixed 45019.

now reads:

new()
LoopColors.new(name="Col")
Add a vertex color layer to Mesh