blender/scripts
Guillermo Venegas 0d7282e69b Fix: Presets overriding drag-n-drop data
Currently, internal I/O operators can be invoked with drag-n-drop path
data, and when this happens a quick popup menu is shown to customize
import settings.

If these operators support operator presets, using a preset can
override path data given by drag-n-drop, and that can be unwanted
behavior.

While this can be fixed by setting path properties to SKIP_SAVE, doing
this would make these properties also to stop using ghost values. These
ghost values are used by the file select window to open operator last
import directory, and using this flag makes the file select windows
always open the home directory.

To fix that, add an explicit flag PROP_SKIP_PRESET that skips properties
writing to presets. Also clarify that PROP_HIDDEN and PROP_SKIP_SAVE
also avoid writing to presets.

Added a operator that can clean operator's specific property presets.
Importing presets from previous versions runs an automatic cleanup.

Co-authored-by: Brecht Van Lommel <brecht@blender.org>
Pull Request: https://projects.blender.org/blender/blender/pulls/117673
2024-02-06 20:02:27 +01:00
..
freestyle Cleanup: spelling in comments 2023-09-05 11:04:27 +10:00
modules I18n: extract and disambiguate a few messages 2024-02-06 17:06:30 +01:00
presets GPv3: Separate operator 2024-02-06 12:06:48 +01:00
site Cleanup: spelling in comments, update dictionary 2023-09-03 21:35:07 +10:00
startup Fix: Presets overriding drag-n-drop data 2024-02-06 20:02:27 +01:00
templates_osl License headers: remove GPL header from OSL template script 2023-08-04 13:24:15 +10:00
templates_py Cleanup: Grammar in comments 2024-01-11 11:01:50 -05:00