Error in recent popover keep_open option
authorCampbell Barton <ideasman42@gmail.com>
Wed, 6 Jun 2018 07:43:03 +0000 (09:43 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 6 Jun 2018 07:43:03 +0000 (09:43 +0200)
source/blender/windowmanager/intern/wm_operators.c

index 97aad67eda28f967f608c5b968362eb19bc8515b..27344c8da75fb297a252f2189c022d1403ee9ade 100644 (file)
@@ -2246,7 +2246,7 @@ static int wm_call_panel_exec(bContext *C, wmOperator *op)
        RNA_string_get(op->ptr, "name", idname);
        const int space_type = RNA_enum_get(op->ptr, "space_type");
        const int region_type = RNA_enum_get(op->ptr, "region_type");
-       const bool keep_open = RNA_enum_get(op->ptr, "region_type");
+       const bool keep_open = RNA_boolean_get(op->ptr, "keep_open");
 
        return UI_popover_panel_invoke(C, space_type, region_type, idname, keep_open, op->reports);
 }