Sculpt Branch:
[blender.git] / source / blender / windowmanager / intern / wm_operators.c
index 751785a417a352ac362152d348e56d89705ef2bb..d1e004a0a2010d958abef697624a82e0c67b25e6 100644 (file)
@@ -615,6 +615,9 @@ int WM_menu_invoke(bContext *C, wmOperator *op, wmEvent *event)
        else if (RNA_property_type(prop) != PROP_ENUM) {
                printf("WM_menu_invoke: %s \"type\" is not an enum property\n", op->type->idname);
        }
+       else if (RNA_property_is_set(op->ptr, RNA_property_identifier(prop))) {
+               return op->type->exec(C, op);
+       }
        else {
                pup= uiPupMenuBegin(C, op->type->name, 0);
                layout= uiPupMenuLayout(pup);
@@ -924,7 +927,7 @@ static uiBlock *wm_block_create_splash(bContext *C, ARegion *ar, void *arg_unuse
 
        uiLayoutSetOperatorContext(layout, WM_OP_EXEC_REGION_WIN);
        
-       split = uiLayoutSplit(layout, 0);
+       split = uiLayoutSplit(layout, 0, 0);
        col = uiLayoutColumn(split, 0);
        uiItemL(col, "Links", 0);
        uiItemO(col, NULL, ICON_URL, "HELP_OT_release_logs");