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-09-12BMesh: New tool `BM_mesh_intersect_edges`mano-wii
Along with the new utility `BM_vert_weld_linked_wire_edges_into_linked_faces`
2019-09-12BLIKdopBVH: New `BLI_bvhtree_overlap_ex` utilitymano-wii
2019-09-12Fix T69752: Texture paint sampling colors always 'merged down'Philipp Oeser
Rgression from rBaf4dcc6073fa. paint_sample_color > imapaint_pick_face uses the the selection buffer (DRW_select_buffer_sample_point) and to get flat colors [select_id_flat] we need to be in SCE_SELECT_FACE mode. This was already fine if you had 'Face Selection Masking' turned on, but got colors including lighting when turned of [select_id_uniform]. There was already an exception in 'select_cache_init' that turns on SCE_SELECT_FACE for weightpaint, we just need this for texture paint (vertex paint) as well... Also moved the logic into select_id_get_object_select_mode. Note we were also asserting here: BLI_assert failed: /blender/source/blender/draw/engines/select/ select_engine.c:174, select_cache_init(), at 'e_data.context.select_mode != 0' Note also this is not working correctly for vertexpaint (yet), but has been discussed in T69752 and there is a solution by @mano-wii in P1032. Reviewers: mano-wii Subscribers: mano-wii Maniphest Tasks: T69752 Differential Revision: https://developer.blender.org/D5775
2019-09-12Shading: Add Vertex Color node.OmarSquircleArt
This patch adds a new Vertex Color node. The node also returns the alpha of the vertex color layer as an output. Reviewers: brecht Differential Revision: https://developer.blender.org/D5767
2019-09-12Fix: missing atomic includeJacques Lucke
2019-09-12BLI: new StringRef and StringRefNull data structuresJacques Lucke
These two data structures reference strings somewhere in memory. They do not own the referenced string. The string is considered const. A string referenced by StringRefNull can be expected to be null-terminated. That is not the case for StringRef. This commit is a continuation of rB369d5e8ad2bb7c2.
2019-09-12Fix T69791: Fix crash reading old file browser in temporary windowJulian Eisel
When reading a old .blend file (from before the new file browser design), we wouldn't create the execute region for existing file editors. This usually wasn't an issue, but it could become one when a file browser was opened in a temporary screen before, and that screen was still visible. Then code spawning the new file browser would re-use the old file browser data, assuming the execute region was there. Handle this in versioning code and let rest of the code keep sane assumtions (e.g. that there always is a execute region, even if invisible).
2019-09-12Fix T69792: Auto-merge split faces creates faces with unrelated wire edges.mano-wii
2019-09-12BLI: fix unregistering timer with same id twiceJacques Lucke
2019-09-12BLI: new C++ ArrayRef, Vector, Stack, ... data structuresJacques Lucke
Many generic C++ data structures have been developed in the functions branch. This commit merges a first chunk of them into master. The following new data structures are included: Array: Owns a memory buffer with a fixed size. It is different from std::array in that the size is not part of the type. ArrayRef: References an array owned by someone else. All elements in the referenced array are considered to be const. This should be the preferred parameter type for functions that take arrays as input. MutableArrayRef: References an array owned by someone else. The elements in the referenced array can be changed. IndexRange: Specifies a continuous range of integers with a start and end index. IntrusiveListBaseWrapper: A utility class that allows iterating over ListBase instances where the prev and next pointer are stored in the objects directly. Stack: A stack implemented on top of a vector. Vector: An array that can grow dynamically. Allocators: Three allocator types are included that can be used by the container types to support different use cases. The Stack and Vector support small object optimization. So when the amount of elements in them is below a certain threshold, no memory allocation is performed. Additionally, most methods have unit tests. I'm merging this without normal code review, after I checked the code roughly with Sergey, and after we talked about it with Brecht.
2019-09-12Cycles: Fix Show Instanced Local View ObjectsJeroen Bakker
The local view check in the RNA didn't support instanced objects. Every object has a copy of the local_view_bits from the base. This patch changes the check to look at the local stored bits. This patch removes the check if the object is part of the view_layer. In the cases we are using it this check is not relevant. The `mesh_tissue` add-on also uses it, and is not effected by this change. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5773
2019-09-12Shading: Add More Features To The Voronoi Node.OmarSquircleArt
This patch allows the Voronoi node to operate in 1D, 2D, and 4D space. It also adds a Randomness input to control the randomness of the texture. Additionally, it adds three new modes of operation: - Smooth F1: A smooth version of F1 Voronoi with no discontinuities. - Distance To Edge: Returns the distance to the edges of the cells. - N-Sphere Radius: Returns the radius of the n-sphere inscribed in the cells. In other words, it is half the distance between the closest feature point and the feature point closest to it. And it removes the following three modes of operation: - F3. - F4. - Cracks. The Distance metric is now called Euclidean, and it computes the actual euclidean distance as opposed to the old method of computing the squared euclidean distance. This breaks backward compatibility in many ways, including the base case. Reviewers: brecht, JacquesLucke Differential Revision: https://developer.blender.org/D5743
2019-09-12Fix T69789: Assert when create a new Full Copy scene base on 2D template.Bastien Montagne
Private ID data (nodetrees and scene collections...) need special care and handling of their copy flags, and checks must be adapted too. In that case, issue came from the fact that even though those IDs have to be copied outside of bmain, we may still require usercount handling. That commit also fixes a somewhat related issue - we cannot use the non-id private data copying flag for private IDs copying, due to difference in handling of usercount again.
2019-09-12UI: Sub-type for Screen Grab Size.Pablo Vazquez
Set to Pixel.
2019-09-12UI: Wrong label in Screen Grab Size.Pablo Vazquez
It was using "screen_grab_size" as label.
2019-09-12UI: Labels capitalization.Pablo Vazquez
Capitalize the first letter of a word, except articles and prepositions.
2019-09-12Fix T69785: crash dragging in empty space in edit modeBrecht Van Lommel
2019-09-12Cleanup: compiler warningsBrecht Van Lommel
2019-09-12Fix T69582: Empties no longer support Rigid Body ConstraintsPhilipp Oeser
This is caused by rB1342d1879e12 and would also break the whole "Connect" workflow [which relies on empties] Reviewers: mont29, brecht Maniphest Tasks: T69582 Differential Revision: https://developer.blender.org/D5772
2019-09-12Fix T69782: crash using gizmos in grease pencil edit modeBrecht Van Lommel
2019-09-12Cleanup: line breaks with commentsCampbell Barton
2019-09-12Cycles: Initial Support For Local ViewJeroen Bakker
This diff will add support for local view to Cycles rendered preview mode. Currently the implementation shows same results as EEVEE does. This entails a difference with Blender 2.79, where lights were automatically added to the local view. {T69780} describes this should be solved before the next release. This patch also solves missing `owner_id` issues when using the RNA CPP Api from Cycles. Cycles didn't provide the `owner_id` making some functionality fail, what then was worked around in Blender. It also fixes an issue in `makesrna` where incorrect CPP code was generated when only `PARM_RNAPTR` was provided. An optional `view_layer` parameter is added to the `Object.local_view_get` method to reduce lookups. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5753
2019-09-12Fix T69737: Crash using the Elastic Deform brush and CompressibilityPablo Dobarro
Also renamed "compressibility" to "volume preservation" Reviewed By: brecht Maniphest Tasks: T69737 Differential Revision: https://developer.blender.org/D5757
2019-09-123D View: only show origin axes when in object modeCampbell Barton
2019-09-12Fix transforming armature originsCampbell Barton
Using geometry update doesn't work on armatures.
2019-09-11DNA: use defaults for SceneEEVEECampbell Barton
2019-09-11DNA: move View3D, View3DOverlay into DNA_view3d_defaults.hCampbell Barton
2019-09-11Cleanup: remove redundant RNA defaultsCampbell Barton
These are now set from DNA defaults.
2019-09-11DNA: defaults for ID typesCampbell Barton
2019-09-11Cleanup: Warning: 'sld': local variable is initialized but not referencedmano-wii
2019-09-11Transform: Edit Mesh: Support mirror on all axesmano-wii
Part of T68930 Now two other mirror options that can be enabled simultaneously: Mirror Y and Z. Reviewers: campbellbarton Reviewed By: campbellbarton Subscribers: ThatAsherGuy Differential Revision: https://developer.blender.org/D5720
2019-09-11Fix T69458: Edit Mesh selection bug from camera viewmano-wii
2019-09-11Fix T59143: Frame Selected Doesn't work in hair particle editmodePhilipp Oeser
This is caused by rBeb521b22b2b1. Looks like `PE_minmax` doesnt play nice with the evaluated view_layer. If we look inside `PE_get_current`, then `BKE_ptcache_ids_from_object` will actually return a list of `PTCacheID` for the evaluated object. However, looking further, then `PTCacheEdit` / `psys->pointcache->edit` is always NULL for the evaluated object. Without a valid `PTCacheEdit`, `PE_minmax` will basically do nothing. So now we are passing the non-evaluated view layer in the case of particles. Regarding to @sergey, in a longer term we should probably make it so evaluated pointcache have pointer to edit. Reviewers: sergey Maniphest Tasks: T59143 Differential Revision: https://developer.blender.org/D5758
2019-09-11Fix T69558: crash in BKE_scene_update_sound for a soundstrip withoutPhilipp Oeser
linked sound Crash could be triggered by just adding any object to the scene. Reviewers: sergey Maniphest Tasks: T69558 Differential Revision: https://developer.blender.org/D5764
2019-09-11Fix T69722: Pose brush crashes with multires modifierPablo Dobarro
Reviewed By: brecht Maniphest Tasks: T69722 Differential Revision: https://developer.blender.org/D5759
2019-09-11Fix T69754: crash in sculpting after library overrides were enabledBrecht Van Lommel
The rest of this function uses G_MAIN, so do the same.
2019-09-11UI: enable topbar by defaultCampbell Barton
This lets us add settings to the options panel without them being hidden from the user.
2019-09-11Python: Fix to support old-style handlersSergey Sharybin
Can not re-use single typle even if there is a single input pointer: the all-arguments-typle consists of 2 elements.
2019-09-11LibOverride: Enable them in UI by default.Bastien Montagne
This is minimal 'flip-switch' commit, proper cleanup and removal of the option thing will happen later, once we are sure that we can release 2.81 with it enabled. For now, we have a `--disable-library-override` now. ;)
2019-09-11DNA: initialize defaults for output pathsCampbell Barton
2019-09-11RNA: automatically initialize defaults from DNACampbell Barton
Use defaults from DNA_*_defaults.h headers, this avoids calling RNA_def_property_*_default explicitly & having to repeat values.
2019-09-11DNA: make DNA_elem_size_nr a public functionCampbell Barton
Needed for getting struct member offsets.
2019-09-11RNA: separate internal allocation functionCampbell Barton
2019-09-11Sculpt: Transform toolPablo Dobarro
The sculpt mode transform tool applies the sculpt pivot transformation to all vertices, taking XYZ symmetry into account. This commit also includes an operator to set the pivot point initial position. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5717
2019-09-11GPencil: New Brush postprocesing SimplifyAntonio Vazquez
This option allows to apply a simplify when the stroke is completed. The simplify use the Adaptive option to keep the shape.
2019-09-11Cycles: Display RenderPass in ViewportJeroen Bakker
This change allows the user to select a renderpass in the 3d viewport. Added support for external renderers to extend the `View3DShading` struct. This way Blender doesn't need to know the features an external render engine wants to support. Note that the View3DShading is also available in the scene->display.shading; although this is supported, it does not make sense for render engines to put something here as it is really scene/workbench related. Currently cycles assumes that it always needs to calculate the combined pass; it ignores the `pass_flag` in KernelFilm. We could optimize this but that was not in scope of this change Reviewed By: brecht Differential Revision: https://developer.blender.org/D5689
2019-09-11Armature: convert the length Python property of bones to a RNA property.Alexander Gavrilov
This allows accessing it from drivers and using it in UI, as demonstrated by adding it to the transform panel of 3D View. As an aside, properly mark transform-related properties of Bone read-only, as they can only be changed correctly in edit mode.
2019-09-11Cleanup: typo/spellingPhilipp Oeser
2019-09-11Depsgraph: Allow non-keyed changes from frame_change_post handlerSergey Sharybin
Makes it possible to do custom edits to animated properties from a python handler. Reviewers: brecht Differential Revision: https://developer.blender.org/D5738
2019-09-11Render: Only run callbacks for non-preview rendersSergey Sharybin
Those handlers are usually done to edit scene which is being rendered, and this is not supported due to a fully localized nature of the preview bmain. There is still non-conditional callback in stats_background which is a bit tricky to cover with check, but this code is not supposed to be run for previews anyway. Reviewers: brecht Differential Revision: https://developer.blender.org/D5731