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
2020-01-22Cleanup: Rename ED_region_init() -> ED_region_floating_initialize()Julian Eisel
This function is a very special refresh function just for floating regions. _initialize is more consistent with ED_area_initialize() so use that too. Also adds assert.
2020-01-16Fix T73150: Python tooltips missing from toolbarCampbell Barton
2019-12-11UI: show tool cycling shortcuts in the toolbarCampbell Barton
2019-12-11Cleanup: spellingCampbell Barton
2019-12-06Tool System: don't assert when showing tooltips in a different spaceCampbell Barton
Needed to show fallback tool for the 3D view in the properties editor.
2019-11-25CMake: support building without PythonCampbell Barton
Resolve linking issues, warnings.
2019-09-06Python API: implement an Operator callback for dynamic description.Alexander Gavrilov
Blender UI Layout API allows supplying parameters to operators via button definitions. If an operator behavior strongly depends on its parameters, it may be difficult to write a tooltip that covers all of its operation modes. Thus it is useful to provide a way for the operator to produce different descriptions based on the input info. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D5709
2019-08-28Fix T68971: Copy As New Driver from Material node creates a bad reference.Alexander Gavrilov
NodeTree structures of materials and some other data blocks are effectively node group datablock objects that are contained inside the parent block. Thus, direct references to them are only valid while blender is running, and are lost on save. Fix Copy As New Driver to create a reference that goes through the owner datablock, by adding a new ID flag to mark private pseudo-datablocks. Also fix functions that return full paths to structures and properties, e.g. used in python tooltips. Functions for paths from ID to struct or property can't be changed because of Animation Data related code. Reviewers: mont29 Differential Revision: https://developer.blender.org/D5559
2019-08-23RNA: Cleanup PointerRNA structJacques Lucke
The old layout of `PointerRNA` was confusing for historic reasons: ``` typedef struct PointerRNA { struct { void *data; } id; struct StructRNA *type; void *data; } PointerRNA; ``` This patch updates it to: ``` typedef struct PointerRNA { struct ID *owner_id; struct StructRNA *type; void *data; } PointerRNA; ``` Throughout the code base `id.data` was replaced with `owner_id`. Furthermore, many explicit pointer type casts were added which were implicit before. Some type casts to `ID *` were removed. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D5558
2019-08-06Fix T66731: Part 3: Labels translations when tools are in 'compact' mode.Bastien Montagne
Very annoying that this whole UI thingy uses its own cooking... This is more a quick-slap fix than a proper solution, would expect it to work in nearly all cases though...
2019-08-05Cleanup: use unsigned char for theme colorsCampbell Barton
Nearly all byte-color functions use 'uchar' causing casts when then colors were passed in. Declare as uchar to remove the need for casts.
2019-06-19UI: show label in tool-tipsCampbell Barton
When button text doesn't already show the label, include the label in the tool-tip. Without this the descriptions for icon-only buttons don't always make sense. This also gives a tool-tip for icon-only popovers.
2019-06-11Fix/Cleanup: I18N: Bad usage of IFACE_ instead of TIP_.Bastien Montagne
Cheap tip: anything that is not "Camel Case" and/or that is more than a few words long should use `TIP_` translation, not `IFACE_` one. Also added several missing strings (including the one reported in D5056 by Jean First (@robbott), thanks).
2019-05-28Gizmo: changes to internal drag logicCampbell Barton
Minor changes to recent gizmo click/drag logic 08dff7b40bc6a Changing the gizmos highlighted part in the invoke_prepare callback is too error prone since it needs to run before it's known which operator will execute. Add back 'drag_part', since it simplifies click-drag use. While this isn't essential with custom keymaps per gizmo it avoids having to define a keymap in the case a drag event needs a different action.
2019-05-27Gizmo: add per gizmo keymapsCampbell Barton
Remove click-drag support for tweak gizmo, rely on keymap events instead. This is needed for some gizmos to use modifiers keys without having all gizmos use all modifier keys (see: T63996).
2019-05-09I18n disambiguation: Drag (physics force vs. mouse action).Bastien Montagne
Part of T43295.
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-17Cleanup: comment length in interfaceCampbell 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-03-25Cleanup: use braces for interface codeCampbell Barton
2019-03-15Tool System: split UI label from tool identifiersCampbell Barton
Prepare for exposing tool registration to the Python API. - Generated tools can use their own prefix so naming collisions won't happen between hard coded & generated tools. - Add-on authors can use the add-on name as a prefix. Currently the names match, renaming will happen next.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-04Cleanup: use typed unsigned intsCampbell Barton
2019-01-04UI: refactor layout vars out of uiFontStyleCampbell Barton
Word wrap and alignment layout args only used by UI_fontstyle_draw were vars in uiFontStyle. These were written to before drawing, so better pass as an argument. Pass uiFontStyle & uiWidgetColors as const args.
2018-11-25UI: Disable font shadow in tooltipJulian Eisel
When I added this a few years ago, it was meant to create a fake bold effect. With the new text shadow drawing code, that doesn't work well though.
2018-11-22UI: hide shortcut from gizmo tip when none foundCampbell Barton
2018-11-20Fix error generating toolbar tooltipCampbell Barton
C code needed to be updated for module move.
2018-11-14Paint: remove brush select paint_modeCampbell Barton
Instead check which property has been set.
2018-11-12Fix error clearing the popup toolbar keymapCampbell Barton
Generating the keymap for the tooltip stopped shortcuts from running. While this could be supported - the shortcuts show in the button, so remove shortcuts from these tips.
2018-11-09Fix T57737: crash displaying expanded tooltip for transform toolPhilipp Oeser
Maniphest Tasks: T57737 Differential Revision: https://developer.blender.org/D3923
2018-11-07Cleanup: remove some useless BKE_library and BKE_main includes.Bastien Montagne
Makes it simpler to make some changes... Also fix order of some includes (use alphabetical please).
2018-11-07Tool System: display tooltip generation errorCampbell Barton
While this shouldn't ever happen there have been reports of tooltip creation failure - keep this until the issue is resolved.
2018-11-07Paint: paint.brush_select now supports gpencilCampbell Barton
Replace grease pencil specific brush select operator.
2018-11-07Paint: update shortcut detection for new logicCampbell Barton
2018-11-06Brush: split out vertex paint tool & blend modeCampbell Barton
- Vertex & weight paint now use the 'blend' setting. - Weight paint now has it's own tool setting, since weight paint doesn't deal with color - we'll likely support different tools eventually.
2018-10-16Cleanup: namingCampbell Barton
'mp' was a reference to 'manipulator'
2018-09-06UI: tweak tool bar tooltipsCampbell Barton
- Only show label-tips when tools are icon-only. - Don't show shortcuts in label-tips. - Position both tool label & full tips around the button bounds.
2018-09-05UI: tweak tooltip placementCampbell Barton
Only apply offset w/ non overlapping placement.
2018-09-05UI: avoid comma which can be used in shortcutsCampbell Barton
2018-09-05UI: show a small label next to the toolCampbell Barton
Instead of showing the full tip immediately when hovering over a tool, show only the (label, shortcut), without suppressing the regular tip.
2018-09-04Fix assert creating a tools tipCampbell Barton
2018-09-04UI: support immediate non-overlapping tooltipsCampbell Barton
Use these for the toolbar, since they're non-overlapping the interface, showing them quickly isn't a problem.
2018-09-04Merge branch 'master' into blender2.8Campbell Barton
2018-09-04UI: cleanup tooltip bounds clampingCampbell Barton
Wasn't properly clamping on the window minimum.
2018-09-04UI: show tool name in tip w/ icon-only displayCampbell Barton
2018-09-03Tool System: add paint brush shortcutCampbell Barton
2018-09-03Cleanup: replace __import__ w/ import argumentCampbell Barton