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
2020-08-21Merge branch 'blender-v2.90-release' into masterBastien Montagne
2020-08-21Fix critical bug in foreach ID looper of Scene data-block.Bastien Montagne
Since stone age of lib_query, the code would iterate over the current list of active sequences (from a meta strip e.g.), and not over the whole list of those. This is a critical issue as it means in some cases (editing a meta strip typically), some ID pointers would be missed/ignored by this foreach looper, which is now at the center of most of our ID management code. This caused a bug here at the studio, leading to loss of all sound IDs used by sound strips when editing and undoing inside a meta strip, since ID refcounting would not happen properly on strips using sounds outside the meta-strip context during file reading of the undo steps. To be backported to 2.83. Differential Revision: https://developer.blender.org/D8671
2020-08-21Cleanup: spellingCampbell Barton
2020-08-21Cleanup: use doxy sections for fcurve.cCampbell Barton
2020-08-21Cleanup: remove duplicated code from previously unnoticed merge conflictJacques Lucke
`BKE_animdata_blend_expand` is called in `expand_id` already.
2020-08-21Refactor: move animdata code from blenloader to blenkernelJacques Lucke
2020-08-21Refactor: move nla code from blenloader to blenkernelJacques Lucke
2020-08-21Cleanup: remove LodLevelJacques Lucke
This was part of the game engine and is not used anymore. Reviewers: brecht Differential Revision: https://developer.blender.org/D8666
2020-08-21Refactor: move fcurve/fmodifier code from blenloader to blenkernelJacques Lucke
This is part of T76372.
2020-08-21Cleanup: use LISTBASE_FOREACH in readfile.cJacques Lucke
2020-08-21GPUShader: Fix linking working even if one shader compilation failedClément Foucault
Linking without valid shaders works on some drivers. Avoid this case by forcing linking step to return false.
2020-08-21Cleanup: GPU: Update classes commentsClément Foucault
This should avoid confusion about what is a class and what is an opaque pointer.
2020-08-21GPUShader: Make GPUShader* an opaque pointer to blender::gpu::ShaderClément Foucault
This avoids the misleading inheritance. Also cleanup by setting the blender::gpu::Shader as active shader to avoid some casting.
2020-08-21GPUShader: Fix NULL string used as shader name.Clément Foucault
The shader name is required with the latest changes.
2020-08-21GPUUniformBuf: GL backend isolationClément Foucault
This is in preparation of vulkan backend. We move all opengl functionnalities behind an abstract class. This also cleansup the "dynamic" ubo create and rename it to `GPU_uniformbuf_from_list()` Contains, no functional change. Part of T68990 Vulkan support.
2020-08-21GPUUniformBuf: Rename struct and change API a bitClément Foucault
This follows the GPU module naming of other buffers. We pass name to distinguish each GPUUniformBuf in debug mode. Also remove DRW_uniform_buffer interface.
2020-08-21Cleanup: use LISTBASE_FOREACH in writefile.cJacques Lucke
2020-08-21Blenloader: move IDProperty read/write code to blenkernelJacques Lucke
This is part of T76372.
2020-08-21Cleanup: split `BKE_scene_get_depsgraph()` into two functionsSybren A. Stüvel
Split the depsgraph allocation into a separate function `BKE_scene_ensure_depsgraph()`. Parameters are only passed to those functions that actually need them. This removes the the "if that boolean is `false` this pointer is allowed to be `NULL`" logic and more cleanly decouples code. No functional changes.
2020-08-21Cleanup: Reduce nesting of `scene_get_depsgraph_p()`Sybren A. Stüvel
Reduce nesting by flipping conditions and returning early. It's now much clearer that it's actually a linear function (rather than a nested one). No functional changes.
2020-08-21Fix crash when accessing `view_layer.depsgraph` through BPYJulian Eisel
For the sanity checks to work we don't actually need to check other scenes. So this function can be simplified so that it does not require a `Main *`. Mistake in 5cc08510e0a6.
2020-08-21Cleanup: remove MeshBatchCache from MeshRenderDataCampbell Barton
Was noted as a hack, this can be passed as an argument instead.
2020-08-21UI: Fix panel collapse all behavior invertedHans Goudey
Ctrl click on a panel should collapse all other panels but leave that panel expanded. In a recent cleanup commit that was mistakenly reversed.
2020-08-21UI: Cleanup in interface_panel.cHans Goudey
- Use const in some places where applicable - Use consistent variable names in some places - Use "r_" prefix for return arguments - Declare variables in smaller scope where they are used
2020-08-21Cleanup: Use LISTBASE_FOREACH in editors/screen directoryHans Goudey
Differential Revision: https://developer.blender.org/D8653
2020-08-20Fix incorrect notifier valueJulian Eisel
Wouldn't actually cause an issue since the value was unused within the subtype bits. Own mistake in dc2df8307f41.
2020-08-20Outliner: Avoid rebuilding tree on selection/active changesJulian Eisel
We can avoid the rather expensive outliner tree rebuilds and only redraw if nothing but the selection or active item changes. This should give a bit of speedup for heavy scenes. For this to work I had to correct a few notifiers, some were only sending selection/active change notifiers that actually did things like adding objects. I also added a more precise notifier type for when the active collection changes. At the notifier subtype/action level we're not even close to running out of bits, so this should be fine. Also had to correct a wrong notifier check (was using `&` rather than `==`).
2020-08-20Cleanup: Clang Tidy: Resolve readability-delete-null-pointer errorHans Goudey
2020-08-20Merge branch 'blender-v2.90-release' into masterBastien Montagne
2020-08-20GPUShaderInterface: Fix use after free crashClément Foucault
2020-08-20Fix T79931: Infinite loop in scene "Full Copy" in 2.90.Bastien Montagne
Code dealing with object copy of master collection was bugy in case one of the new object copy would get a name lesser than the original object, leading to new copy being inserted before original one in lists. Maniphest Tasks: T79931 Differential Revision: https://developer.blender.org/D8656
2020-08-20Fix T63675: Keying outside NLA strip not possibleWayde Moss
Allow adding keys outside of the NLA strip, when Sync Length is activated. Before this, an animator would have to exit tweak mode, adjust the strip length, then enter tweak mode again. Now the animator can freely insert and modify keys outside of the strip bounds. They will never have to touch the strip bounds directly. Reviewed By: sybren Differential Revision: https://developer.blender.org/D7533
2020-08-20Cleanup: Mesh Filter invoke refactorPablo Dobarro
This moves the allocation for filter to separate functions, removes all repeated calls to RNA_enum_get an fixes some other code quality issues. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8639
2020-08-20GPUState: Use state setters inside selection codeClément Foucault
This fixes T79945 Gizmos don't work in Edit Mode
2020-08-20DRW: Fix remaining glDisableClément Foucault
2020-08-20GPUState: Use explicit depth test enumClément Foucault
2020-08-20Fix T79924: Update the view rotation origin after setting the sculpt pivotPablo Dobarro
This updates the view navigation origin after modifying the pivot position. Reviewed By: sergey Maniphest Tasks: T79924 Differential Revision: https://developer.blender.org/D8632
2020-08-20Fix variable simulation steps with cloth deform brushesPablo Dobarro
Cloth deform brushes (both in cloth brush or other tools with cloth simulation targets) should not have their spacing as a value relative the brush radius to avoid affecting the simulation speed when changing the brush radius. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8620
2020-08-20Sculpt: Add orientation modes to the Cloth FilterPablo Dobarro
This adds the orientation modes to the Cloth Filter. Similar to the mesh filter, they set the orientation of the axis when limiting the forces. When using the gravity mesh filter, the orientation also sets the gravity direction. In world orientation, cloth will always fall towards the ground plane. In view mode, cloth will always fall down relative to the view. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8618
2020-08-20NLA: Fix strip Sync Length moving animation dataWayde Moss
Change the way Sync Length works so that it keeps keyframes at the same key as before the sync. Now when the user exits tweak mode, the overall NLA result is unchanged. Reviewed By: sybren Differential Revision: https://developer.blender.org/D7602
2020-08-20Depsgraph: refactor tagging after time changesJacques Lucke
This reverts {rB1693a5efe91999b60b3dc0bdff727473b3bd00bb} and implements an alternative solution. The old patch had the problem that the depsgraph would always evaluate at the current frame of the original scene (even when `DEG_evaluate_on_framechange` was used). Now it is possible to evaluate the depsgraph at a specific frame without having to change the original scene. Reviewers: sergey, sybren Differential Revision: https://developer.blender.org/D8616
2020-08-20Selection: Fix lasso selection invisibleClément Foucault
2020-08-20GPU: Fix some more remaining GL enums scattered outside of GL moduleClément Foucault
This fixes an assert inside the lasso selection drawing.
2020-08-20GPUShaderInterface: GL backend isolationClément Foucault
2020-08-20GPU: Use GPUShader setters for uniforms removing uses of ShaderInterfaceClément Foucault
2020-08-20DRW: Remove some more direct gl state modification.Clément Foucault
2020-08-20UI: Fix collapsed panels not drawing header buttonsHans Goudey
Error in rB940b239ad473 left a check for open panels after the "vertical" check was removed.
2020-08-20Revert "Cleanup: Use LISTBASE_FOREACH in editors screen directory"Hans Goudey
This reverts commit 52f40bcff21b285b7eaa21aaa9c6c7b9d6fa8669. Apologies for the noise. I caught a problem with this that I hadn't before. I will commit later after thorough testing.
2020-08-20Cleanup: Use LISTBASE_FOREACH in editors screen directoryHans Goudey
Differential Revision: https://developer.blender.org/D8653
2020-08-20Merge branch 'blender-v2.90-release' into masterCampbell Barton