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
2019-05-19UI: Remove Hover Highlight When Outliner Loses FocusHarley Acheson
This patch removes the hover highlight that can sometimes remain after moving out of the Outliner space Differential Revision: https://developer.blender.org/D4822 Reviewed by Brecht Van Lommel
2019-05-18UI: Icons updateWilliam Reynish
New icons from Andrzej Ambroż / Jendrzych: - Bespoke icon for creating new Collections - Special icons for Rigid Body and Rigid Body Constraints (Physics Properties) - New icons for Holdout and Indirect Only toggles in the Outliner - New generic Cursor icon for cases that are not related to either Orientation or Pivot Many other tweaks to existing icons, including: - Add & Remove Keyframe - Weight Paint & Collision Modifier - Tablet Pressure Sensitivity - Playback icons
2019-05-17Outliner: Make restriction icons inactive based on hierarchy valueDalai Felinto
If the parent of a collection has a setting disabled, the children should have that setting inactive. In some cases a column may affect another one. For example, disabling a collection to render should make holdout and and indirect only inactive. In View Layer it works for both objects and collections. For Scenes mode, it works only for collections. Differential Revision: https://developer.blender.org/D4888
2019-05-17Set selection column restrict hidden by defaultDalai Felinto
This was discussed in the past, the idea is to get the outliner even more compact. Also to let users to use the viewport selection restriction further. It would be nice to haven indication that an invisible column is set, but this is no particular to the selection column.
2019-05-16UI: tweak display of active, selected and edited items in the outlinerHarley Acheson
* Change circle to roundbox around active icons, so they don't overflow. * Change text color to indicate selected and active state. Differential Revision: https://developer.blender.org/D4650
2019-05-16Theme: add color difference for every other rowCampbell Barton
D4862 by @CandleComet with minor edits.
2019-05-15Fix default open outliner restrict columnsDalai Felinto
Regression introduced on 777a546c0c7.
2019-05-15Fix T64467: Outliner Rename drawing overlapping restriction column + checkboxDalai Felinto
For anyone interesting on polishing pixels, this is still one of the few places in Blender where when renaming the name "jumps" a tiny bit when editing. Most of the other places (id rename, UI list rename, ...) have the text drawing in the exact same place while editing it and drawing.
2019-05-15Outliner Tooltips Cleanup: Retrict/Allow > Restrict ; set/unset > setDalai Felinto
2019-05-15T64020: Outliner - implement Shift + Click for objects as wellDalai Felinto
2019-05-15Outliner Restriction: Naming sanitization and iconDalai Felinto
No major API change here, only in the outliner restriction column variables (e.g., show_restrict_column_selectable > show_restrict_column_select). * Get rid of _INSTANCE (introduced on b1af68200159). * Differentiate (everywhere but the API) between HIDE (temporary) and VIEWPORT (global). * Use the expected icon for restrict viewport (same as objects and modifiers). * selectable > select
2019-05-14T64607: Outliner UI TooltipsDalai Felinto
In the outliner we don't have yet a clear distinction for the users of when to use each of the visibility settings. This changes that by properly naming the property and their tooltips. I'm also unifying the naming between the rna properties and the outliner for collections and objects (e.g., so collection and object hide_select have the same tooltips everywhere). The API did not change.
2019-05-14UI: Improve naming for Collections Enable/DisableWilliam Reynish
- Fix 'ddisable' typo - Use clearer names for the operators in the Collections context menu Instead of Set Exclude / Clear Exclude, we now use Enable in View Layer / Disable from View Layer
2019-05-13Fix T64292: world missing from outliner Scenes viewBrecht Van Lommel
2019-05-11Revert API change (hide_viewport > hide_instance)Dalai Felinto
The change was introduced on b1af68200159. We may still change the name functionality of this anyways - we are not really changing only the instancing visibility here at the moment. So there is no reason to break the API in the meantime. And in the future we can simply add a new API entry, leaving the old one to be slowly deprecated.
2019-05-11Outliner Visibility UpdateDalai Felinto
See T61578 for discussions and mockups. Visibility Options ================== We are adding more granular control over restriction columns in the outliner, exposing "indirect only" and "holdout" as options, and change the way users enable/disable collections in a viewlayer. We also rename the object viewport restriction to hide instance. So the options we have are: Collection ---------- * Render Visibility * Instance Visibility * Selectable (View) Layer Collection ----------------------- * Enable * Holdout * Indirect Only * Viewport Shortcuts ========= Isolate Collection ------------------ * Ctr + click isolates the collection. It turns all its parents and children "visible", and all the other collections "invisible". If ALL the collections were already properly set, we re-set the collections to their default value. Set Collection Inside Collections and Objects --------------------------------------------- * Shift + click: Set/unset inside collections and objects. We only set objects values as well when we are in View Layer mode and (obviously) when the objects have a matching property. Icons ===== Little reminder that we will need better icons for holdout, indirect only, and probably instanced (nothing wrong with the current, but it differs from the proposal when it is turned off). Also, we need to decide where do we want the modifier/bones/... icons to be (in which column) and ideally make sure their icons match the ones we use for collections/objects. At the moment those are using the screen icon, which is not being used by collections. Reviewers: brecht, billrey Subscribers: pablovazquez Differential Revision: https://developer.blender.org/D4823
2019-05-09Cleanup: avoid some floating point divisions in drawing codeBrecht Van Lommel
2019-05-09UI: dim icons in inactive tabs, similar to textBrecht Van Lommel
This makes the properties editor navigation bar less saturated. Internally the icon theme coloring was refactored a bit to move more towards the button drawing code.
2019-05-03Fix missiong collection move line in outliner after recent changesHarley Acheson
Differential Revision: https://developer.blender.org/D4781
2019-05-01UI: remove outliner vertical separatorsHarley Acheson
This removes the vertical bar separators between items and subitems (for closed rows), and the vertical lines between the columns of restriction icons. The vertical bars and lines don't really serve any useful purpose and add some visual fuzziness and confusion. Best to concentrate the eye on the items of content, not the separators between them. Differential Revision: https://developer.blender.org/D4743
2019-05-01UI: remove outliner highlight selection gapHarley Acheson
When rows were highlighted - for selection, hover, or search - the highlighted bar would not take up the entire vertical space but instead leave a gap. That gap generally looks like a separator between items, adding complexity and fuzziness for no real benefit. Differential Revision: https://developer.blender.org/D4742
2019-05-01UI: make outliner hierarchy line width take into account DPIHarley Acheson
Differential Revision: https://developer.blender.org/D4744
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-05-01Outliner: Fix "Unlink" not working for parented objectsDalai Felinto
How to reproduce it: * Parent an object to another in the same collection. * RMB the child object and try to "unlink" it.
2019-04-30Refactor: Use object select API - ED_object_base_selectDalai Felinto
We had a mix of BKE_view_layer_base_select (harmless), and places where we simply set the BASE_SELECTED flag with no regard to its selectable state.
2019-04-30Refactor: Separate scrollers from text drawing in APIJacques Lucke
This is a continuation of rB7fdffd735ff24, where I separated the e.g. frame number drawing from scrollers internally. This patch changes the API, so that space draw handlers have to draw these numbers explicitely. This greatly simplifies the scrollers API for all spaces that just need scrollers without any frame numbers. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D4747
2019-04-30Cleanup: make 'deselect_all' properties PROP_SKIP_SAVE.Bastien Montagne
Forgot to do that for some in previous commits, that kind of props are better with 'skip save' behavior (simpler to handle in keyconfigs).
2019-04-30Select: add 'select on nothing' to Outliner.Bastien Montagne
Althought this has limited usability currently (only 'nothing' area in Outliner are empty lines below last entries), better for consistency to have it here too. Part of T63995.
2019-04-30Cleanup: make outliner_item_do_activate_from_cursor() static.Bastien Montagne
This function is only used in one place in one file, no point exposing it in internal header currently...
2019-04-29Cleanup: comments (long lines) in editorsCampbell Barton
2019-04-25Fix small outliner drawing performance regressionHarley Acheson
Differential Revision: https://developer.blender.org/D4712
2019-04-25Fix inconsistent collection/object hide icon brightness in outlinerHarley Acheson
Differential Revision: https://developer.blender.org/D4679
2019-04-25Outliner parenting hierarchy: Sort for children when not a-z sortingDalai Felinto
We always keep the children that are not in a collection listed in the end of the children list due to design. This way we can visually draw them with dashed vertical lines. This was already working for alphabetical sorting, however whenever sorting was disabled, we would end up with a list of children ordered regardless of their state (whether the child itself is in the collection).
2019-04-25Fix T63869: Crash in new outliner show parenting hierarchyDalai Felinto
As known as outliner parenting hierarchy take two. Implemented suggestion by Brecht Van Lommel: ``` The problem is that it's iterating over te_parent->subtree, while at the same time removing elements from it as tree_to_remove_objects_from. Further there is a linear lookup to find tree elements corresponding to a child object, which causes O(n^2) time complexity overall and so poor scaling for many objects in a collection. The more efficient solution that also fixes the crash could be: * Build a map from Object* to a list of TreeElement* matching the object. * For all objects in the tree lookup the parent in this map, and move or add tree elements as needed. ``` I removed the grouping of the children not in collection in the end of the children list when sorting was not enabled. If we think we really need it back it can be tackled separately. That said, despite due to performance reasons, I can't see why would someone not have the a-z sorting enabled. And if they do, it is not the end of the world to have interleaved children that are in the collection or not in the parent subtree.
2019-04-25Fix T63869: disable outliner show parent hierarchy temporarilyBrecht Van Lommel
This is likely to cause crashes in many file, so disable this feature until it is fixed.
2019-04-24Refactor: allow event handlers to have a poll functionJacques Lucke
Previously only a fixed bounding box could be used. This was not flexible enough. T63193 will benefit from this refactor. Reviewers: brecht, campbellbarton
2019-04-24Outliner: Show parenting hierarchy in view layer viewDalai Felinto
If the "Object Children" filter is enabled, we nest the object children inside the object. If the child itself is not in the collection, it is grayed out, connected by a dash line, and its restriction flags and contents are not shown. If "Object Children" filter is disabled, it works as before. Note: This is not super fast, but at least we traverse the tree only once to get the children of an object. That said, there is a lot of loops going on here. Task T63526. Development notes: I could use the GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR shader, but that would mean I would need to iterate over the tree twice (once for each shader) - or do some bigger refactor. Also I could not get that shader to work. This shader expects float vertices while the current one is using integers, so converting the code would make the dash line drawing to diverge from the regular lines even further. Differential Revision: https://developer.blender.org/D4696
2019-04-24Cleanup: sort CMake include pathsCampbell Barton
2019-04-23Outliner draw: Fix using wrong flag to tag object on visibility changeDalai Felinto
Note: This doesn't fix any bug we know of, but it is the correct flag to tag in this case.
2019-04-22Cleanup: style, use braces for editorsCampbell Barton
2019-04-21Cleanup: comments (long lines) in editorsCampbell Barton
2019-04-20Cleanup: add missing macros to clang-formatCampbell Barton
2019-04-20Outliner: Simplify logic for parent nestingDalai Felinto
2019-04-17ClangFormat: format '#if 0' code in source/Campbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-16Selecing a pose bone in outliner deselect othersDalai Felinto
This mimics what is now the behaviour for edit bones as well. See e6151bc4c1f2. And it also matches what we do in the viewport when selecting bones.
2019-04-16Fix T63066: Outliner crash when selecting object being in armature editmodeDalai Felinto
While fixing it, also reproducing multi-object selection logic we have in the viewport. If you select one bone from an armature, it deselects all bones from the other armatures currently in edit mode. Inspired by proposed fix by Philipp Oeser (lichtwerk). Code explanation ================ CTX_data_edit_object(C) may be NULL here. In the few cases where it is not we use it for the notifier (in the other cases we call the notifier with NULL, so no harm done). This code is called during outliner drawing, and it is called, for instance every time you mouse hover a bone. If you have a mesh object in edit mode and mouse hover the bones of an armature it is plain obvious we can't rely on CTX_data_edit_object() for anything armature related. And that the original assert was asking for troubles.
2019-04-16Cleanup: trailing commasCampbell Barton
2019-04-16CMake: add library deps to CMakeLists.txtCampbell Barton
Tested to work on Linux and macOS. This will be enabled once all platforms are verified. See D4684
2019-04-14CMake: prepare for BLENDER_SORTED_LIBS removalCampbell Barton
No functional change, this adds LIB definition and args to cmake files. Without this it's difficult to migrate away from 'BLENDER_SORTED_LIBS' since there are many platforms/configurations that could break when changing linking order. Manually add and enable WITHOUT_SORTED_LIBS to try building without sorted libs (currently fails since all variables are empty). This check will eventually be removed. See T46725.