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-12Cleanup: clang-formatCampbell Barton
2019-10-08Fix: region toggle operator being able to toggle regions it shouldn'tJulian Eisel
Only regions with alignment set should be toggle-able. If this is not set, then the region is likely either a main region, or entirely hidden by the user (not just collapsed).
2019-10-04GPU: Platform Support LevelJeroen Bakker
Adds a check when starting blender if your platform is supported. We use a blacklist as drivers are updated more regular then blender (stable releases). The mechanism detects if the support level changed or has been validated by the user previously. Changes can happen due to users updating their drivers, but also when we change the support level in our code base. When the user has seen the limited support level message it is saved in the user config. It would be better to have a system specific config section, but currently not clear what could benefit from that. When the platform is unsupported or has limited support a dialog box will appear including a link to our user manual describing what to do. **Windows** Windows uses the MessageBox that is provided by the windows kernel. **X11** We use a very lowlevel messagebox for X11. It is very limited in use and can be fine tuned when needed. **SDL/APPLE** There is no implementation for SDL or APPLE at this moment as the platform support feature targets mostly Windows users. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5955
2019-10-03UI: Register File Browser as Child/Dialog-Window for the OSJulian Eisel
For many users, this will make the File Browser window behave more like what they would expect. It addresses the issue of the File Browser becoming hidden behind the main window by clicking anywhere in the latter. It communicates the interruptive, but temporary nature of the operation a bit better. Further, on tiling window managers the File Browser now opens as floating by default, like in other applications. Note that this also makes sure the File Browser is always opened as separate window, so it doesn't re-use the Preferences, or any other temporary window anymore. This seems to have been a common annoyance. More concretely, this makes the File Browser window behave as follows: * Stays on top of its parent Blender window, but not on top of non-Blender windows. * Minimizes with its parent window * Can be moved independently * Doesn't add an own item in task bars * Doesn't block other Blender windows (we may want to have this though) * Opens as floating window for tiling window managers (e.g. i3wm/Sway) Further notes: * When opening a file browser from the Preference window (or any temporary window), the main window, as the file browsers parent is moved on top of the Preferences, which makes it seem like the Preferences were closed. This is the general issue of bad secondary window handling as window activation changes. I made it so that the window is moved back once the file browser is closed. This behavior is confusing and would be nice to avoid. It's a separate issue though. * On most window managers on Linux the temporary window can not be minimized and maximized, they disable that for dialog windows. * On Windows and macOS, only minimizing is disabled, as there is no decent way yet to restore a window if it's not shown in the taskbar. Reviewed By: Brecht van Lommel, Campbell Barton, William Reynish Edits and macOS implementation by Brecht. Differential Revision: https://developer.blender.org/D5810 Part of T69652.
2019-09-28Fix build error on WindowsBrecht Van Lommel
2019-09-28Debug: add 888 and 889 debug values for redraw and PBVH node visualizatonsBrecht Van Lommel
More convenient to use the debug menu than having to modify code every time.
2019-09-26WM: refresh custom cursors designs, add a few more cursorsHarley Acheson
Cursors designed by Duarte Farrajota Ramos. Also fixes misnamed vertical and horizontal split cursors. Ref D5197
2019-09-26WM: clean up cursors constants and codeBrecht Van Lommel
There was a mix of old and new constants. Now have one list of WM_CURSOR_* cursor types, using GHOST standard cursors when available and otherwise falling back to our custom cursors. Ref D5197
2019-09-21Cleanup: unused headers in editorsCampbell Barton
2019-09-20Cleanup: Add/use utility to remove regionsJulian Eisel
2019-09-20Fix T69355: Closing window stops video but not audioCampbell Barton
2019-09-20Fix T65264: Quick Favorite use in node-editorCampbell Barton
Each node tree type now has it's own quick-favorites.
2019-09-19Fix T70048: Assert when cancelling Append windowJulian Eisel
If the file browser was opened from an existing file browser editor (using File -> Append would make the mouse hover the file browser in the Shading workspace), we need special handling for closing the fullscreen area. This change brings back the old way of handling fullscreen closing.
2019-09-18Refactor temp-space opening for optional fullscreen modeJulian Eisel
Will be put to use in followup commits.
2019-09-14Cleanup: use const args, variablesCampbell Barton
2019-09-13Fixed macOS build, header cleanup was too agressive.Stefan Werner
2019-09-13Cleanup: unused headers (GPU)Campbell Barton
2019-09-11Depsgraph: Pass bmain to depsgraph object creationSergey Sharybin
Currently unused, but will allow to keep of an owner of the depsgraph. Could also simplify other APIs in the future by avoiding to pass bmain explicitly to relation update functions and things like that.
2019-09-07Cleanup: use post increment/decrementCampbell Barton
When the result isn't used, prefer post increment/decrement (already used nearly everywhere in Blender).
2019-09-03UI: File Browser Design OverhaulJulian Eisel
This is a general redesign of the File Browser GUI and interaction methods. For screenshots, check patch D5601. Main changes in short: * File Browser as floating window * New layout of regions * Popovers for view and filter options * Vertical list view with interactive column header * New and updated icons * Keymap consistency fixes * Many tweaks and fixes to the drawing of views ---- General: * The file browser now opens as temporary floating window. It closes on Esc. The header is hidden then. * When the file browser is opened as regular editor, the header remains visible. * All file browser regions are now defined in Python (the button layout). * Adjusted related operator UI names. Keymap: Keymap is now consistent with other list-based views in Blender, such as the Outliner. * Left click to select, double-click to open * Right-click context menus * Shift-click to fill selection * Ctrl-click to extend selection Operator options: These previously overlapped with the source list, which caused numerous issues with resizing and presenting many settings in a small panel area. It was also generally inconsistent with Blender. * Moved to new sidebar, which can easily be shown or hidden using a prominent Options toggle. * IO operators have new layouts to match this new sidebar, using sub-panels. This will have to be committed separately (Add-on repository). * If operators want to show the options by default, they have the option to do so (see `WM_FILESEL_SHOW_PROPS`, `hide_props_region`), otherwise they are hidden by default. General Layout: The layout has been changed to be simpler, more standard, and fits better in with Blender 2.8. * More conventional layout (file path at top, file name at the bottom, execute/cancel buttons in bottom right). * Use of popovers to group controls, and allow for more descriptive naming. * Search box is always live now, just like Outliner. Views: * Date Modified column combines both date and time, also uses user friendly strings for recent dates (i.e. "Yesterday", "Today"). * Details columns (file size, modification date/time) are now toggleable for all display types, they are not hardcoded per display type. * File sizes now show as B, KB, MB, ... rather than B, KiB, MiB, … They are now also calculated using base 10 of course. * Option to sort in inverse order. Vertical List View: * This view now used a much simpler single vertical list with columns for information. * Users can click on the headers of these columns to order by that category, and click again to reverse the ordering. Icons: * Updated icons by Jendrzych, with better centering. * Files and folders have new icons in Icon view. * Both files and folders have reworked superimposed icons that show users the file/folder type. * 3D file documents correctly use the 3d file icon, which was unused previously. * Workspaces now show their icon on Link/Append - also when listed in the Outliner. Minor Python-API breakage: * `bpy.types.FileSelectParams.display_type`: `LIST_SHORT` and `LIST_LONG` are replaced by `LIST_VERTICAL` and `LIST_HORIZONTAL`. Removes the feature where directories would automatically be created if they are entered into the file path text button, but don't exist. We were not sure if users use it enough to keep it. We can definitely bring it back. ---- //Combined effort by @billreynish, @harley, @jendrzych, my university colleague Brian Meisenheimer and myself.// Differential Revision: https://developer.blender.org/D5601 Reviewers: Brecht, Bastien
2019-09-02UI: Fix Bug With Join Area ToleranceHarley Acheson
Join area tolerance not properly checking all vertices on shared edge. Differential Revision: https://developer.blender.org/D5662
2019-08-27UI: Area Join ToleranceHarley Acheson
Allow area joining even if the areas are not quite perfectly aligned. Differential Revision: https://developer.blender.org/D5595 Reviewed by Brecht Van Lommel
2019-08-26Fix T69122: Area Join Error on Invalid Cursor PositionHarley Acheson
Improved error handling of Join Area operator in cased it is passed cursor position that is not valid. Differential Revision: https://developer.blender.org/D5598 Reviewed by Brecht Van Lommel
2019-08-24Cleanup: correct use of term 'split'Campbell Barton
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-23Cleanup: const args, naming, doxy groups, clang-formatCampbell Barton
2019-08-22UI: Changes to Area Options MenuHarley Acheson
Adds more options to the context menu that pops up on area edges. Both Split types, Join, and Swap. Differential Revision: https://developer.blender.org/D5459 Reviewed by Brecht Van Lommel
2019-08-20Cleanup: clang-format, sorted listsCampbell Barton
2019-08-18Fix T67008: Missing move handle and flickering in FileBrowserAndrea Weikert
Fix T67008: Missing move handle and flickering in FileBrowser Allow split regions (child regions) to contribute to the action zones (azone) of the parent region. This fixes the issues in file browser and also in the user preferences. Reviewers: Severin, mont29, campbellbarton Reviewed By: Severin, mont29, campbellbarton Subscribers: brecht, campbellbarton Maniphest Tasks: T67008 Differential Revision: https://developer.blender.org/D5273
2019-08-16Cleanup: spellingCampbell Barton
2019-08-16Cleanup: unused args/varsCampbell Barton
2019-08-16UI: click on status bar report message now opens window with Info editorBrecht Van Lommel
Patch by Valentin (Poulpator) Differential Revision: https://developer.blender.org/D5468
2019-08-15WM: reuse visible region calculationCampbell Barton
Avoids calculating the visible part of a region whenever on-screen overlays are drawn.
2019-08-15Fix T64888: full-screen button overlaps side-barCampbell Barton
2019-08-15Fix full-screen button overlapping navigation gizmoCampbell Barton
2019-08-15UI: skip drawing the full-screen when alpha is zeroCampbell Barton
2019-08-15Fix T68678: Invisible fullscreen buttonCampbell Barton
Regression from 6148ed8cf9ca
2019-08-08Fix T52551: undo causes crash after enabling a new rigid body when scene ↵Bastien Montagne
uses a referenced rigid body world. Poll functions were not correct here, we cannot make objects part of rigidbody sim if the RB collection is a linked one...
2019-08-01Cleanup: misc spelling fixesCampbell Barton
T68035 by @luzpaz
2019-07-31Refactor access to dependency graphSergey Sharybin
This change ensures that operators which needs access to evaluated data first makes sure there is a dependency graph. Other accesses to the dependency graph made it more explicit about whether they just need a valid dependency graph pointer or whether they expect the graph to be already evaluated. This replaces OPTYPE_USE_EVAL_DATA which is now removed. Some general rules about usage of accessors: - Drawing is expected to happen from a fully evaluated dependency graph. There is now a function to access it, which will in the future control that dependency graph is actually evaluated. This check is not yet done because there are some things to be taken care about first: for example, post-update hooks might leave scene in a state where something is still tagged for update. - All operators which needs to access evaluated state must use CTX_data_ensure_evaluated_depsgraph(). This function replaces OPTYPE_USE_EVAL_DATA. The call is generally to be done in the very beginning of the operator, prior other logic (unless this is some comprehensive operator which might or might not need access to an evaluated state). This call is never to be used from a loop. If some utility function requires evaluated state of dependency graph the graph is to be passed as an explicit argument. This way it is clear that no evaluation happens in a loop or something like this. - All cases which needs to know dependency graph pointer, but which doesn't want to actually evaluate it can use old-style function CTX_data_depsgraph_pointer(), assuming that underlying code will ensure dependency graph is evaluated prior to accessing it. - The new functions are replacing OPTYPE_USE_EVAL_DATA, so now it is explicit and local about where dependency graph is being ensured. This commit also contains some fixes of wrong usage of evaluation functions on original objects. Ideally should be split out, but in reality with all the APIs being renamed is quite tricky. Fixes T67454: Blender crash on rapid undo and select Speculation here is that sometimes undo and selection operators are sometimes handled in the same event loop iteration, which leaves non-evaluated dependency graph. Fixes T67973: Crash on Fix Deforms operator Fixes T67902: Crash when undo a loop cut Reviewers: brecht Reviewed By: brecht Subscribers: lichtwerk Maniphest Tasks: T67454 Differential Revision: https://developer.blender.org/D5343
2019-07-26Fix T66378: Missing animation update when switching view layerSergey Sharybin
Current frame is stored in a scene, and scene might have multiple view layers. The inactive view layers were not informed about scene's frame being changed, so when user switched back to view after changing scene frame it was in an inconsistent state between current scene frame and animation. Now we tag scene for time changes, so dependency graph can catch up and do proper update. Currently tagging is from quite generic place. Probably better approach would be to tag from where frame is actually being assigned. Downside of this is that it's easy to miss some places. Reviewers: brecht, mont29 Reviewed By: brecht Maniphest Tasks: T66378 Differential Revision: https://developer.blender.org/D5332
2019-07-16Fixed crash when adding/removing custom normals from pinned meshSybren A. Stüvel
When a mesh is pinned in the properties panel, Blender crashes when you click the "Add Custom Split Normals Data". The code calls `ob = ED_object_context(C)` which returns NULL when the mesh is pinned in the properties panel, causing a segfault when trying to get the mesh via `ob->data`. A new function `ED_mesh_context(C)` avoids this by first checking whether a mesh was pinned in the context. If not, it checks the pinned object's data. If that's not there, or it's not a mesh, it returns the active object's mesh. Finally it returns NULL if there is no active object, or if the active object is not a mesh object. Reviewed By: brecht, mont29 Differential Revision: https://developer.blender.org/D5223
2019-07-08Fix T66008 Viewport: hidden edges are partially visibleClément Foucault
This was a regression from 2.79. The zoffset was doubled for some reason.
2019-07-04ImBuf: add crop function (move out of screendump.c)Campbell Barton
2019-07-03Fix T61808: remove confusing graying out of workspace that already existBrecht Van Lommel
This was meant to help users see which users are likely useful to add, but it's not so obvious and there are cases where it's useful to re-append the same workspace.
2019-07-03Fix T65899, T66314, T61808: various issues appending workspacesBrecht Van Lommel
This fixes crashes, wrong names and inability to append workspaces in edit mode. We now bypass the append operator so we can easily return a datablock pointer and work in any mode.
2019-07-02Fix (unreported) untranslatable title of Quick Favorites menu.Bastien Montagne
Side minor fix found while checking on T66235.
2019-07-02Cleanup: rename set_inverted_drawing, move to GPU_stateCampbell Barton
2019-07-01Fix T66283: Crash on redo/undo during playbackSergey Sharybin