Blender Git Loki

Blender Git "libquery-recursive" branch commits.

March 23, 2016, 12:15 (GMT)
Rework library_query foreach looper - add optional recursivity.

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).

Used this new recursive behavior in ID preview generation as an example, would obviously be committed separately.

Reviewers: sergey, campbellbarton

Differential Revision: https://developer.blender.org/D1869
March 17, 2016, 11:23 (GMT)
Merge branch 'master' into libquery-recursive
March 6, 2016, 13:51 (GMT)
Merge branch 'master' into libquery-recursive
March 4, 2016, 13:24 (GMT)
Merge branch 'master' into libquery-recursive
February 29, 2016, 14:15 (GMT)
Merge branch 'master' into libquery-recursive
February 25, 2016, 13:21 (GMT)
Merge branch 'master' into libquery-recursive
February 25, 2016, 13:20 (GMT)
Forgot to include AnimationData into new recursive libquery foreach...
February 24, 2016, 09:18 (GMT)
Merge branch 'master' into libquery-recursive
February 20, 2016, 17:06 (GMT)
Merge branch 'master' into libquery-recursive
February 19, 2016, 09:47 (GMT)
Cleanup (remove some useless diff compared to master).
February 19, 2016, 09:29 (GMT)
Merge branch 'master' into libquery-recursive
February 18, 2016, 16:53 (GMT)
Rework library_query foreach looper - add optional recursivity.

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).

Used this new recursive behavior in ID preview generation as an example, still needs more testing!
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021