Blender Git Loki
Git Commits -> Revision d4e4358
Revision d4e4358 by Bastien Montagne (master) June 25, 2016, 15:10 (GMT) |
Cleanup/refactor RNA IDs' `remove` functions. Those (one per ID type!) were uselessly duplicated, and badly inconsistent (some types were actually unlinking before deletion, others were only working if already unlinked!). Now we use same func and same API for all types, by default deletion is performed only if ID is no more used, set `do_unlink` parameter to True to always delete ID even if still in use. Only exception now is with Scene, since we always want to keep at least one! Note that this will change default behavior of some types (since unlinking is never done anymore by default). |
Commit Details:
Full Hash: d4e435836dd9f903f641b55a0b5735e47dc4781f
Parent Commit: bfcf8c8
Lines Changed: +107, -337