forked from bartvdbraak/blender
Fix #28365: some macro operators were missing descriptions.
This commit is contained in:
parent
232da3741e
commit
dd7f52defa
@ -173,6 +173,7 @@ void ED_operatormacros_armature(void)
|
|||||||
|
|
||||||
ot= WM_operatortype_append_macro("ARMATURE_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
|
ot= WM_operatortype_append_macro("ARMATURE_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
|
||||||
if(ot) {
|
if(ot) {
|
||||||
|
ot->description= "Make copies of the selected bones within the same armature and move them";
|
||||||
WM_operatortype_macro_define(ot, "ARMATURE_OT_duplicate");
|
WM_operatortype_macro_define(ot, "ARMATURE_OT_duplicate");
|
||||||
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
||||||
RNA_enum_set(otmacro->ptr, "proportional", 0);
|
RNA_enum_set(otmacro->ptr, "proportional", 0);
|
||||||
@ -180,6 +181,7 @@ void ED_operatormacros_armature(void)
|
|||||||
|
|
||||||
ot= WM_operatortype_append_macro("ARMATURE_OT_extrude_move", "Extrude", OPTYPE_UNDO|OPTYPE_REGISTER);
|
ot= WM_operatortype_append_macro("ARMATURE_OT_extrude_move", "Extrude", OPTYPE_UNDO|OPTYPE_REGISTER);
|
||||||
if(ot) {
|
if(ot) {
|
||||||
|
ot->description= "Create new bones from the selected joints and move them";
|
||||||
otmacro=WM_operatortype_macro_define(ot, "ARMATURE_OT_extrude");
|
otmacro=WM_operatortype_macro_define(ot, "ARMATURE_OT_extrude");
|
||||||
RNA_boolean_set(otmacro->ptr, "forked", 0);
|
RNA_boolean_set(otmacro->ptr, "forked", 0);
|
||||||
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
||||||
@ -190,6 +192,7 @@ void ED_operatormacros_armature(void)
|
|||||||
// that would require fixing a properties bug 19733
|
// that would require fixing a properties bug 19733
|
||||||
ot= WM_operatortype_append_macro("ARMATURE_OT_extrude_forked", "Extrude Forked", OPTYPE_UNDO|OPTYPE_REGISTER);
|
ot= WM_operatortype_append_macro("ARMATURE_OT_extrude_forked", "Extrude Forked", OPTYPE_UNDO|OPTYPE_REGISTER);
|
||||||
if(ot) {
|
if(ot) {
|
||||||
|
ot->description= "Create new bones from the selected joints and move them";
|
||||||
otmacro=WM_operatortype_macro_define(ot, "ARMATURE_OT_extrude");
|
otmacro=WM_operatortype_macro_define(ot, "ARMATURE_OT_extrude");
|
||||||
RNA_boolean_set(otmacro->ptr, "forked", 1);
|
RNA_boolean_set(otmacro->ptr, "forked", 1);
|
||||||
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
||||||
|
@ -230,6 +230,7 @@ void ED_operatormacros_object(void)
|
|||||||
|
|
||||||
ot= WM_operatortype_append_macro("OBJECT_OT_duplicate_move", "Duplicate Objects", OPTYPE_UNDO|OPTYPE_REGISTER);
|
ot= WM_operatortype_append_macro("OBJECT_OT_duplicate_move", "Duplicate Objects", OPTYPE_UNDO|OPTYPE_REGISTER);
|
||||||
if(ot) {
|
if(ot) {
|
||||||
|
ot->description = "Duplicate selected objects and move them";
|
||||||
WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate");
|
WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate");
|
||||||
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
||||||
RNA_enum_set(otmacro->ptr, "proportional", PROP_EDIT_OFF);
|
RNA_enum_set(otmacro->ptr, "proportional", PROP_EDIT_OFF);
|
||||||
@ -238,6 +239,7 @@ void ED_operatormacros_object(void)
|
|||||||
/* grr, should be able to pass options on... */
|
/* grr, should be able to pass options on... */
|
||||||
ot= WM_operatortype_append_macro("OBJECT_OT_duplicate_move_linked", "Duplicate Linked", OPTYPE_UNDO|OPTYPE_REGISTER);
|
ot= WM_operatortype_append_macro("OBJECT_OT_duplicate_move_linked", "Duplicate Linked", OPTYPE_UNDO|OPTYPE_REGISTER);
|
||||||
if(ot) {
|
if(ot) {
|
||||||
|
ot->description = "Duplicate selected objects and move them";
|
||||||
otmacro= WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate");
|
otmacro= WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate");
|
||||||
RNA_boolean_set(otmacro->ptr, "linked", 1);
|
RNA_boolean_set(otmacro->ptr, "linked", 1);
|
||||||
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
||||||
@ -247,6 +249,7 @@ void ED_operatormacros_object(void)
|
|||||||
/* XXX */
|
/* XXX */
|
||||||
ot= WM_operatortype_append_macro("OBJECT_OT_add_named_cursor", "Add named object at cursor", OPTYPE_UNDO|OPTYPE_REGISTER);
|
ot= WM_operatortype_append_macro("OBJECT_OT_add_named_cursor", "Add named object at cursor", OPTYPE_UNDO|OPTYPE_REGISTER);
|
||||||
if(ot) {
|
if(ot) {
|
||||||
|
ot->description = "Add named object at cursor";
|
||||||
RNA_def_string(ot->srna, "name", "Cube", 24, "Name", "Object name to add");
|
RNA_def_string(ot->srna, "name", "Cube", 24, "Name", "Object name to add");
|
||||||
|
|
||||||
WM_operatortype_macro_define(ot, "VIEW3D_OT_cursor3d");
|
WM_operatortype_macro_define(ot, "VIEW3D_OT_cursor3d");
|
||||||
|
@ -94,6 +94,7 @@ void ED_operatormacros_action(void)
|
|||||||
|
|
||||||
ot= WM_operatortype_append_macro("ACTION_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
|
ot= WM_operatortype_append_macro("ACTION_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
|
||||||
if (ot) {
|
if (ot) {
|
||||||
|
ot->description= "Make a copy of all selected keyframes and move them";
|
||||||
WM_operatortype_macro_define(ot, "ACTION_OT_duplicate");
|
WM_operatortype_macro_define(ot, "ACTION_OT_duplicate");
|
||||||
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform");
|
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform");
|
||||||
RNA_enum_set(otmacro->ptr, "mode", TFM_TIME_DUPLICATE);
|
RNA_enum_set(otmacro->ptr, "mode", TFM_TIME_DUPLICATE);
|
||||||
|
@ -277,6 +277,7 @@ void ED_operatormacros_graph(void)
|
|||||||
|
|
||||||
ot= WM_operatortype_append_macro("GRAPH_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
|
ot= WM_operatortype_append_macro("GRAPH_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
|
||||||
if (ot) {
|
if (ot) {
|
||||||
|
ot->description= "Make a copy of all selected keyframes and move them";
|
||||||
WM_operatortype_macro_define(ot, "GRAPH_OT_duplicate");
|
WM_operatortype_macro_define(ot, "GRAPH_OT_duplicate");
|
||||||
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform");
|
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform");
|
||||||
RNA_enum_set(otmacro->ptr, "mode", TFM_TIME_DUPLICATE);
|
RNA_enum_set(otmacro->ptr, "mode", TFM_TIME_DUPLICATE);
|
||||||
|
@ -1805,7 +1805,7 @@ void NODE_OT_link_viewer(wmOperatorType *ot)
|
|||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Link to Viewer Node";
|
ot->name= "Link to Viewer Node";
|
||||||
ot->description = "Link to Viewer Node";
|
ot->description = "Link to viewer node";
|
||||||
ot->idname= "NODE_OT_link_viewer";
|
ot->idname= "NODE_OT_link_viewer";
|
||||||
|
|
||||||
/* api callbacks */
|
/* api callbacks */
|
||||||
@ -2275,7 +2275,7 @@ void NODE_OT_duplicate(wmOperatorType *ot)
|
|||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Duplicate Nodes";
|
ot->name= "Duplicate Nodes";
|
||||||
ot->description = "Duplicate the nodes";
|
ot->description = "Duplicate selected nodes";
|
||||||
ot->idname= "NODE_OT_duplicate";
|
ot->idname= "NODE_OT_duplicate";
|
||||||
|
|
||||||
/* api callbacks */
|
/* api callbacks */
|
||||||
|
@ -106,19 +106,22 @@ void ED_operatormacros_node(void)
|
|||||||
wmOperatorTypeMacro *mot;
|
wmOperatorTypeMacro *mot;
|
||||||
|
|
||||||
ot= WM_operatortype_append_macro("NODE_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
|
ot= WM_operatortype_append_macro("NODE_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
|
||||||
|
ot->description = "Duplicate selected nodes and move them";
|
||||||
WM_operatortype_macro_define(ot, "NODE_OT_duplicate");
|
WM_operatortype_macro_define(ot, "NODE_OT_duplicate");
|
||||||
WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
||||||
|
|
||||||
/* modified operator call for duplicating with input links */
|
/* modified operator call for duplicating with input links */
|
||||||
ot= WM_operatortype_append_macro("NODE_OT_duplicate_move_keep_inputs", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
|
ot= WM_operatortype_append_macro("NODE_OT_duplicate_move_keep_inputs", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
|
||||||
|
ot->description = "Duplicate selected nodes keeping input links and move them";
|
||||||
mot = WM_operatortype_macro_define(ot, "NODE_OT_duplicate");
|
mot = WM_operatortype_macro_define(ot, "NODE_OT_duplicate");
|
||||||
RNA_boolean_set(mot->ptr, "keep_inputs", 1);
|
RNA_boolean_set(mot->ptr, "keep_inputs", 1);
|
||||||
WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
||||||
|
|
||||||
ot= WM_operatortype_append_macro("NODE_OT_select_link_viewer", "Link Viewer", OPTYPE_UNDO);
|
ot= WM_operatortype_append_macro("NODE_OT_select_link_viewer", "Link Viewer", OPTYPE_UNDO);
|
||||||
|
ot->description = "Select node and link it to a viewer node";
|
||||||
WM_operatortype_macro_define(ot, "NODE_OT_select");
|
WM_operatortype_macro_define(ot, "NODE_OT_select");
|
||||||
WM_operatortype_macro_define(ot, "NODE_OT_link_viewer");
|
WM_operatortype_macro_define(ot, "NODE_OT_link_viewer");
|
||||||
}
|
}
|
||||||
|
|
||||||
void node_keymap(struct wmKeyConfig *keyconf)
|
void node_keymap(struct wmKeyConfig *keyconf)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user