blender/release/scripts
Joshua Leung 263518ec49 Outliner: "Purge All" function for Outliner in "Orphaned Datablocks" mode
Many users have been requesting a way to remove unused datablocks from the file/session
"without closing and reopening" Blender (or at least that's the impression I'm getting).

This commit adds a new operator (exposed as the "Purge All" button in the header of
the "Orphaned Datablocks" mode in the Outliner, which seems to be the logical
place for this) for doing so. It does so by wrapping up the save and "revert"
(i.e. reload the saved file from disk, without needing to quit Blender) operators
along with a confirmation prompt for good measure.

Caveats:
* Ultimately, we still cannot really cleanly delete any datablocks from the current
  session outright without reloading the file/data at some point. Thus, we do need
  to reload the file again before it can be used.
* This does mean that this operation is irreversible. Notably, Undo history is lost
  is doing this operation. Hence the warnings...   (Then again, undo/redo actually
  reloads the entire scene DB from memory, so it's not anything uncommon ;)

Other Notes:
* The addition of this operator brings this mode more into line with being a kind of
  "Trashcan" place, with this new operator being the manual "Empty Trash" button.
  If the "Orphaned Datablocks" name is too obscure, maybe we could rename this
  mode to "Trash" or something similar?
2015-02-16 01:21:47 +13:00
..
addons@1068cf3057 Submodules: Make them pointing to the master branch 2015-01-07 00:18:18 +05:00
addons_contrib@24d59d37f7 Point submodules ot latest release tags 2015-01-06 18:48:04 +05:00
freestyle Freestyle: Avoid quietly ignoring errors in parameter_editor.lineset_pre callbacks. 2014-12-02 23:08:22 +09:00
modules cleanup 2015-02-13 16:17:00 +11:00
presets Committing the impressive RTheme to the default collection 2015-01-29 23:24:30 -06:00
startup Outliner: "Purge All" function for Outliner in "Orphaned Datablocks" mode 2015-02-16 01:21:47 +13:00
templates_osl Cycles: Remove Westin closure. 2014-10-03 16:03:49 +02:00
templates_py Fix T43206: region_2d_to_origin_3d has no ortho offset 2015-01-13 05:41:56 +11:00