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-10-21Fix invalid property shortcuts being createdCampbell Barton
When there was no way to find the data-path from context the shortcut was still being created. It would evaluate to "context.(null)". Now adding shortcuts will be disabled if the path can't be computed.
2019-09-20UI: Fix CapitalizationYevgeny Makarov
Differential Revision: https://developer.blender.org/D5716
2019-09-02UI: Don't show button context menu for drag-labelsJulian Eisel
While the vast majority of labels would never get a button context menu (as opposed to the regular context menu of this region), draggable labels would still reach code for such context menu creation. From what I can tell only file browser icons/thumbnails and the properties editor data path would be affected. The button context menu doesn't make sense for them, so let the region context menu show up instead. If at some point we want button context menus for specific labels, we can make checks more granular.
2019-08-27Cleanup: clang-formatCampbell Barton
2019-08-27UI: add title to assign shortcut popup, tweak paddingYevgeny Makarov
Differential Revision: https://developer.blender.org/D5576
2019-08-24UI: Various tooltip corrections and fixesWilliam Reynish
Patch by Yevgeny Makarov (jenkm) Differential Revision: D5514
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-14UI: suppress Copy/Paste/Edit Driver options on whole array property fields.Alexander Gavrilov
When a button represents the whole array (e.g. color picker buttons), these context menu options were available, but didn't really work correctly. Since it's not clear how they could reasonably work without a valid index, it's better to hide them.
2019-08-04Add a new Copy As Driver context menu option for properties.Alexander Gavrilov
It is a very common need to create drivers that set the value of a property to the value of some other property, but it currently requires multiple actions: Copy Data Path on the input property, adding a driver to the output property, selecting the input ID reference, and pasting the path. This adds a new Copy As Driver context menu option, which creates a complete driver in the clipboard that reads the current property, so all that remains is to paste it to the output property. It is also possible to paste just the new driver variable into an existing driver to combine multiple inputs. Reviewers: brecht, billreynish Differential Revision: https://developer.blender.org/D5382
2019-07-18Fix context menu Remove Shortcut not being available for non-keyboard shortcutsBrecht Van Lommel
2019-06-15Cleanup: Rename: Static Override -> Library Override.Bastien Montagne
Better to make internal code naming match official/UI naming to some extent, this will reduce confusion in the future. This is 'breaking' scripts and files that would use that feature, but since it is not yet officially supported nor exposed in 2.80, as far as that release is concerned, it is effectively a 'no functional changes' commit.
2019-05-29Cleanup: Remove Dead CodeAaron Carlisle
2019-05-27UI: use tool label instead of id-names for quick favoritesCampbell Barton
2019-05-21Fix T64912: Crash right clicking on 'Add New Material'Campbell Barton
D4904 by @Gvgeo
2019-05-16Refactor: Simplify ID Property freeingJacques Lucke
This also makes `IDP_CopyProperty` the "opposite" of `IDP_FreeProperty`, which is what I'd expect. Two refactoring steps: * rename IDP_FreeProperty to IDP_FreePropertyContent * new IDP_FreeProperty function that actually frees the property Reviewers: brecht Differential Revision: https://developer.blender.org/D4872
2019-05-14Interface: Free argument callback for popupsJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D4858
2019-05-14Fix T64592: Assign Shortcut does not autosave preferencesBrecht Van Lommel
2019-05-13Preferences: set dirty when editing quick favourites menuCampbell Barton
2019-05-13Fix T64461: Sub-panels allow pinningCampbell Barton
2019-05-10Add ability to create a keyboard shortcut for more mode settings.Sebastian Parborg
This adds the ability to assign shortcuts to boolean settings and enums via the right click menu. Reviewed By: Brecht Differential Revision: http://developer.blender.org/D4808
2019-05-02Cleanup: use WM_keymap_item_* prefixCampbell Barton
2019-04-19UI: move top-bar into the spaces headerCampbell Barton
Currently this is only in the 3D viewport however all spaces that use the tool-system will have this region added. D4680 by @brecht with own updates.
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-05Interface: New region type 'Footer', used by text editorGeorge Vogiatzis
* It can be hidden by dragging it up/down. * It can be at the top or bottom, independent of the header. * It uses the color theme from the header. * It does not change its color, when the area becomes active. Currently, it is used in the text editor to display the file path. Differential Revision: https://developer.blender.org/D4601
2019-03-25Cleanup: use braces for interface codeCampbell Barton
2019-03-15Fix: "Jump To Target" showing up in workspace context menuDalai Felinto
Issue introduced on d227c58e3ec2020. This was affecting WorkSpaces as well as background scene and probably other places. We use the operator poll to decide whether to show it. Reviewers: brecht, mont29 Differential Revision: https://developer.blender.org/D4488
2019-03-13Cleanup: rename uiBlock.mx,my to bounds_offsetCampbell Barton
Use a name that related to block bounds calculation (mx/my are typically used for mouse x,y).
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-13Fix T61487: quick favorites crash outside of open preferences windowPhilipp Oeser
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-15Cleanup: comment line length (editors)Campbell Barton
Prevents clang-format wrapping text before comments.
2019-01-08Fix T58479: Quick Favorites Lets you add multiple of the same itemPhilipp Oeser
Reviewers: brecht Maniphest Tasks: T58479 Differential Revision: https://developer.blender.org/D4135
2018-12-21Fix T58327: Quick Favorites "Remove from Favorites" missing for addedPhilipp Oeser
Modifiers Since user menu entries from SPACE_BUTS/SPACE_TOPBAR are also shown in other Editors (SPACE_VIEW3D), also allow these entries to be removed from Quick Favorites from these Editors. Match and deduplicate logic from screen_user_menu_draw() and ui_popup_context_menu_for_button(). Reviewers: campbellbarton, brecht Maniphest Tasks: T58327 Differential Revision: https://developer.blender.org/D4112
2018-12-19RNA: support setting default values for custom properties.Alexander Gavrilov
NLA requires a usable default value for all properties that are to be animated via it, without any exceptions. This is the real cause of T36496: using the default of 0 for a scale related custom property obviously doesn't work. Thus, to really fix this it is necessary to support configurable default values for custom properties, which are very frequently used in rigs for auxiliary settings. For common use it is enough to support this for scalar float and integer properties. The default can be set via the custom property configuration popup, or a right click menu option. In addition, to help in updating old rigs, an operator that saves current values as defaults for all object and bone properties is added. Reviewers: campbellbarton, brecht Differential Revision: https://developer.blender.org/D4084
2018-12-12Keymap: event type filter w/ finding keymap itemsCampbell Barton
Now its possibly to ask for only keyboard/mouse/ndof events when finding key map items.
2018-12-04Show tool title for favorites menuPhilipp Oeser
2018-12-04Fix T57076: Remove property from favourites menu failsCampbell Barton
2018-12-02Fix button data access for python context menusCampbell Barton
D4016 by @raa
2018-11-20UI: support jumping to target object/boneAlexander Gavrilov
Complex rigs are built from many bones (often overlapping) connected by constraints. When investigating or debugging such rigs one often wants to switch to the target of a constraint, or a parent bone, but it is difficult to do manually due to overlap confusion. This adds a right click menu option that automatically selects and makes the target object or bone active for UI fields where a suitable reference is readily available.
2018-10-31UI: Right-click menu entry to flip properties Tab Bar left/rightJulian Eisel
2018-08-24UI: re-arrange some items in context menuPablo Vazquez
* Move Add to Quick Favorites before Assign Shortcut, as it is more often that we add items to favorites, than changing shortcuts. * Move Header menu last. In some cases the Online Manual for that item would appear after the header menu. * No icon for "Remove from Quick Favorites", matches Remove Shortcut
2018-08-23Workspaces: move delete to right click menu, instead of X on tab.Brecht Van Lommel
These are not intended to be closed as often as e.g. browser tabs, they are intended to be more persistent and accidental closing should be avoided.
2018-08-22UI: Minor label tweaks to operators context menuPablo Vazquez
* Add Shortcut -> Assign Shortcut * Add to Favorites Menu -> Add to Quick Favorites To match the menu name and be more general for when the Quick Favorites are accessible in places other than just menus (like panels). Add blank icon to Remove Shortcut so it aligns with Change Shortcut which is usually the item on top of it in the menu.
2018-08-22UI: Show development entries in context menu when Dev. Extras is enabledPablo Vazquez
2018-07-31Merge branch 'master' into blender2.8Campbell Barton
2018-07-31UI: add check for any kind of popupCampbell Barton
Fixes T56155 when merging into 2.8
2018-06-30UI: support check-boxes in quick menuCampbell Barton
Could support other RNA types, however menus don't work well in this case.
2018-06-30UI: support adding menu's to favouritesCampbell Barton