forked from bartvdbraak/blender
Assorted small fixes
* Incorrect comment (copy+paste error) in nla_edit * Whitespace in rna_gpencil * The icon for AnimData is now attached to its RNA definition
This commit is contained in:
parent
ce1a1d94d0
commit
4db11a9e55
@ -200,7 +200,7 @@ static int nlaedit_disable_tweakmode_exec(bContext *C, wmOperator *op)
|
||||
for (ale = anim_data.first; ale; ale = ale->next) {
|
||||
AnimData *adt = ale->data;
|
||||
|
||||
/* try entering tweakmode if valid */
|
||||
/* to be sure, just exit tweakmode... */
|
||||
BKE_nla_tweakmode_exit(adt);
|
||||
}
|
||||
|
||||
|
@ -895,6 +895,7 @@ static void rna_def_animdata(BlenderRNA *brna)
|
||||
|
||||
srna = RNA_def_struct(brna, "AnimData", NULL);
|
||||
RNA_def_struct_ui_text(srna, "Animation Data", "Animation data for datablock");
|
||||
RNA_def_struct_ui_icon(srna, ICON_ANIM_DATA);
|
||||
|
||||
/* NLA */
|
||||
prop = RNA_def_property(srna, "nla_tracks", PROP_COLLECTION, PROP_NONE);
|
||||
|
@ -548,7 +548,9 @@ static void rna_def_gpencil_layer(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", GP_LAYER_NO_XRAY);
|
||||
RNA_def_property_ui_text(prop, "X Ray", "Make the layer draw in front of objects");
|
||||
RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update");
|
||||
|
||||
|
||||
|
||||
/* Layers API */
|
||||
func = RNA_def_function(srna, "clear", "rna_GPencil_layer_clear");
|
||||
RNA_def_function_ui_description(func, "Remove all the grease pencil layer data");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user