set drag/drop operators as 'INTERNAL', there not useful to access from operator search.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 5 Feb 2013 14:38:19 +0000 (14:38 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 5 Feb 2013 14:38:19 +0000 (14:38 +0000)
source/blender/editors/mesh/mesh_data.c
source/blender/editors/object/object_relations.c
source/blender/editors/space_outliner/outliner_edit.c

index 3b7517d..0c9a5aa 100644 (file)
@@ -648,7 +648,7 @@ static int drop_named_image_invoke(bContext *C, wmOperator *op, wmEvent *event)
 void MESH_OT_drop_named_image(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name = "Assign Image to UV Map";
+       ot->name = "Drop Image to Mesh UV Map";
        ot->description = "Assign Image to active UV Map, or create an UV Map";
        ot->idname = "MESH_OT_drop_named_image";
        
@@ -657,7 +657,7 @@ void MESH_OT_drop_named_image(wmOperatorType *ot)
        ot->invoke = drop_named_image_invoke;
        
        /* flags */
-       ot->flag = OPTYPE_UNDO;
+       ot->flag = OPTYPE_UNDO | OPTYPE_INTERNAL;
        
        /* properties */
        RNA_def_string(ot->srna, "name", "Image", MAX_ID_NAME - 2, "Name", "Image name to assign");
index da12db5..33b159f 100644 (file)
@@ -2168,7 +2168,7 @@ void OBJECT_OT_drop_named_material(wmOperatorType *ot)
        ot->poll = ED_operator_objectmode;
        
        /* flags */
-       ot->flag = OPTYPE_UNDO;
+       ot->flag = OPTYPE_UNDO | OPTYPE_INTERNAL;
        
        /* properties */
        RNA_def_string(ot->srna, "name", "Material", MAX_ID_NAME - 2, "Name", "Material name to assign");
index 41641c8..ab660b9 100644 (file)
@@ -1637,7 +1637,7 @@ void OUTLINER_OT_parent_drop(wmOperatorType *ot)
        ot->poll = ED_operator_outliner_active;
 
        /* flags */
-       ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;
 
        /* properties */
        RNA_def_string(ot->srna, "child", "Object", MAX_ID_NAME, "Child", "Child Object");
@@ -1726,7 +1726,7 @@ void OUTLINER_OT_parent_clear(wmOperatorType *ot)
        ot->poll = ED_operator_outliner_active;
 
        /* flags */
-       ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;
 
        /* properties */
        RNA_def_string(ot->srna, "dragged_obj", "Object", MAX_ID_NAME, "Child", "Child Object");
@@ -1819,7 +1819,7 @@ void OUTLINER_OT_scene_drop(wmOperatorType *ot)
        ot->poll = ED_operator_outliner_active;
 
        /* flags */
-       ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;
 
        /* properties */
        RNA_def_string(ot->srna, "object", "Object", MAX_ID_NAME, "Object", "Target Object");
@@ -1883,7 +1883,7 @@ void OUTLINER_OT_material_drop(wmOperatorType *ot)
        ot->poll = ED_operator_outliner_active;
 
        /* flags */
-       ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;
 
        /* properties */
        RNA_def_string(ot->srna, "object", "Object", MAX_ID_NAME, "Object", "Target Object");