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
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-07-11remove redundant castsCampbell Barton
2015-07-03UI: add ability to access/generate 'shortcuts strings' of modal keymaps.Bastien Montagne
We already had that for global keymaps (used e.g. to generate shortcuts for menu entries), but this wasn’t possible for modal keymaps yet (e.g. help message in header during transforms and other modal operation). This commit only adds needing background code, it does not change anything from user PoV. Modal operators will be updated to use it in comming weeks. Thanks to Campbell for revisions & suggestions. :) Differential Revision: https://developer.blender.org/D780
2015-07-01Refactoring:Antony Riakiotakis
Make sure SEQ_TYPE_EFFECT is only used as a flag, not as number comparison. This should allow us to add new non-effect types in between effect types (every 8 indices). Dirty, but alternative of separating type/subtype means we lose forward compatibility.
2015-05-15Fix crasher in new lazy-rebuild outliner's treehash.Bastien Montagne
treehash must always been checked before used! Reported on irc by sebastian_k and investigated by sergey, thanks!
2015-05-11Outliner: postpone rebuilding the treeCampbell Barton
On existing Blender could rebuild tree many times (on freeing each ID). Use a flag instead of immediately rebuilding.
2015-05-11Outliner: cleanup flag was never clearedCampbell Barton
Was running cleanup on every draw.
2015-04-30Fix T44439: outliner's treestore could keep invalid ID pointers, could crash ↵Bastien Montagne
on undo due to invalid mem access. We cannot nuke treestore in readfile's `blo_lib_link_screen_restore()`, because this will destroy all UI-state data (like opened/closed items, etc.). Since we cannot know for sure whether an ID pointer from tselem->id is valid here, we have to ensure they are never invalid, i.e. to always set them to NULL when we delete them. To do so, this commit uses a similar approach as what already exists for ID references in WM notifiers - it extends `free_notifier_reference_cb()` to also nullify those IDs in all outliners. Note that some ID types are not used(shown) by outliner currently, so `TREESTORE_ID_TYPE` macro was added, that checks whether an ID is possibly used by outliner. Avoids a few searches in whole tree whene deleting some IDs. Reviewers: campbellbarton, sergey Maniphest Tasks: T44439 Differential Revision: https://developer.blender.org/D1272
2015-04-07Cleanup: rename treehash -> outliner_treehashCampbell Barton
This is an API specifically for the outliner, not some generic hierarchical hash structure.
2015-03-28Use union for EditBone'sCampbell Barton
Avoids complicated casts accessing as int
2015-02-15Possible todo notes for more polished UI?Joshua Leung
2015-02-15Code Cleanup: Reshuffle libraries and orphaned datablocks views to a more ↵Joshua Leung
appropriate place in the file
2015-02-15Outliner: Added new mode for displaying "orphaned" datablocksJoshua Leung
Orphaned datablocks are those which have either: * 0 users * A "fake" user only In the case of the former, they will be quietly discarded from the file on the next save + reload. Hence, it is helpful to have a view where you can confirm which ones fall into this category and might be worth saving. We also include datablocks with a fake user only so that datablocks given a user above can have that easily turned off again (in case the user makes a mistake). Another benefit of showing these is that it become easier to remove fake users from datablocks you no longer want retained without having to hunt for them.
2015-02-11cleanup: style/indentationCampbell Barton
2015-02-09Fix outliner crash renaming library /w filterCampbell Barton
D1045 by @a.romanov
2015-02-07GPencil: Initial support for GP Layers in OutlinerJoshua Leung
This is still very rudimentary, and lacks many things. * This needs a better icon. Perhaps we can look into using colour swatches here too like in all the other places? * The "active" check needs to be implemented still * Various restriction toggles to come still
2015-02-07GPencil: Initial support for Grease Pencil in the OutlinerJoshua Leung
This commit just adds entries for the Grease Pencil datablocks in the Outliner. Currently, there's not much more to see here, but the following commits will see to that.
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-19RNA/API: name outliner sort option like UIListCampbell Barton
2015-01-19Outliner: Make alphabetical sorting optionaljulianeisel
A new option to the Outliner's View menu is added to enable/disable sorting of items.
2015-01-11Fix three issues reported by coverity in own recent code. Including two ↵Bastien Montagne
potential crashers.
2015-01-05Outliner 'Blender file' view: Show libs used both directly and indirectly ↵Bastien Montagne
both on main level and in nested tree. Request from Gooseberry team. This eases a bit managing dependancies in complex .blend files. Reviewers: campbellbarton Subscribers: fsiddi Projects: #user_interface, #bf_blender:_next Differential Revision: https://developer.blender.org/D943
2015-01-03Add some BLI helpers needed by asset branch.Bastien Montagne
`BLI_strncpy_ensure_pad()` is also useful with current master code. The two others (`BLI_strcmp_ignore_pad()` and `BLI_filelist_duplicate()`) are only used in asset branch currently, but think they could be useful in other places too, and simplifies handling of asset branch & future patch review. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D965
2014-10-28Cleanup: de-duplicate engine-id'sCampbell Barton
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-05-08Freestyle: hide line styles from a scene in the Outliner when WITH_FREESTYLE ↵Tamito Kajiyama
build flag is off. The Datablocks display mode still shows line style ID datablocks to keep track of line styles hidden from user interactions in the Properties window.
2014-05-03Minor code style fix.Tamito Kajiyama
2014-05-03Added changes to show textures as part of line styles in the Outliner.Tamito Kajiyama
2014-05-01Include removal gave problems with windows, ifdef some back in for windows onlyCampbell Barton
2014-05-01Revert "Fix msvc 2013 compiler errors after the ingenious cleanup in ↵Campbell Barton
4ca67869cc7a." This reverts commit a47a4ef82f37428d391cc14a30fa611d6714e71d.
2014-05-01Fix msvc 2013 compiler errors after the ingenious cleanup in 4ca67869cc7a.Thomas Dinges
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-20Code cleanup: use true/false in sequencer functionsSergey Sharybin
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2013-10-15Fix [#37077] User prefs > Input and Outliner Keymaps mismatch in representation.Bastien Montagne
Remove KeyMap mode from outliner, was an old half-finished features redondant with user preferences settings... Also moved key map item's "event type to map type" and map type defines at WM level, this is too much generic to be at RNA level. Also added a check in versionning code to convert all outdated outliner modes to a valid one (seems old 'verse' ones were not handled as well). Thanks to Brecht for reviews and advices!
2013-10-15A follow-up to Bug #37070: LineStyle appears in Outliner by default though ↵Tamito Kajiyama
Freestyle is not enabled. Line style data blocks are shown in the outliner only when the Blender Internal is used.
2013-10-14Fix for #37070: LineStyle appears in Outliner by default though Freestyle is ↵Tamito Kajiyama
not enabled.
2013-09-30fix regression [#36878], missing NULL checks for linestyle.Campbell Barton
2013-09-04Added better support for line styles in the Outliner.Tamito Kajiyama
2013-08-27Get rid of madness about fnmatch: BLI_fnmatch did not do the OS checks, they ↵Bastien Montagne
had to be done in every file using fnmatch (autoexec.c did not, wonder how it could work under unix???). Thanks to Brecht for noting this!
2013-08-24Fix state losses for recursive outliner trees (e.g. datablocks editor)Sv. Lockal
In previous optimization in outliner I assumed that order in treehash was not important. But testing outliner in datablocks mode revealed a problem: when user expands multiple recursive levels and then closes any element, it always closed the top level of recursion. Now it should work fine with recursive trees. Now treehash contains groups of elements indexed by (id,nr,type). Adding an element with the same (id,nr,type) results in appending it to existing group. No duplicates are possible in treehash. This commit should also make lookups a little bit faster, because searching in small arrays by "used" is faster than searching in hashtable with duplicates by "id,nr,type,used".
2013-08-19Add comments for outliner's treestore and treehash (no functional changes)Sv. Lockal
2013-08-18add assert for hashes if an existing element is ever inserted into a ↵Campbell Barton
ghash/edgehash. the outliner does this intentionally, so add a flag to allow this situation optionally.
2013-08-17Fix [36486] Outliner doesn't allow to expand Hierarchies of armature if it's ↵Sv. Lockal
present on 2 Scenes This is done by fixing logic for finding the first unused element in treehash. The blend file from [36486] also exposes a memleak, but it should be addressed separately.
2013-08-04code cleanup: remove unused define, correct header guard mismatch, add NULL ↵Campbell Barton
check so DM_to_mesh() can have a NULL object passed (currently not used) and remove redundant NULL check.
2013-08-03Fix #36288, Renderlayer toggles behave unexpected in Outliner. The outliner ↵Lukas Toenne
was using the wrong flag variable for toggling render layers, was setting pass flags instead of the layer on/off flag.
2013-08-03fix for [#36260] 2,300 Objects Makes Blender UnresponsiveSv. Lockal
- performance of outliner was low because of unoptimal data structures. - now it uses BLI_mempool instead of custom mempool and GHash to make searches for duplicates faster. - also fix undesired behaviour of BLI_mempool_as_arrayN thanks to Campbell Barton and Lukas Tönne for helping me get a better fix put together.
2013-07-30Remove superfluous iterations (caused by typo) and type casts in outlinerSv. Lockal
This significantly lowers the position of outliner_draw_tree_element in profiler and partially fixes [#36260] (2,300 Objects Makes Blender Unresponsive)
2013-07-29minor changes for confusing code.Campbell Barton
- memset() was argument was truncated. - outliner had redundant NULL check. - node texture was allocating memory to make a unique name which isnt needed for a fixed size string.