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-08-14Fix unnecessarily added undo steps when deleting only sceneJulian Eisel
Steps to reproduce were: startup.blend, move any object, delete active scene (nothing happens), undo (nothing happens), second undo is needed to revert object transformation
2015-08-14Outliner: Context menu for scenesPhilipp Oeser
Adds context menu for scenes in the outliner, for now, with only a 'Delete' entry. D1448 by @lichtwerk, review by @aligorith and @Severin
2015-08-04SCons: Fix for really nasty bug with polluting configuration environmentSergey Sharybin
The issue was caused by the following construction: def = env['SOMETHING'] defs.append('SOMETHING_MORE') Since first assignment was actually referencing environment option it was totally polluted hawing weird and wonderful side effects on all other areas of Blender.
2015-07-21Fix assert in Outliner.Bastien Montagne
2015-07-18Cleanup: whitespace & break placementCampbell Barton
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-06-17Cleanup: styleCampbell Barton
2015-05-18Fix assert in outliner regarding WM and SCR ID types...Bastien Montagne
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-05-04Add name argument to data creation API callsCampbell Barton
Was adding then renaming, unnecessarily.
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-22Fix T44477: Overlapping tooltips in OutlinerJulian Eisel
Tooltips for buttons in the Outliner could overlap the Outliner's RMB menu in some cases (and there's no way to get rid of the tooltip again). This disables the button's tooltip before creating the menu (as we do it for the normal RMB menu)
2015-04-14Fix T44348: Blender crashes when selecting bone from inactive scene in outlinerSergey Sharybin
Pose is not guaranteed to be existing in object, so can't be used for selection flag clear. Use bones themselves for that.
2015-04-07Revert Sticky Keys (and everything related to that)Julian Eisel
Our current keymap doesn't give us enough room to make such changes in the event system. To fix small issues caused by this, we would need to do drastic changes in Blender's keymaps and internal handling. It was worth a try, but it didn't work. I can write down a more descriptive statement in a few days, but for now I need a break of this stuff.
2015-04-07Cleanup: rename treehash -> outliner_treehashCampbell Barton
This is an API specifically for the outliner, not some generic hierarchical hash structure.
2015-04-04Cleanup: use BKE_animdata_* prefixCampbell Barton
2015-04-03Sticky Keys backendJulian Eisel
Design task: T42339 Differential Revision: D840 Initial implementation proposal: T41867 Short description: With this we can distinguish between holding and tabbing a key. Useful is this if we want to assign to operators to a single shortcut. If two operators are assigned to one shortcut, we call this a sticky key. More info is accessible through the design task and the diff. A few people that were involved with this: * Sean Olson for stressing me with this burden ;) - It is his enthusiasm that pushed me forward to get this done * Campbell and Antony for the code and design review * Ton for the design review * All the other people that gave feedback on the patch and helped to make this possible A big "Thank You" for you all!
2015-04-01Fix T44212: Crash on Group Rename.Bastien Montagne
Nice offset-by-one index error. ;)
2015-03-31Fix T44201: Crash Deleting Hierarchy in OutlinerBastien Montagne
Typical error using '->next' member of a freed linked list item. A bit trickier even here, since we have some recursion... Trivial fix for nasty crasher, safe for 2.74 imho?
2015-03-31Corrective Smooth Modifier (aka delta-mush)Campbell Barton
This modifier can be used to correct bad deformations, Original patch D1183 by @sazerac, with own modifications
2015-03-29Fix T44162: Outliner: modifier's icons toggle update issueBastien Montagne
Use same notifier for button callback as the one used in matching outliner operator...
2015-03-28Cleanup: redundant struct declarationsCampbell Barton
2015-03-28Use union for EditBone'sCampbell Barton
Avoids complicated casts accessing as int
2015-03-28Fix for various small issues which may cause crashesJoshua Leung
2015-03-28Compile fixJoshua Leung
New parameter added by these fixes did not exist when this call got added
2015-03-20Remove unused armature codeCampbell Barton
ED_armature_deselect_all now simply de-selects
2015-02-18GPencil: RMB menu tools in Outliner works for GP Layers nowJoshua Leung
It would be even better if these used their own dedicated menu which could include the protect values too, but this one at least works now
2015-02-17Fix for another missing update from GPencil in OutlinerJulian Eisel
2015-02-17Fix T43669: Grease Pencil visibility toggle not working in OutlinerJulian Eisel
2015-02-16UI messages fixes and cleanup.Bastien Montagne
2015-02-15Compilation error fix for strict compiler flagsSergey Sharybin
2015-02-15Possible todo notes for more polished UI?Joshua Leung
2015-02-15Outliner: "Purge All" function for Outliner in "Orphaned Datablocks" modeJoshua Leung
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-15Code Cleanup: Reshuffle libraries and orphaned datablocks views to a more ↵Joshua Leung
appropriate place in the file
2015-02-15Outliner: Do not show RMB menu for "ID Base" entriesJoshua Leung
2015-02-15Outliner: Use restriction columns in "Orphaned Datablocks" view to manage ↵Joshua Leung
usercounts When in "Orphaned Datablocks" mode, the restriction columns are used to display usercount indicators and toggles to manage whether datablocks get saved or not. * The first column shows an icon to indicate whether that datablock is going to get saved. A tick indicates the datablock will be saved, while a cross indicates the opposite. Clicking on this changes whether the datablock will get saved. * The second column shows the usercount. * The third column shows whether the datablock has a fake user. Notes: * The second and third columns are pretty much redundant (functionally speaking). While it is possible to also toggle fake users by clicking in the third column, its role here is more as information for power users (and hopefully to allow others to connect the relationship between the saved/not saved status and fake users) * I'm not sure whether the use of the X here for the "not saved" state stands out enough to draw user's attention to items which are "in the danger zone".
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-14Outliner: Toggle restrict buttons only for selectable child objectsJulian Eisel
D404 by @rupp with minor edits by me.
2015-02-11Outliner: use enum for outliner_group_operation()Campbell Barton
No functional changes. D1067 by @lichtwerk
2015-02-11Outliner: ContextMenus for constraints/modifiersCampbell Barton
Context menu to toggle render, visibility & delete D996 by @lichtwerk
2015-02-11cleanup: style/indentationCampbell Barton
2015-02-09Fix outliner crash renaming library /w filterCampbell Barton
D1045 by @a.romanov
2015-02-09GPencil: Show color swatches for GPencil layers in OutlinerJoshua Leung
Instead of showing a meaningless "dot" icon or having to come up with an arbitrary icon, the Outliner now shows the stroke/fill color swatches for each layer to match every other place where these are shown. NOTE: Like many other widgets in the outliner though, these are not editable.
2015-02-09GPencil: Viewport visbility and editability toggles for layers in OutlinerJoshua Leung
* Viewport visibility and locking are currently exposed * Later on, visibility in renders can also be included
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