From e64166652b17631e9c2a5b64bd54e7cf38af8ebb Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 28 Jan 2020 10:49:05 +0100 Subject: Fix T68749: BPY: Deprecate height of popup `invoke_props_dialog` and `invoke_popup` had a width and a height field. The height field was ignored as the height is determined based on the content. This change removes the field from the BPY + WM_api Reviewed By: Campbell Barton, Jacques Lucke Differential Revision: https://developer.blender.org/D6694 --- source/blender/editors/object/object_edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/object/object_edit.c') diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 5e85d47a402..e6006ecbc62 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -1020,7 +1020,7 @@ static int object_calculate_paths_invoke(bContext *C, wmOperator *op, const wmEv /* show popup dialog to allow editing of range... */ /* FIXME: hardcoded dimensions here are just arbitrary */ - return WM_operator_props_dialog_popup(C, op, 200, 200); + return WM_operator_props_dialog_popup(C, op, 200); } /* Calculate/recalculate whole paths (avs.path_sf to avs.path_ef) */ @@ -1739,7 +1739,7 @@ static int move_to_collection_invoke(bContext *C, wmOperator *op, const wmEvent BKE_collection_new_name_get(collection, name); RNA_property_string_set(op->ptr, prop, name); - return WM_operator_props_dialog_popup(C, op, 200, 100); + return WM_operator_props_dialog_popup(C, op, 200); } } return move_to_collection_exec(C, op); -- cgit v1.2.3