invoke_props_dialog() which requires user confirmation before op->exec #21680

Closed
opened 2010-03-20 13:28:56 +01:00 by Richard Olsson · 4 comments
Member

%%%While porting the "batch renaming" python script, I realized the redo/undo behavior of operators on property change, is not beneficial for all types of scripts (e.g. said script.)

This patch adds an invoke_props_dialog() python method to the wm, which works much like invoke_props_popup(), except it requires the user to click an OK button before the operator is actually executed, at which point the popup is closed and any pending reports are displayed.%%%

%%%While porting the "batch renaming" python script, I realized the redo/undo behavior of operators on property change, is not beneficial for all types of scripts (e.g. said script.) This patch adds an invoke_props_dialog() python method to the wm, which works much like invoke_props_popup(), except it requires the user to click an OK button before the operator is actually executed, at which point the popup is closed and any pending reports are displayed.%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

%%%committed, added width and height.
thanks for the patch.%%%

%%%committed, added width and height. thanks for the patch.%%%

%%%closing%%%

%%%closing%%%

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#21680
No description provided.