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-12-07Maths Node: Additional functionsCharlie Jolly
When creating shaders and using maths functions it is expected that Blender should match functions in other DCC applications, game engines and shading languages such as GLSL and OSL. This patch adds missing functions to the Blender maths node. Ideally, it would be nice to have these functions available to vectors too but that is not part of this patch. This patch adds the following functions trunc, snap, wrap, compare, pingpong, sign, radians, degrees, cosh, sinh, tanh, exp, smoothmin and inversesqrt. Sign function is based on GLSL and OSL functions and returns zero when x == 0. Differential Revision: https://developer.blender.org/D5957
2019-12-07Preferences: correct experimental flag useCampbell Barton
Add utilities for checking when experimental features should be used.
2019-12-07UI: File Browser Volumes and System Lists IconsHarley Acheson
Allows each File Browser list item in Volumes and System to use individual icons. Differential Revision: https://developer.blender.org/D5802 Reviewed by Julian Eisel
2019-12-06Tool System: experimental fallback tool supportCampbell Barton
Implement T66304 as an experimental option, available under the preferences "Experimental" section. - When enabled most tools in the 3D view have a gizmo. - Dragging outside the gizmo uses the 'fallback' tool. - The fallback tool can be changed or disabled in the tool options or from a pie menu (Alt-W).
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-12-06UI: only use toolbar draw-style for buttons with iconsCampbell Barton
This allows tool buttons to be used in menus or popovers and show as regular button styles.
2019-12-06Gizmo: add optional background alpha for 2D button gizmoCampbell Barton
This allows using the gizmo for a screen circle with a hollow area in the center, useful for general dragging gizmos.
2019-12-06Cleanup/Windows: Separate out the MS-CRT into a subfolderRay Molenkamp
In older versions the ms crt was only a few dlls, in recent versions this jumped to over 40 leading to quite a bit of clutter in our bin folder. This change moves the CRT into its own folder. For developers that generally already have the runtime globaly available on their machine, there is a new cmake option (WITH_WINDOWS_BUNDLE_CRT, default ON) that you can use to toggle installing the runtime to the blender bin folder, and save some time during the initial build, this option is off by default for only the developer profile. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6132
2019-12-06Fix crash when trying to decimate baked fcurve channelsSebastian Parborg
No curve data was available for the modal decimate operator. Added a check for when the curve has baked data.
2019-12-06Fix T72215: Insert Blank Keyframe Active Layer) creates a new frame in all ↵Antonio Vazquez
layers The default parameter was saved and the next time the operator was used, if it was used all layers, the default value changed.
2019-12-06Cleanup: clang-formatCampbell Barton
2019-12-06Draw: Removal of MultiSample BuffersJeroen Bakker
Multisample buffers were used for smooth line drawing. As we now have an algorithm that doesn't need the multisample buffers we can remove them. The user preference for viewport multi_sampling is replaced by single toggle overlay `use_overlay_smooth_wire`. By default this setting is enabled as the new drawing is really quick (<1ms) and uses zero hacks. Reviewed By: fclem Differential Revision: https://developer.blender.org/D6367
2019-12-05Cleanup: Windows Manifest usage.Ray Molenkamp
We had a manifest file, but it was seemingly not used, some settings were done using linker pragmas, some of them visual studio would set by default for us, others where not set at all. This patch changes: - Single manifest file where we can maintain all settings in a single location, removal of any linker pragmas related to the manifest. - Compatibly settings for win vista - win10, without this any call to any of the GetVersion and related functions (GetVersionEx, VerifyVersionInfo, IsWindowsXxxx) will by default say we are on vista and OS specific optimizations in external libraries may be missed. -Rather than having it in the .RC file in an #ifdef which may or may not trigger depending on the build tool used, we tell cmake to treat it as a source file and it will do the right thing for both the ninja and visual studio generators. Differential Revision: https://developer.blender.org/D6136 Reviewers: brecht
2019-12-05Cleanup: Workbench: Remove Double negationClément Foucault
2019-12-05Workbench: Fix missing Clipping state when usint Alt+B clippingClément Foucault
Also make the code a bit more clear.
2019-12-05UI: Add tooltips for modifiersSybren A. Stüvel
When adding a modifier to an object, the drop-down select box has the same mouse-over tooltip for each modifier type: "Add a procedural operation/effect to the active object". This isn't helpful when you don't know what the modifier does from just reading the name. This patch adds descriptions for most modifier types, so that it's clearer what the modifiers do. The text was provided by @werwack after discussion on DevTalk[1] and taken from the Blender Manual, and subsequently updated by @billreynish and @HooglyBoogly. Not all modifiers have a short one-line description in the manual, hence those are still missing in this patch. [1] https://devtalk.blender.org/t/ui-contextual-modifier-description-in-the-tooltips-of-the-add-modifier-dialog-window/10382 Reviewed By: billreynish Differential Revision: https://developer.blender.org/D6352
2019-12-05Overlay Engine: Fix unreported crash on startup caused by new shaderClément Foucault
2019-12-05Overlay Engine: Armature: Use Wire AA on custom bone loose edgesClément Foucault
2019-12-05Overlay Engine: Fix bone outline antialiasingClément Foucault
2019-12-05Fix T72169: "New File" loads UI, even when disabledCampbell Barton
Partially reverts b500f427009f0, callers now set this flag.
2019-12-05GPencil: Fix Stroke keeps selected when duplicate (unreported)Antonio Vazquez
When use `Shift+D` the original stroke was unselected only at stroke level, but not at point level and the edit line kept selected.
2019-12-05Overlay Engine: Fix crash in select mode with Lock Object Modes offClément Foucault
Fixes T72189: Crash when Lock Object Modes off and switching from Sculpt mode to Object mode
2019-12-05Cleanup: Silent WarningsJeroen Bakker
Silent unused variable warnings introduced by recent changes in the overlay engine.
2019-12-05Fix T72154: Background Camera ImagesJeroen Bakker
The Camera Background Images uses a alpha under blending. For alpha under blending to work correctly the framebuffer containing the result of the render engine needs to be active (`DefaultFramebufferList.default_fb`) and the source blend color needs to be premultiplied with alpha. Due to recent refactoring this wasn't the case and it seemed that the background image was drawn in front of the scene. This patch sets the correct state so it seems to be drawn behind the scene. Reviewed By: fclem Differential Revision: https://developer.blender.org/D6365
2019-12-05Revert "Fix T71576 Mesh error on mutimaterial Meshes on legacy nvidia drivers"Clément Foucault
This reverts commit cf77b67c459d481f6d8d34d13e14d22a6cad0842.
2019-12-05Overlay Engine: Outlines: Fix occluded alpha being too lowClément Foucault
2019-12-05Overlay Engine: Outlines: Bypass antialias path when not neededClément Foucault
Improve performance on low end hardware.
2019-12-05Fix T71576 Mesh error on mutimaterial Meshes on legacy nvidia driversClément Foucault
Differential Revision: https://developer.blender.org/D6351
2019-12-05Cleanup: Removes double notificationAntonio Vazquez
2019-12-05Fix T72182: Fade Layers Option does not work when activating a layer from ↵Antonio Vazquez
Dope Sheet or Outliner The layer was activated, but the datablock was not tagged to recalc GPU cache.
2019-12-05Fix T72175: DrawManager Crash Large ObjectsJeroen Bakker
Introduced by 9c337fcfe2a4 mistaken that `MeshExtract.use_threading` set to false means that no threading is used at all. This is not the case it will still perform threading for large objects, it will only run the different subtasks in serial. Fixed by scheduling the `lines_loose` in the task_pool after the rest have been executed. This is cleaner than the previous implementation as it sticks more to the actual design.
2019-12-05Overlay Engine: Cleanup & enable line AA on in front passesClément Foucault
- Remove pd->view_default, was a leftover from TAA implementation - Sanitize active_view switches. - Sanitize framebuffers switches.
2019-12-05Overlay Engine: Add back selectability of planar lightprobe data planeClément Foucault
2019-12-05Overlay Engine: LightProbe: Simplify drawing of irradiance grid dataClément Foucault
This separates it from the outline pass and fix a visibility bug when extras were off.
2019-12-05Overlay Engine: Outline: Simplify drawing codeClément Foucault
Use obinfo ubo to compute outline color id. Note this commit removes the planar probe outline on purpose.
2019-12-05Overlay Engine: Simplify outline rendering by using the antialiasing passClément Foucault
This use the overlay AA pass to antialias the selection outlines. This also do all search and expand in one pass and reduce the computation time and memory used (2 x 32bit/pixel buffer less). Note that the aliasing is a bit worse than the old FXAA that we used to have.
2019-12-04Fix T72076: Edit mode circle selection inconsistency with animationmano-wii
The solution is to check for updates on `data->recalc`.
2019-12-04Make curve decimation only take into account the selected curve pointsSebastian Parborg
Previously the decimation would take the whole curve into account when decimating and not just the selected part. This also contains various smaller bug fixes for the fcurve decimation. Reviewed By: Sybren Differential Revision: http://developer.blender.org/D6286
2019-12-04Fix T72157: Overlay Hide Bone Relationship LinesJeroen Bakker
Bone relationship lines needs to be hidden in: * object mode * or when relationship lines are turned off Reviewed By: fclem Differential Revision: https://developer.blender.org/D6356
2019-12-04Fix T72130: Wireframe Visible After DisablingJeroen Bakker
The lines index buffer can contain all edges (edit mode) or only loose edges (object mode). When switching between these modes the wrong content of the index buffer can be used. This patch will clear the lines index buffer when a `loose_edges` is requested. Making sure it is always up to date. Note that this is supporting an exising hack where the IBO is truncated during the creation. We should find a different way how to solve these kind of issues. Reviewed By: fclem Differential Revision: https://developer.blender.org/D6349
2019-12-04Fix T72156: Render Viewport Animation Meta DataJeroen Bakker
When using Render Viewport Animation the meta data was only stamped when a float buffer was used. In recent changes it was possible to use a char buffer for the result. This commit will also support stamping of metadata using a char buffer.
2019-12-04GPencil: Fix error in previous patchAntonio Vazquez
By error, a previous version of the patch was used and there was a small change in the order of the columns in dopesheet.
2019-12-04GPencil: Add Opacity y Onion switch to DopesheetAntonio Vazquez
Add new icons and panels Grease Pencil Dopesheet to manage layers without having the properties panel visible. Also, the icons are in the same order in Dopesheet, Layers and Material list to keep consistency. As the number of columns for icons is limited to 3 and we also need use a factor, I have impleted the change using slider area. Also, the slider option is enabled by default for 2D Template. See T72026 for more info. Reviewed By: mendio, pepeland, billreynish Differential Revision: https://developer.blender.org/D6328
2019-12-04Add cloth pressure vertex group and unlock cloth shrink values rangeSebastian Parborg
Introduced a way to specify cloth pressure force influence with a vertex group. This will allow users to only have pressure affect certain parts of the mesh. In addition to this, the "shrink factor" is now also unlocked to allow negative values and thus allowing the cloth mesh to grow as well. Reviewed By: Jaques Lucke Differential Revision: http://developer.blender.org/D6347
2019-12-04UI: support Copy To Selected and Alt-Click for PropertyGroup members.Alexander Gavrilov
Rigify uses a property group to contain options of its rigs, so currently it is impossible to use Alt-Click or Copy To Selected to change a setting for multiple rigs at the same time. The main problem here is that there is no efficient way to find which bone the property group belongs to. To maintain performance, implement this by checking the active bone if it is known. Copy Data Path and related features still don't work, as data path calculation can't use context. Differential Revision: https://developer.blender.org/D6264
2019-12-03Overlay Engine: Fix T72147 Blender crashes when Lock Object Modes offClément Foucault
Also fix sculpt mask inverted
2019-12-03Fix T72112: Perpendicular snapping with closest not workingmano-wii
The closest target is calculated only after a snap point is found. So use `center_global` while the target is not calculated.
2019-12-03Fix T70378: Grease pencil armature modifier not normalizing weights as expected.Jean First
The function armature_vert_task had a special case for Vertex Paints in Grease Pencil data. This patch removes this special case. Not sure why it was needed in the first place. Reviewed By: antoniov Maniphest Tasks: T70378 Differential Revision: https://developer.blender.org/D6348
2019-12-03Overlay: Armature: Fix Crash entering armature edit modeClément Foucault
2019-12-03Cleanup: text-view comments, variable names, const argsCampbell Barton