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
2021-01-27Fix T84717: Missing viewport update after shading changesSergey Sharybin
Revert "Fix T83411: Crash when using a workspace/layout data path in a driver" The fix for the crash exposed design violation in the viewport shading updates, which is for some reason relying on dependency graph tag of interface data. The viewport module did not respond to the issue in 2 weeks, and the architect considered missing update for multiple users a more serious issue than a crash in a very specific case. This reverts commit 0f95f51361d73fbd8ba8d80b3b65da930dcf3b20.
2021-01-27Fix T84402: Off-screen rendering works only once from PythonCampbell Barton
Off-screen drawing doesn't work once the 'bgl' workaround is enabled. Disable this for off-screen drawing.
2021-01-27Windows: Fix wchar_t truncationRay Molenkamp
BLI_strncpy_wchar_from_utf8 made the assumption that wchar_t is UTF-32 bit regardless of environment, while this holds true on both mac and linux, on windows wchar_t is actually actually UTF-16. This resulted in the upper 16 bits being dropped from from some string conversions and prevented blender from starting when installed in a path with unicode code-points over 0xffff. There was also a fair bit of code duplication between BLI_strncpy_wchar_from_utf8 and BLI_str_utf8_as_unicode_and_size this change essentially removes all logic from BLI_strncpy_wchar_from_utf8 and calls the right function for the right environment. Reviewed By: brecht , Robert Guetzkow Differential Revision: https://developer.blender.org/D9822
2021-01-26Fix build errorHans Goudey
An extra `p->` was added for some reason in a recent commit. Additionally, there's no reason for the flag to be kept as a pointer, so just dereference it at the start of both functions.
2021-01-26Fix T85082: Perspective distortion while drawingFalk David
When the drawing plane was set to view and the user would pan their camera sideways, the drawing would be more and more distorted and projected further back. The fix projects the strokes to view when the user is looking through the camera or has the drawing plane set to view. Reviewed By: antoniov Maniphest Tasks: T85082 Differential Revision: https://developer.blender.org/D10213
2021-01-26Fix T85049: Geometry Nodes: How to handle instances with shear?Sebastian Parborg
Use transform matrices instead of loc, rot, scale variables to store instance transforms. Reviewed By: JacquesLucke Differential Revision: http://developer.blender.org/D10211
2021-01-26Fix T84847: Crash after splitting effect stripRichard Antalik
`seq->tmp` was left in invalid state after `SEQ_sequence_base_dupli_recursive()` which is run by `scene_copy_data()` Ensure all strips have `seq->tmp` set to `NULL` before splitting strips.
2021-01-26Fix T79922: Cache of meta strip not invalidatedRichard Antalik
Meta strip cache is not invalidated if strip inside of meta strip is invalidated. Find all metastrips that contain invalidated strip and invalidate them recursively. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10192
2021-01-26Fix T84160: Wrong DOF when camera is overridenRichard Antalik
Workbench engine used active camera to setup DOF effect even when camera was overridden. Store camera override in `WORKBENCH_PrivateData` and use it in `workbench_dof_engine_init()` Reviewed By: brecht Differential Revision: https://developer.blender.org/D9952
2021-01-26VSE: Fix memory leak when building proxiesRichard Antalik
With no valid strips selected, file_list is not freed. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10191
2021-01-26Fix T84979: No sound after changing strip datablockRichard Antalik
Tag relations to update to load new sound. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10182
2021-01-26Fix T84935: improve previous fix for boolean custom data layersJacques Lucke
This improves the fix introduced in rBdc8b31af578bfcf9f77dbce6d7b7da1006a3c8c1. While it did not result in other bugs afaik, I thought it would be good to make the fix more specific, in case some other code did expect `layer->data` to be null. This updated fix checks for the very specific case the fix was intended for.
2021-01-26Cleanup: compiler warningsBrecht Van Lommel
If one method is marked as override, clang warns if others are not.
2021-01-26Asset Browser: fix context properties reported to PythonSybren A. Stüvel
Change `"active_id"` to `"id"` so that tab completion in the asset browser context returns the correct properties. 055ef5df615632f81e30e39ae47b42a87af350ca renamed the `active_id` property to `id`, but `dir(thecontext)` still returned `"active_id"`.
2021-01-26Viewport Rendering: Don't clamp when overlays are disabled.Jeroen Bakker
During viewport rendering the color values were clamped in order to apply the overlay on top of it. This clamping would show the scene colors washed out. This patch adds a work around to skip the clamping when the overlays are turned off. Parial fix for {T77909}
2021-01-26GPU: Enable HQ normals workaround for any AMD Drivers on Polaris.Jeroen Bakker
2021-01-26Fix T84708: Versioning for Set Alpha nodeRobert Guetzkow
The versioning code introduced in rB38df935c0985 skips the composite node tree that is used by the scene thus not correctly versioning Set Alpha nodes outside of node groups. This fix iterates through all node trees to version all Set Alpha nodes. Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D10110
2021-01-26GPU: Enable HQ normals workaround for AMD 21.1.1 driver.Jeroen Bakker
AMD 21.1.1 still has the same issues as reported in T82856.
2021-01-26Fix T84907: incorrect dirty mask after geometry join nodeJacques Lucke
Hans noticed that these dirty flags are only used for normals currently and that the edge flag is not used at all. This patch still applies the "entire" fix with all four flags. Differential Revision: https://developer.blender.org/D10193
2021-01-26Fix T84935: boolean custom data layers not saved correctlyJacques Lucke
The issue was that boolean custom data layers were not written to files, because the dna struct name `bool` does not exist. Adding a struct that just contains a `bool/uint8_t` does not seem to be possible, it looks like the minimum dna struct size is 4 bytes. The proposed solution has two parts: 1. Write the custom data layer using `BLO_write_raw` instead of `BLO_write_struct_array_by_name`. 2. When loading a file, reinitialize any custom data layer that was not saved correctly (this is just a fix for existing files). Differential Revision: https://developer.blender.org/D10194
2021-01-26Fix T85011: "Allow Execution" reloads the wrong file when recoveringCampbell Barton
Support custom revert actions, necessary for recover operations to be able to reload the file with scripts enabled.
2021-01-26WM: add "use_scripts" to recover auto-save/session operatorsCampbell Barton
Support recovering blend files with scripts enabled, needed to fix T85011, can be useful in general too. Adding this also resolves an assert in BKE_autoexec_match, since it ran even when scripts were enabled.
2021-01-26WM: return success from WM_recover_last_session, minor cleanupCampbell Barton
- Return success from WM_recover_last_session - Avoid setting global variables is already called in WM_file_read. While it didn't cause any problems, these assignments ran even when recovering the session failed to load the file. - Return OPERATOR_CANCELLED when the operator fails. Returning success is needed to fix T85011.
2021-01-26Fix library name clipping most of the data-block name in data-block menusJulian Eisel
Issue is visible here https://developer.blender.org/F8626313. If there is enough space for both the item name and the library hint, display both. Otherwise, clip either the item name, the library hint, or both so that not more than 60% and 40% of the available width are used repectively. There are further improvements we could do, as noted in T84188, this just fixes the regression for the release. Part of T84188. There were multiple reports about this, see merged in and mentioned reports in T84188 and T78012.
2021-01-25Fix T84031 initialize connectivity info of the base mesh before using ↵Greg Neumiller
Displacement Smear brush. Reviewed By: pablodp606 Maniphest Tasks: T84031 Differential Revision: https://developer.blender.org/D9956
2021-01-25Fix: Unable to animate nodes modifier exposed propertiesHans Goudey
The RNA path used for animating the settings passed to the node tree is incorrect. Currently it's just `settings.property_name`, but it's the path from the ID, not the modifier, so it should be `modifiers[modifier_name].settings.property_name`. However, the "Settings" struct is separated in RNA and DNA, which means that the callback to get the RNA path does not know about the modifier's name in order to fill the above path, so some reference to the modifier in the "Settings" struct would be necessary, which would create a convoluted layout in the `ModifierData` struct. Instead, this commit simply removes the "Settings" struct from RNA, which isn't as elegant from the point of view of the Python API, but otherwise it's a nice simplification. Note that we don't remove the "Settings" struct from DNA, because it would break reading old files. Differential Revision: https://developer.blender.org/D10175
2021-01-25Fix T84324: Crash when combining two scenes in compositor.Jeroen Bakker
In the CompositorOperation::deinitExecution the viewer could be freed at the same time it was drawn in the image editor or node editor. There is a guard for that but wasn't added during the migration of the two editors to the draw manager.
2021-01-25Fix padding issue in DNASergey Sharybin
Was introduced in the previous change in the image.
2021-01-25Fix T84398: Multiview images show only one view.Jeroen Bakker
The `image_get_gpu_texture` didn't use the iuser->view_index but recalculated the requested view again. This lead to inconsistent behavior when switching between multi view textures or stereo textures. This has been fixed by ensuring that the `iuser->view_index` is always used. An Image has only place to store 2 view textures. This is done for right/left eye compositing. A multi view texture can have more views. This would lead to reading and writing to unallocated space. When a multiview texture is requested that is larger than 1. It will always be cached as being the first eye. The `gpu_view` of the Image is also used as a cache key to check this.
2021-01-25Fix UI message typo in own previous commit.Bastien Montagne
//sigh//
2021-01-25Fix UI messages.Bastien Montagne
Avoid sticking words together when it's not absolutely necessary.
2021-01-25Fix T84878: Eevee cryptomatte broken with stereoscopyJeroen Bakker
During multiview rendering the `cryptomatte_accum_buffer` is not cleared between the views and leaves artifacts on the next view to be rendered. This change clears the accum buffer when it already exists and will be reused for the next view.
2021-01-25Cleanup: compiler warning, clang-format, spellingCampbell Barton
2021-01-25Fix T84705: Snapping strip handle offset animationOlivier Jolly
Only offset animation if whole strip is snapped. Bug introduced in e36c05b3d191. Reviewed By: ISS Differential Revision: https://developer.blender.org/D10116
2021-01-25Fix T83267: Crash prefetching scene strip in meta stripRichard Antalik
Scene strips can't be prefetched and seq_prefetch_do_skip_frame() should check if scene strip is in timeline. But it did not recurse into meta strips, which resulted in crash. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9999
2021-01-25Fix T82698: Speed effect not working on generator stripsRichard Antalik
Generator strips with zero inputs have their length set to 1 pernamently. In some cases it is useful to use speed effect on these strips because they can be animated. This can be done by using their length as is on timeline as content length. This is very simplified and temporary solution, as cutting these strips won't give expected results. Lot of code relies on length of these strips being fixed to 1, resolving this properly should be done by T59540. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10026
2021-01-25Fix T83266: Proxy building with meta strips failsRichard Antalik
Building proxy with meta strip selected resulted in attempt to render meta strip itself and save result as image as is done when building image proxies. Remove meta strip from list of supported strips. Multicam, Meta and scene strip are cleared from poll function in UI as well. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10001
2021-01-25Fix ruler end-caps not following interface scaleCampbell Barton
2021-01-25UV: tweak island select behaviorCampbell Barton
Selecting inside an island no longer de-selects when it's too far from an edge. When edge select fails fall back to inside-face test. This follows 908b383b7d2199c0c614d085ff65a03eb7852274 which made this change for face-select. Apply to island selection since it doesn't make sense for island select to behave differently.
2021-01-24Fix UV editor vertex/face drawing ignoring UI scaleCampbell Barton
2021-01-24Fix T84988: Armature symmetries crashes with action constraintCampbell Barton
Action constraint without an action pointer set was crashing.
2021-01-24Fix outliner and animation editors exiting multi-object edit-modeCampbell Barton
When multiple objects were in edit-mode, only the active object would exit edit-mode.
2021-01-22Fix T84745: more build errors with TBB 2021Brecht Van Lommel
* tbb::blocked_range moved to a different namespace and since the fix is non-trivial, remove some unused code that used this. * Task group priorities are no longer supported. It's unclear if they are useful at all right now and even set correctly, for now all tasks are equal priority with TBB 2021.
2021-01-22Fix vertex color baking using wrong color spaceBrecht Van Lommel
Now light baking should match the render.
2021-01-22Fix: Mouse presses in some areas do not set active modifierHans Goudey
There are a couple of operations that are meant to set the active modifier that currently don't. The first is a mouse press on the drag icon on the right of the header, and the second is mouse presses on modifier sub-panels headers. This was an oversight in the implementation, especially the second, because the blank space on the right of a sub-panel header often looks just like the blank space elsewhere on the modifier's panel that *does* set the active modifier. Note that this purposefully doesn't include collapsing and expanding the modifier as operations that set the active, since regardless of whether that makes sense, it wasn't in the agreed upon design, which would ideally not need changing for 2.92. Differential Revision: https://developer.blender.org/D10155
2021-01-22Revert "BLI: add conversion from float2 to float3"Jacques Lucke
This reverts commit 6ac0a3d83c8e5a39bd5356aa0d68e3166bd91e82.
2021-01-22Fix T76936: Mesh shape amended upon undoing in sculpt modeSergey Sharybin
Was happening when there are deform modifiers prior to the multires. There are detail in the comment around sculpt_undo_refine_subdiv(), but briefly: the subdiv was refined with wrong base mesh coordinates. Differential Revision: https://developer.blender.org/D10158
2021-01-22BLI: add conversion from float2 to float3Jacques Lucke
Previously float2 was converted to float3 by implicitly converting to a float pointer first, which was then passed to the float3 constructor. This leads to uninitialized memory in the z component of the new float3.
2021-01-22Fix (unreported) LibOverride: hair cache settings not working.Bastien Montagne
Thanks to that same point cache being exposed in **four** different RNA paths (twice in particle system, and twice in its embedded cloth simulation settings). Only way is to also make particle system overridable.
2021-01-22GPencil: Fix unreported Vertex Paint masking errorAntonio Vazquez
The masking was not working as expected and allowed to paint non selected strokes.