Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-30libquery foreach looper: in recursive case, do not bother with NULL id pointers!Bastien Montagne
2016-03-26Fix own regression in rBc08924bf94f2dff - foreach ID looper was broken due ↵Bastien Montagne
to missing initialization. Quite unbelievable this could slip in... tons of shame on me :/
2016-03-24Rework library_query foreach looper - add optional recursivity.Bastien Montagne
This commit: * Fixes bad handling of 'stop iteration' (by adding a status flag, so that we can actually stop in helper functions too, and jumping to a finalize label instead of raw return, to allow propper clean up). * Adds optional recursion into 'ID tree' - callback can also decide to exclude current id_pp from recursion. Note that this implies 'readonly', modifying IDs while recursing is not something we want to support! * Changes callback signature/expected behavior: return behavior is now handled through flags, and 'parent' ID of id_pp is also passed (since it may not always be root id anymore). Reviewers: sergey, campbellbarton Differential Revision: https://developer.blender.org/D1869
2016-01-17Cleanup: spellingCampbell Barton
Also use doxy formatting for warning/note.
2016-01-16Fix (unreported) missing scene->gm.dome.warptext in libquery looper.Bastien Montagne
2016-01-06'users of ID' py API.Bastien Montagne
This mainly adds bpy.data.user_map() method, which goes over the whole Main database to build a mapping (dict) {ID: {users_of_that_ID}}. Very handy to check and debug ID usages, but could also be really valuable for py addons creating temporary scenes, or some exporters, etc. Note: current code in master's libquery misses some IDs (and reports some it should not, like nodetrees), this is fixed in id-remap but still needs serious review before going to master. This basically means that current bpy.data.user_map() **will not** report a complete and exhaustive state of dependencies between IDs. Should work OK in most cases though. Original work/idea comes from id-remap branch, was heavily reworked by @campbellbarton and myself for master. Reviewers: campbellbarton, sergey Differential Revision: https://developer.blender.org/D1678
2015-11-30Libquery: fix double-handling of object pointer in scene's basact base.Bastien Montagne
Looping twice on same ID pointer may not be an issue in master currently, but with work done in id-remap branch this should be avoided as much as possible, so for now assuming we do not need this here. Note: if we really need this and have to add it back, then please at least use IDWALK_USER, and not IDWALK_NOP flag!
2015-11-26Fix (unreported) libquery's IDLooper for constraints not handling correctly ↵Bastien Montagne
referenced ID pointers...
2015-11-11Fix (unreported) foreach ID looper going over some psys' IDs twice...Bastien Montagne
2015-11-09Cleanup: `BKE_library_update_ID_link_user`: use `id_us_ensure_real` for ↵Bastien Montagne
`IDWALK_USER_ONE`.
2015-11-09Fix broken groupobject usercount handling.Bastien Montagne
As we can see in (original) read code, ob pointer in groupobject is actually a 'USER_ONE' case. This was not done in 'add object to group' code, probably because we can assume objects always have at least one user in that case? Made it explicit now. Also fixed foreach_ID_link looper. In general we have waaayyyyyy too much 'own handling' of ID->us count in code currently, will clean up that...
2015-10-08Add logicbricks to ID looper.Bastien Montagne
2015-10-08Add rigidbodyworld to id looper.Bastien Montagne
2015-10-08Add id looper for particlesystem.Bastien Montagne
2015-10-08Add a bunch of missing IDs in ID looper...Bastien Montagne
2015-10-08Modifiers: add 'cd_flag' parameter to their ID looping callbacks, neededBastien Montagne
since some IDs (objects) are not 'refcounted' while others (textures) are... Partial merge from id-remap branch.
2015-10-08Fix T46386: Duplicate fails updating driver linksCampbell Barton
Duplicate wasn't updating links, so duplicatinvg a objects would still point to the originals for curve-taper, texmesh, drivers. Use generic id-looper to handle replacing data.
2015-10-08Add USER flags to BKE_library_foreach_ID_linkCampbell Barton
This way callbacks can know if adjusting user-count is needed.
2015-10-08Add missing object-data ID loop pointerCampbell Barton
2015-10-08Add missing object ID loop pointersCampbell Barton
2015-10-07Cleanup of BKE_library_foreach_ID_link.Bastien Montagne
This func is long enough, there's no real need to make it even longer with verbose local varnames and multi-line for loops... Also, avoid mono-leters names as well for data pointers.
2014-06-06Fix compilation error after recent changesSergey Sharybin
fmc->script is a text datablock, for which we need to access to it's IT property.
2014-06-06Fix for missing visits of ID's within SceneRenderLayer in ↵Tamito Kajiyama
BKE_library_foreach_ID_link(). Just noticed them while working on the previous commit (rB00f722042c07).
2014-06-06Fix for missing visits of Freestyle-related ID data blocks in ↵Tamito Kajiyama
BKE_library_foreach_ID_link().
2014-05-03Patch D246: Texture Marks for freestyle strokes, written and contributed by ↵Tamito Kajiyama
Paolo Acampora. Reviewers: brecht, kjym3, #freestyle Reviewed By: brecht, kjym3 Differential Revision: https://developer.blender.org/D246
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-11API Cleanup: Use BKE_constraint prefix for constraint apiCampbell Barton
2014-04-11Code cleanup: use boolCampbell Barton
2014-03-30Fix for missing break statementsCampbell Barton
2014-03-30Fix for uninitialized var useCampbell Barton
2014-03-28Fix T37599: Crash making linked objects local and undoSergey Sharybin
Root of the issues comes to the fact that it's possible to produce a situation when library object data uses local object. This is actually forbidden and not supported by .blend IO. Made it so Make Local wouldn't produce such an unsupported states. Reviewers: brecht Differential Revision: https://developer.blender.org/D372