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
2020-03-04Refactor ID make local to use a single flag parameter.Bastien Montagne
Instead of using anonymous booleans flags, also allows to keep the same behavior in all cases, without needing special handling from calling code for our beloved oddballs object proxies...
2020-03-04Cleanup: ID make local: remove `id_in_bmain` argument.Bastien Montagne
This info is now stored in ID tags themselves, so no need to pass an extra anonymous boolean parameter around, yay!
2020-03-04Cleanup: Rename 'make local' functions to new scheme.Bastien Montagne
Also removed some only used locally from the header, `BKE_lib_id.h` is already way too big, no need to overload it with unused things.
2020-03-04UI: rename View Selected" to "Frame Selected"Asad-ullah Khan
Addresses T74331
2020-03-04Fix T73797: Selection/Editing after Make Single User for Object DataPhilipp Oeser
fails Exposed by rB50d5c03e2d14. This was only a problem when _only_ 'Object Data' was made local. If also e.g. 'Object' or 'Materials' was checked, these were already making sure realations were updated [DEG_relations_tag_update(bmain)]. Now also call DEG_relations_tag_update(bmain) for the 'Object Data' case. I assume the underlying issue is that there is some ID_NEW_REMAP happening in 'single_obdata_users()' -- including that for 'me- >texcomesh', which might be responsible for the glitches in selection/ editing? Also not entirely sure why this wasnt a problem prior to rB50d5c03e2d14.(I assume this was somewhat hidden by the fact this was always called with a default action being nothing, the user would always need to access the redo panel. So this might have been hidden by an Undo step involved?) Maniphest Tasks: T73797 Differential Revision: https://developer.blender.org/D7020
2020-03-04Cleanup: avoid the term old when storing/restoring context variablesCampbell Barton
2020-03-04Cleanup: remove unused BLI_strncat_utf8Campbell Barton
Behaves differently to strncat, BLI_strncpy_utf8_rlen can be used for a similar purpose.
2020-03-04Fix possible buffer overflow from incorrect 'strncat' useCampbell Barton
The size argument is the maximum number of bytes to copy, not the destination buffer size. Replace with utility function that joins strings.
2020-03-04BLI_string_utils: add BLI_string_join_array_by_sep_charCampbell Barton
Utility to join strings into a fixed size buffer.
2020-03-04Cleanup: replace CLAMP macros with functionsCampbell Barton
2020-03-04BLI_math: inline clamp functionsCampbell Barton
These are used in some per-pixel operations such as image sampling and color conversion, where replacing existing macro use could add overhead.
2020-03-04Cleanup: replace commented code with define checkCampbell Barton
Avoids duplicated comments, also quiet warning accessing non-existing variable.
2020-03-04Cleanup: cmake indentationCampbell Barton
2020-03-04BLI_math: add clamp_v# and clamp_v#_v#v# utility functionsTiago Chaves
2020-03-03Fix T72028: Crash switching to vertex paintPhilipp Oeser
This would happen when done from editmode, on a mesh with any modifier, after adding/removing geometry in editmode. Similar to rBba0870713b9b (which did this for weightpaint and sculpt already), ensure an evaluated depsgraph, otherwise 'runtime.mesh_deform_eval' would not be up to date causing problems later. Maniphest Tasks: T72028 Differential Revision: https://developer.blender.org/D7011
2020-03-03Modifiers: Wave add invert vgroup optionBastien Montagne
Adds the invert vgroup option to the Wave modifier. Differential Revision: https://developer.blender.org/D6893
2020-03-03IDs: change FILTER_ID_* to 64 bit to make space for new ID typesBrecht Van Lommel
And change file browser to boolean from bitflag enum, which is only 32 bit. Differential Revision: https://developer.blender.org/D7004
2020-03-03IDs: modify wm.previews_clear operator to make space for new ID typesBrecht Van Lommel
Use a regular enum, to avoid running out of bits. Differential Revision: https://developer.blender.org/D7003
2020-03-03RNA: support 64 bit boolean bitflags in DNABrecht Van Lommel
This does not affect the RNA access API, since how the boolean is read from DNA abstracted away in the API. Differential Revision: https://developer.blender.org/D7002
2020-03-03Fix: USD Build error on windowsRay Molenkamp
USD is being included before the blender headers. USD includes TBB, which includes the windows headers which define rad2 as a constant conflicting with a field with that exact name in the MetaElem dna struct. Added `-DWIN32_LEAN_AND_MEAN` to keep the windows headers from defining rad2.
2020-03-03Fix Snake Hook rake on rotated objectsPablo Dobarro
It was missing this local space conversion before calculating the rake angle. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D7008
2020-03-03Fix hardness not resetting when using reset brushPablo Dobarro
Just add it to the list or properties to reset from DNA_brush_defaults Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6992
2020-03-03USD: Added support for exporting metaballsSybren A. Stüvel
Metaballs are exported as evaluated polygonal mesh. USDExporterContext::depsgraph was made non-const to allow calling `BKE_mesh_new_from_object()`. The alternative was to make the depsgraph parameter of that function const, but that would be too intrusive as that would require even more functions to accept a const depsgraph pointer.
2020-03-03Cleanup: USD, marked overridden function with `override`Sybren A. Stüvel
No functional changes.
2020-03-03Cleanup: USD, removed unused codeSybren A. Stüvel
Removed an unused forward declaration. No functional changes.
2020-03-03Fix T71871: Quadriflow remesh operator don't stack operationsSebastian Parborg
Made an explicit call to the exec function be a blocking call and a call from invoke (or otherwise) be nonblocking. Reviewed By: Bastien Differential Revision: http://developer.blender.org/D7006
2020-03-03Remove the "use mesh curvature" option from quadriflowSebastian Parborg
It sometimes caused the solver to get into an seemingly unrecoverable state and crash. Therefore I will disable this feature for now.
2020-03-03Fix delaunay triangulation, bad indices for output faces.Howard Trickey
If there were merged vertices, sometimes the output faces had wrong vertex indices. Added a test for this, and fixed.
2020-03-03Revert "Fix T74110: EEVEE Shadow Pass"Jeroen Bakker
This reverts commit 403bb357ae2b1d2561a0d77c96035ba54c197cbd. The old implementation matches cycles closer. See T74378
2020-03-03Cleanup: formatting, spellingCampbell Barton
2020-03-03Subdiv: Fix/Workaround for surface partial derivativesSergey Sharybin
Both partial derivatives were evaluated to 0 for a special vertex on Suzanne model: this is happening on a vertex where two adjacent faces with 2 common edges are connected (in the nose of Suzanne). This was breaking multires in this point since tangent matrix is all zeroes, and hence no displacement can be applied in that vertex.
2020-03-03Separate operators (mesh/curve/armature/gpencil): take user preferencesPhilipp Oeser
into account for duplicating actions Previously actions remained linked after duplication, now this is based on the User Preferences (PreferencesEdit.use_duplicate_action). note: default is ON here, so this changes default behavior of separate operators. First intuition was to respect _all_ preferences here (e.g. also duplicating materials if chosen in the User Preferences) but after consideration this is probably not what the User would expect from such 'modeling' opertions (e.g. separate by loose parts resulting in possibly many duplicate materials) Fixes T71038 Maniphest Tasks: T71038 Differential Revision: https://developer.blender.org/D6120
2020-03-03Fix bone envelopes displaying wrong when armature is scaledPhilipp Oeser
Object Scale was not taken into account. This lead to reports like T74247 where the user scaled the envelope distance and radii to the supposedly right values inthe viewport, but these were actually 'wrong' under the hood. Assigning weights from bone envelopes seemed like it would fail, but this code would actually take the armature scaling into account when checking envelope distance and weight. ref T74247 Maniphest Tasks: T74247 Differential Revision: https://developer.blender.org/D6964
2020-03-03Fix T74375: grid levels theme preference reset to defaultBrecht Van Lommel
2020-03-03Fix dope sheet (Mask mode) keyframe editing not image/clip viewsCampbell Barton
Every key-frame edit was updating all grease pencil & mask data-blocks. Change the logic to only update edited data-blocks.
2020-03-03Fix T74292: Dope sheet (Mask mode) keyframe editing misses updateSybren A. Stüvel
2020-03-03Cleanup: Use a utility function to obtain the bvh_cacheGermano Cavalcante
2020-03-03Missed in the last commitGermano Cavalcante
2020-03-03Transform Snap: Clear 'SnapObjectData' after changes in the geometryGermano Cavalcante
Differential Revision: https://developer.blender.org/D6927
2020-03-03Revert "Transform Snap: Clear 'SnapObjectData' after changes in the geometry"Germano Cavalcante
This reverts commit fe7c4fb4a2d5d48555ebb9178fd5e7a8c1ace1ee. It does not work because `mesh_eval_cage` and `mesh_eval_final` always is `NULL` in this case.
2020-03-03Fix error parsing XDG path valuesCampbell Barton
Own error in recent changes to parsing.
2020-03-03Transform Snap: Clear 'SnapObjectData' after changes in the geometryGermano Cavalcante
Differential Revision: https://developer.blender.org/D6927
2020-03-03Fix T74377: Weld Modifier destroys vertex groupsGermano Cavalcante
Differential Revision: https://developer.blender.org/D6997
2020-03-02Fix: Excessive (re)builds of subprojectsRay Molenkamp
Recent refactor external dependencies handling (D6642) improperly linked all library dependencies with public linkage rather than interface linkage. Causing excessive (re)builds of subprojects when not needed. This patch restores the interface linkage. Reviewed By: brecht sergey Differential Revision: https://developer.blender.org/D6983
2020-03-02Cleanup: Use generics properties for arrow keys navigation (walk-select)Valentin
This patch refactors arrow keys navigation to move properties and enum to generic ED_select_utils.h and property to WM_operator_properties_select_walk_direction() No functional change Reviewed By: Julian Eisel Differential Revision: https://developer.blender.org/D4771
2020-03-02Cleanup: make blf header work in C++Jacques Lucke
2020-03-02Cleanup: make remaining gpu headers work in C++Jacques Lucke
2020-03-02Fix T74278: Light, Image Object, and Compositor Backdrop Viewer NodePhilipp Oeser
gizmos are too big Caused by rB9cac5fa681c5 which fixed the handles for the camera border gizmo (being much too small)-- which in turn was broken by rB98e4fbc7cc9e. Camera border gizmo sets up its matrix_space a bit differently [this is why we are getting very small values in gizmo_calc_rect_view_scale -- needs more investigation], but instead of breaking it for Light, Image and Compositor Backdrop, lets just compensate by scaling the Camera Border Gizmo for now. Maniphest Tasks: T74278 Differential Revision: https://developer.blender.org/D6991
2020-03-02Cleanup: make remaining imbuf headers work in C++Jacques Lucke
2020-03-02Cleanup: make remaining editor include headers work in C++Jacques Lucke