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
path: root/source
AgeCommit message (Collapse)Author
2019-09-05Eevee: Shadow map refactorClément Foucault
Reviewed By: brecht Differential Revision: http://developer.blender.org/D5659
2019-09-05Cleanup: de-duplicate codeCampbell Barton
2019-09-05Depsgraph: Ensure it's fully evaluated after POST callbacksSergey Sharybin
It is possible that POST callbacks will modify objects or relations. This change makes it so an extra update pass is done if needed. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D5690
2019-09-05UI: use boolean for sequencer reverse framesCampbell Barton
Revert part of 04b86c21bf522 The option to reverse frames is used elsewhere as a boolean which makes sense since reversing playback is a special case.
2019-09-05GPencil: New Operator to set the active object material based on the ↵Matias Mendiola
selected stroke material The operator set as active object material the material used in the selected stroke. Access to the operator were added in the stroke menu and context stroke menu. Reviewers: antoniov, pepeland Tags: #bf_blender, #grease_pencil Differential Revision: https://developer.blender.org/D5692
2019-09-05Fix T69532: Wave texture fails with a compile error.OmarSquircleArt
`noise_turbulence` was renamed to `fractal_noise`. Reviewers: brecht Differential Revision: https://developer.blender.org/D5691
2019-09-05Depsgraph: Free user code from worry about updates flushSergey Sharybin
2019-09-05Depsgraph: Pass bmain to evaluation functionSergey Sharybin
Currently unused, makes code ready for an upcoming change.
2019-09-05Fix T69522: Render Region not refreshing Output PropertiesPhilipp Oeser
setting/clearing render region uses ND_RENDER_OPTIONS notifier, but listener was only refreshing RENDER and VIEWLAYER tabs in that case, whereas the render region buttons are located in OUTPUT tab. Reviewers: billreynish Maniphest Tasks: T69522 Differential Revision: https://developer.blender.org/D5685
2019-09-05Mesh Batch Cache: Fix threading issueJacques Lucke
I believed the crash I experienced happened because: 1. The `extract_pos_nor_init` function is called. 2. Tasks are added to the task pool for `extract_pos_nor`. 3. The tasks begin to be executed while more tasks are added. 4. In some rare cases, all existing tasks are finished, but not all have been added yet. 5. This let the task-counter go down to zero. 6. This triggered a call to `extract_pos_nor_finish`. 7. Then more tasks are added and in the end `extract_pos_nor_finish` is called again. A solution is to use a task pool that is suspended when created. Unfortunately, there was an outdated comment, that was probably the root cause of the issue. Reviewers: fclem, sergey Differential Revision: https://developer.blender.org/D5680
2019-09-05File Browser: Add Zip files as native recognised file typeWilliam Reynish
Differential Revision: https://developer.blender.org/D5683 Reviewers: Brecht
2019-09-05Cleanup: use backslash for doxygen commandsCampbell Barton
2019-09-05Cleanup: clang-formatCampbell Barton
2019-09-05Shading: Rewrite Mapping node with dynamic inputs.OmarSquircleArt
This patch rewrites the Mapping node to support dynamic inputs. The Max and Min options have been removed. They can be added as Min and Max Vector Math nodes manually. Texture nodes still use the old matrix-based mapping. A new SVM node `NODE_TEXTURE_MAPPING` has been added to preserve this functionality. Similarly, in GLSL, a `mapping_mat4` function has been added. Reviewers: brecht, JacquesLucke
2019-09-04UI: Remove 'Context.' string when hovering over Properties tabsWilliam Reynish
Differential Revision: https://developer.blender.org/D5679 Reviewers: Brecht
2019-09-04UI: Icons updateWilliam Reynish
New icons from Andrzej Ambroż (jendrzych) - Many tweaks to existing icons, such as folders and drives for the new file browser, as well as snapping - New icons for Checkmark, Transform Origins, Snap to Face Center, Zip Files (currently unused)
2019-09-04Python API: add methods for reordering constraints.Alexander Gavrilov
Order matters for constraints, but there was no way to change it. The API follows other collections like idprops and node sockets.
2019-09-04Fix hair collision instability with 'Quality Steps' > 1Philipp Oeser
This was removed in rB0666ece2e2f9 because it is handled differently for "real" cloth in cloth_solve_collisions(), but hair still needs this apparently [does its thing in cloth_continuum_step() instead]. And since we have a default 'Quality Steps' setting of 5, it made many simulations unstable. Fixes T65038, T59742 (possibly others) Reviewers: brecht Maniphest Tasks: T65038, T59742 Differential Revision: https://developer.blender.org/D5681
2019-09-04Missed from last commitCampbell Barton
2019-09-04Cleanup: userpref UI options into their own structCampbell Barton
Mixing options for showing preferences with other flags was confusing.
2019-09-04Cleanup: use doxy commentsCampbell Barton
2019-09-04Cleanup: correct UI_THEMESPACE_START/END macrosCampbell Barton
2019-09-04Versioning: Bump subversion for the Noise node.OmarSquircleArt
D5560 was missing a subversion bump. Reviewers: brecht Differential Revision: https://developer.blender.org/D5678
2019-09-04Shading: Extend Noise node to other dimenstions.OmarSquircleArt
This patch extends perlin noise to operate in 1D, 2D, 3D, and 4D space. The noise code has also been refactored to be more readable. The Color output and distortion patterns changed, so this patch breaks backward compatibility. This is due to the fact that we now use random offsets as noise seeds, as opposed to swizzling and constants offsets. Reviewers: brecht, JacquesLucke Differential Revision: https://developer.blender.org/D5560
2019-09-04Move file execute region back to C, fixing bugsJulian Eisel
We moved this to Python too quickly, causing the following regressions: * No auto completion for file names * Additional handling not applied on changes, like automatic extension appending (see file_filename_enter_handle) * Red highlight missing when the file name already exists Note that earlier (before the file browser redesign), this didn't use the panel and layout code at all. So even if it's still not in Python, at least it's integrated into regular panel management now. OS-specific ordering of the open and cancel button is kept. Fixes T69457.
2019-09-04Expose button UTF8 check in UI_interface.hJulian Eisel
Used in following commit.
2019-09-04Shading Modes: Material and Render PreviewJeroen Bakker
This change implements the basics as described in {T68312} for the shading modes. * LookDev shading mode is renamed to Material Preview. It always uses Eevee as renderer, and is intended to provide a fast material preview suitable for texture painting, and texture and material setup. * Rendered shading gains "Use Scene Lights" and "Use Scene World" options similar to current Material Preview. These will be enabled by default. When Use Scene World is turned off, HDRIs will be used for lighting instead. These options are available for EEVEE and Cycles. * Renderers will be able to customize the shading settings panel and add additional settings. Reviewed By: brecht, fclem Differential Revision: https://developer.blender.org/D5612
2019-09-04Fix/cleanup error handling in paths generation for private ID data case.Bastien Montagne
When using new `rna_prepend_real_ID_path()`, caller have to handle the NULL path case and decide whetehr this is a valid case or an error one.
2019-09-04UI: use vertical navigation buttonsCampbell Barton
This addresses crowding in the top right area of the view with the existing header and tool header. D5670 by @CandleComet
2019-09-04Fix T55745: Checker de-select, inconsistent selectionYevgeny Makarov
With these changes, successive selections result in an even pattern.
2019-09-04Fix T69469: Overrun in file action type RNA enumJulian Eisel
Think it was harmless in practice since we didn't actually enumerate the items, only count them and access the set value. Still...
2019-09-04Armature: add Inherit Scale options to remove shear or average the scale.Alexander Gavrilov
As an inherent property of matrix-based transformation math, non- uniform scaling of a parent bone induces shear into the transform matrix of any rotated child. Such matrices cannot be cleanly decomposed into a combination of location/rotation/scale, which causes issues for rigging and animation tools. Blender bones have options to exclude rotation and/or scale from the inherited transformation, but don't have any support for removing the often undesired shear component. That goal requires replacing simple parenting with a combination of multiple bones and constraints. The same is true about the goal of inheriting some scale, but completely avoiding shear. This patch replaces the old Inherit Scale checkbox with a enum that supports multiple options: * Full: inherit all effects of scale, like with enabled Inherit Scale. * Fix Shear: removes shear from the final inherited transformation. The cleanup math is specifically designed to preserve the main axis of the bone, its length and total volume, and minimally affect roll on average. It however will not prevent reappearance of shear due to local rotation of the child or its children. * Average: inherit uniform scale that represents the parent volume. This is the simplest foolproof solution that will inherit some scale without ever causing shear. * None: completely remove scale and shear. * None (Legacy): old disabled Inherit Scale checkbox. This mode does not handle parent shear in any way, so the child is likely to end up having both scale and shear. It is retained for backward compatibility. Since many rigging-related addons access the use_inherit_scale property from Python, it is retained as a backward compatibility stub that provides the old functionality. As a side effect of reworking the code, this also fixes a matrix multiplication order bug in the Inherit Rotation code, which caused the parent local scale to be applied in world space. In rigger opinion this option is useless in production rigs, so this fix should not be a problem. Reviewers: brecht Differential Revision: https://developer.blender.org/D5588
2019-09-04Fix T63755: Area Stretching OverlayJeroen Bakker
Support for UV Stretching overlay during multi object editing. The VBO now holds the ratios per fase. In the shader these ratios will be compared against the global ratios. The global rations are created from all selected objects. The current implementation does not fit well with the draw module. The plan is to move the drawing of other spaces towards the draw manager what leads to a better fit. Currently the details on this solution is unclear but this requirement will become an attentionpoint in the future design. Reviewed By: fclem Differential Revision: https://developer.blender.org/D5665
2019-09-04Transform: remove X/Y shear tool optionCampbell Barton
Instead use vertical cursor motion for Y axis shear. This removes the shear_axis option completely since we now have two axis options used by shear it's not needed.
2019-09-04Transform: Improve hierarchy in mixed snap edge detection.mano-wii
2019-09-04Fix T69463: File Browser opens off-center on hiDPIJulian Eisel
wmWindow.sizex/y doesn't have system's pixel size applied.
2019-09-04Fix T69467: Temporary Info Editor window crashesJulian Eisel
Code called editor creation twice, once for SPACE_INFO, once for SPACE_EMPTY. Caused by a incorrectly solved merge conflict.
2019-09-04Fix selecting multiple files ignoring first fileJulian Eisel
E.g. box selecting wouldn't allow selecting the first file. Work selection and shift/ctrl selection had similar issues. Code assumed that the first item was the '..' parent item and manually removed it from the selection. I could just remove this special handling, but instead I made the behavior more dynamic. So the file list checks if the '..' item is there and only then applies special treatment. That way we can easily bring the '..' item back or make it optional if wanted.
2019-09-03Fix T69451: Walk-select in empty directory assertsJulian Eisel
Code assumed the '..' was there, which isn't the case any more. Just early exiting for empty directories is fine.
2019-09-03GPencil: Fix unreported autolock layers using DopesheetAntonio Vazquez
When select a layer in Dopesheet, the autolock layer was not working. Now the Dopesheet code calls the function for autolock. Also some code cleanup to move the logic to new function.
2019-09-03Drivers: support decomposing rotation into swing followed by twist.Alexander Gavrilov
In order to correctly drive corrective shape keys from a freely rotating organic joint it is very often found necessary to decompose the rotation into separate bending and twisting motions. This type of decomposition cannot be reproduced by any Euler order or a single quaternion. Instead this is done by using a helper bone with a Damped Track constraint aimed at the tail of the control to pick up the bending, and its helper child with Copy Transforms to separate the twist. Requiring two additional bones to drive a shape key or a correction bone seems inconvenient, so this implements the necessary math as new options in the recently introduced Rotation Mode dropdown of the Transform Channel driver variable type. The data is also accessible as a Transformation constraint input. The output is in the form of Quaternion-derived 'pseudo-angles', which for `Swing and Y Twist` would represent the following: * W: true bend angle, independent of bend direction. * Y: true twist angle. * X, Z: pseudo-angles representing the proportion of bending around X/Z. Reviewers: brecht Differential Revision: https://developer.blender.org/D5651
2019-09-03Transform: support snap to children with 'Affect Parents'Campbell Barton
Resolves T69398
2019-09-03Cleanup: expand checks for selection when snappingCampbell Barton
Adding extra checks here was getting unreadable, expand to allow for easier to follow logic.
2019-09-03EEVEE: Fix broken bump regressionClément Foucault
Regression introduced by 7f4a2fc437cf9a6decbda152bd7d36ce7a08929f
2019-09-03Cleanup: unused flag, spellingCampbell Barton
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-03Fix selection engine checksCampbell Barton
- Don't use vertex selection in texture paint mode. - Don't allow mixing vertex & face flags in vert/weight paint modes.
2019-09-03Fix T69424: Weight paint sample doesn't workCampbell Barton
2019-09-03Fix T66950: WeightPaint Bone Selection OverlayJeroen Bakker
In weightpaint it is possible to enable the bone selection mode. During drawing the overlay was rendered, but during selection this was ignored. Users needed to double click in order to select bones even when the overlay was enabled. This patch makes bone selection possible during weight painting using the pose mode bone selection overlay with a single click. Reviewed By: fclem, campbellbarton Differential Revision: https://developer.blender.org/D5629
2019-09-03Fix T69384: Noise Depth widgets steps set to 0Lucas Boutrot
Reviewed By: brecht, lichtwerk Maniphest Tasks: T69384 Differential Revision: https://developer.blender.org/D5652