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-11-21Fix Windows BuildPablo Dobarro
I forgot to change the old BLI_task functions for the new BKE_pbvh functions in Topology Slide/Relax.
2019-11-21Sculpt: Invert Scrape to FillPablo Dobarro
After adding normal radius, the main use of the Scrape brush is to create flat surfaces with sharp edges. In that case, it does not make sense to have our current "Peaks" version of the brush as its inverted version. The correct inverted version of Scrape for this use case is the Fill brush. This way you can use this tool to crease both concave and convex sharp edges and to fix the artifacts one version produces with its inverted version. I think we should merge these two tools into one, but for now, this solution keeps compatibility with the old behavior. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6022
2019-11-21Sculpt: Topology Slide/RelaxPablo Dobarro
This commit implements the Topology Slide/Relax brush and the Relax mesh filter. These tools are designed to move the topology on top of the mesh without affecting the volume. The Topology Slide/Relax brush slides the topology of the mesh in the direction of the stroke. When pressing shift, it has an alternative smooth mode similar to the Relax Brush in the sculpt branch. It should be way more stable and produce fewer artifacts. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6059
2019-11-21Pose brush: Smooth Iterations Brush PropertyPablo Dobarro
The smooth iterations of the pose factor were hardcoded to 4. This works fine in most situations when you are posing a low poly mesh, which is the main use case of this tool. I added the smooth iterations as a brush property in case you need to pose a high poly mesh directly without producing artifacts. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6157
2019-11-21Sculpt: Mask SlicePablo Dobarro
This operator is similar to Mask Extract, but it deletes the masked points on the original mesh and fills the holes. This can be useful for quickly trimming or splitting an object. This is not meant to be the main trimming tool of sculpt mode. I plan to have a set of trimming tools based on geometry booleans (trim box, lasso, line, bisect...) but in some cases doing a mask selection is more convenient. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6160
2019-11-21Sculpt: Multiplane Scrape BrushPablo Dobarro
The Multiplane Scrape brush creates sharp edges with a given fixed angle by trimming the mesh with two planes in local space at the same time. When working with stylized or hard surface models, this brush produces way better results and is more predictable than any other crease/flatten brush based on curves and alphas. It is also the first brush we have than can produce hard surface concave creases. The Multiplane Scrape Brush also has a dynamic mode where it samples the surface to fit the angle and scrape planes during a stroke. With this mode enabled you can sculpt multiple times over the same edge without creating artifacts. It can also create creases that change between concave and convex during the same stroke. The behavior of this brush will improve after merging patches like D5993 and its behavior in concave creases can still be improved, so I will keep tweaking its parameters and default values once we have all brush properties available. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6174
2019-11-21Bones: implement a new Aligned Inherit Scale mode.Alexander Gavrilov
Implement one more way of inheriting scale from the parent bone, as an addition to the choices introduced in D5588. This new mode inherits parent scale as if the parent and child were not rotated relative to each other, always applying parent X scale to child X scale and so forth. It is quite natural for connected bone chains with coherent roll, like limbs or tentacles, falling roughly between Average and Fix Shear in how closely the parent scaling is followed. Currently this can be achieved by using Inherit Scale: None plus a Copy Scale with Offset from parent on the child; however, this is cumbersome, and loses the distinction between true local and inherited scale in the child's Local space. This new mode also matches how the Before/After Original mix modes work in the Copy Transforms constraint. On the technical side this mode requires adding a right side scale matrix multiplication into the Local<->Pose conversion, in addition to the existing two left side matrices used for location and orientation. Differential Revision: https://developer.blender.org/D6099
2019-11-21Sculpt: Enable symmetrize operator with Dyntopo disabledPablo Dobarro
After refactoring the mirror modifier and supporting geometry modifications with PBVH_FACES this operator can be easily implemented without Dyntopo. i The symmetrize button and options are still in the Dyntopo pannel. There are patches like doing multiple modifications in the Sculpt mode UI, so we need to find a way to organize this better. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6180
2019-11-21Sculpt: New Clay BrushPablo Dobarro
The previous Clay brush was similar to flatten. Now it has a different plane calculation and falloff, based on the position of the vertices before deforming them, so it feels more like adding clay to the model. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6228
2019-11-21Clay Strips: Input pressure curve and new defaultsPablo Dobarro
By squaring the pen pressure and disabling BRUSH_SPACE_ATTEN the brush feels like it has a bigger strength range, wich makes it easier to control when applying less pressure in order to smooth sculpted surfaces. Each brush should have a custom input pressure curve by default to get an optimal behaviour and make all brushes consistent, but that is going to take some time to get it right. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6214
2019-11-21Sculpt/Paint: Dash Ratio and Dash SamplesPablo Dobarro
Dash Ratio and Dash Samples are brush properties to modify the strength of the brush during a stroke. This is useful to create dashed lines in texture paint or stitches in sculpt mode. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D5949
2019-11-21Cleanup: spellingCampbell Barton
One of the corrections from last cleanup was wrong.
2019-11-21Fix T68499: weight paint gradient is broken with generative modifiersPhilipp Oeser
Caused by rBac442da4a14d. Above commit tweaked the logic to not only early out, but also set the WPGradient_vertStore screen coord to FLT_MAX in case this original index was visited before [gradientVertInit__mapFunc]. For generative modifiers though, we might get here multiple times for the same orig index, resulting in a valid orig index being made invalid for gradientVertUpdate__mapFunc [which would early out in case of FLT_MAX]. Restored original logic, so that setting FLT_MAX only really happens when it should: when ED_view3d_project_float_object fails... Maniphest Tasks: T68499 Differential Revision: https://developer.blender.org/D6282
2019-11-21Cleanup: spellingCampbell Barton
2019-11-21Cleanup: clang-formatCampbell Barton
Also remove unused vars.
2019-11-21Fix T67873: View Selected in Graph Editor (Only Selected CurvePhilipp Oeser
Keyframes) takes hidden keys into account when calculating zoom Note that with the 'View Only Selected Curve Keyframes' option enabled, it is also possible to select [box/circle/lasso] hidden/non-visible keyframes. Think this should never happen, but that is for a later commit (along some deduplication of animdata filtering code) Reviewed By: Severin, Sybren Maniphest Tasks: T67873 Differential Revision: https://developer.blender.org/D6237
2019-11-21Cleanup: remove unused value2d gizmoCampbell Barton
2019-11-21Missed last commitCampbell Barton
2019-11-21Tool System: make smooth & randomize modal operatorsCampbell Barton
Previously these used a gizmo to redo the operator however this complicated having on-screen gizmos to access tools (see T66304). Replace this with a generic way to make an operator that only has an execute function into a modal operator. This is used for smooth and randomize tools. Unlike operator gestures, this handles storing and resetting the data. Currently this only handles edit-mode data, however it's can be extended to other kinds of data.
2019-11-21Object: edit-mode data support for object vertex coordinate accessCampbell Barton
Allows to access/transform/restore edit-mode coordinates in a generic way.
2019-11-21Fix T62631: Cloth vertex mass capped to a very low number on scaled scenes.Sebastian Parborg
Removed the weight limit and made the setting more clear in what it actually does. IE, it controlls the weight of the vertices of the cloth mesh Reviewed By: Brecht Differential Revision: http://developer.blender.org/D5450
2019-11-21Fix T71412: Add transform component to deforming modifierPhilipp Oeser
Dynamically bound mesh deform modifiers failed to update the viewport on object transformation of deformer. The TODO by Sergey, which suggested adding the transform component to the depsgraph, was already there, and worked to fix T71412.
2019-11-21Add curve decimate in the graph editorSebastian Parborg
Added a animation curve decimate operator in the graph editor Reviewed By: Sybren Differential Revision: http://developer.blender.org/D4841
2019-11-21Fix T71621: VSE crashes when playing last frame of audioSybren A. Stüvel
Due to some floating point errors the last frame of a VSE audio strip can cause integer overflow and crash Blender. This overflow was caused by a cast from `int64_t` to `int` without prior check. The crash is fixed by keeping the variable as `int64_t` for as long as possible.
2019-11-21Bevel: Custom Profile and CurveProfile WidgetHans Goudey
Custom profiles in bevel allows the profile curve to be controlled by manually placed control points. Orientation is regularized along groups of edges, and the 'pipe case' is updated. This commit includes many updates to comments and changed variable names as well. A 'cutoff' vertex mesh method is added to bevel in addition to the existing grid fill option for replacing vertices. The UI of the bevel modifier and tool are updated and unified. Also, a 'CurveProfile' widget is added to BKE for defining the profile in the interface, which may be useful in other situations. Many thanks to Howard, my mentor for this GSoC project. Reviewers: howardt, campbellbarton Differential Revision: https://developer.blender.org/D5516
2019-11-20UI: Text Editor Visual ChangesHarley Acheson
Various small changes to Text Editor, mostly to do with scaling, alignment, and theme support. Differential Revision: https://developer.blender.org/D6268 Reviewed by Campbell Barton
2019-11-20New splash screen for master branch!Sergey Sharybin
This way we can tell master from previous releases apart. Splash by Gleb Alexandrov, Aidy Burrows and the Blender community
2019-11-20Alembic: clean up exporter metadata codeSybren A. Stüvel
The Alembic file metadata object was created in one place, a bit of metadata was added, then it was passed along with other properties which were then injected as metadata in another function. This is now cleaned up. No functional changes.
2019-11-20Alembic: Upgrade from 1.7.8 to 1.7.12Sybren A. Stüvel
Alembic 1.7.12 introduces a 'DCC FPS' hint, allowing Blender to write the scene frame rate to the Alembic file. This will make it possible for importers and converters to properly deal with situations where 'frame number' is the only reference to time. Writing this new DCC FPS hint will be done in a separate commit. Here only the Alembic library is upgraded from 1.7.8 to 1.7.12.
2019-11-20Cleanup: commentsCampbell Barton
2019-11-20Fix T71680: _PyObject_LookupAttr memory leakCampbell Barton
2019-11-20Cleanup: remove WITH_RAYOPTIMIZATIONCampbell Barton
This is redundant as WITH_CPU_SSE adds these flags when they're supported.
2019-11-20Fix assert running remesh with OpenVDB disabledCampbell Barton
2019-11-20Outliner: Fixup for previous commit on tooltip/crash fixDalai Felinto
The issue was actually in Python extras (where it shows the ENUM option). I got a bit distracted by the "(undocumented operator)" message. It made me miss the missing ENUM once the crash was gone.
2019-11-20Outliner: Fix crash for tooltips on ID operationsDalai Felinto
This was introduced on 9ca2cbdcea6a.
2019-11-19Outliner: Don't show id operations (make single user) when not supportedDalai Felinto
For the make single user operation to work we expect a parent of the datablock to be around. However this is often not the case when not accessing the data from Scenes or Viewlayer display modes. For now we simply not show them in the other cases. They can be added later though, by testing the outliner tree parent compatibility with the expected parent id. Fix T71673 Differential Revision: https://developer.blender.org/D6276
2019-11-19Subdiv: Tweak threading settingsSergey Sharybin
Ensure that all threads on a multi-core system are used. The issue was that BLI_task module was trying to be smart and used heuristic to find optimal number of iterations per thread. This heuristic assumes that tasks are light-weight, which is not a case for subdivision surface. On a higher subdivision level with a file from T70826 the evaluation time goes down from 0.25 to 0.17 seconds per modifier evaluation. When D6189 is finalized we can being some extra performance improvement.
2019-11-19Use mutex for lock in image.cRay Molenkamp
Usage of spinlock during heavy IO gave reduced performance see D6267 for details. Reviewed By: sergey Differential Revision: https://developer.blender.org/D6267
2019-11-19Fix T69798: Pinning empty image objectsDalai Felinto
We have no dedicated image context tab, so for now making sure we don't end up passing its ID as the pinned one. If we ever get one, we then will need a different solution here, like changing the ID that owns the data to be the object, instead of the empty image datablock. Differential Revision: https://developer.blender.org/D6273
2019-11-19Fix T71554: 'Hide Unselected' not working for certain selectionsPhilipp Oeser
rBc6cbcf83d015 caused to early out e.g when not all faces were selected (but surrounding faces were, so implicitly all vertices were selected). Now take (mixed also) selection mode into account. Maniphest Tasks: T71554 Differential Revision: https://developer.blender.org/D6254
2019-11-18Python API: assume that a crashed Python operator returned FINISHED.Alexander Gavrilov
The CANCELLED return value from an operator is intended for signaling that the operator aborted execution without changing anything, and an Undo stack entry should not be created. When a Python operator crashes, it is not safe to assume that it did nothing, so it should interpret it as FINISHED instead. Otherwise, the undo system behavior after an operator failure feels broken. Differential Revision: https://developer.blender.org/D6241
2019-11-18WM: remove view operators from the undo stackAlessio Monti di Sopra
2019-11-18GPencil: Layers and Materials Specials menu updatesMatias Mendiola
Rename and separate Layers and Materials Specials menu from other buttons for better consistency Reviewed By: antoniov Differential Revision: https://developer.blender.org/D6271
2019-11-18Merge branch 'blender-v2.81-release'Campbell Barton
2019-11-18Build deps: Actually tweak EOL styleSergey Sharybin
Seems that `git am` will force native EOL.
2019-11-18Correct error in last commitCampbell Barton
2019-11-18Build deps: Fix compilaiton of OpenColladablender
Was caused by "wrong" EOL characters used in the patch: the file is actuallyu saved using CRLF EOL style. The patch was using CRLF as well for until recent change in the C runtime.
2019-11-18Merge branch 'blender-v2.81-release'Campbell Barton
2019-11-18Fix T71564: Undo stroke lags after entering sculpt modeCampbell Barton
Regression since 2.80, see: T71434
2019-11-18Fix wrong name for QuadriFlow undo stepCampbell Barton