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-10-06Fix errors in 68dc970219ef7a559b48bd1b3e45d033367b4172Campbell Barton
Swapped preview/timeline keymap and incorrect center measurement.
2021-10-06Fix handling of overrides during append.Bastien Montagne
Liboverride references need a special handling during append, since those pointers should never be made local, nor reampped to newly localized data. And liboverride references should never be directly made local either, to ensure their liboverride usages remain pointing to linked data and not local one. Issue was reported by the studio, and also probably as part of T91892.
2021-10-06Fix possible use-after-free when cancelling temporary rename buttonJulian Eisel
If a renaming button was removed via `UI_but_active_only_ex()` and that button was placed using the layout system, the button was still in the layout. So far this didn't cause issues, because all cases where the button may be removed were not using the layout system.
2021-10-06Fix T91064: Cycles low poly meshes having black edges when shade smoothedMikhail Matrosov
Fixes:{T91064} Caused by {rBcd118c5581f482afc8554ff88b5b6f3b552b1682} - Applies `ensure_valid_reflection()` to the normal input on all BSDFs for CPU and GPU. - This doesn't affect hair. - Removes `ensure_valid_reflection()` from the output of Bump Map and Normal Map nodes for CPU/GPU as it is not needed. - The fix doesn't touch OSL. Reviewed By: brecht, leesonw Maniphest Tasks: T91064 Differential Revision: https://developer.blender.org/D12403
2021-10-06Correct error in 68dc970219ef7a559b48bd1b3e45d033367b4172Campbell Barton
Included invalid keyword argument.
2021-10-06Sequencer: improvements to preview selectionCampbell Barton
- Support toggle/deselect/deselect_all options (matching 3D viewport object selection). - Support legacy selection behavior. - Support selecting by the center in preview views (holding Ctrl).
2021-10-06UI: Boolean rename "Self" to "Self Intersection"Aaron Carlisle
Better to be more explicit here, also this matches the recent Boolean Node.
2021-10-06UI: add sequencer preview context menuCampbell Barton
This is mostly a place-holder since many items have not yet been implemented.
2021-10-06UI: rename sequencer "Select" to "Tweak"Campbell Barton
This matches the tweak tool elsewhere. Match names since this name is shown prominently in the fall back tool selector.
2021-10-06Keymap: fallback tool support for the sequencerCampbell Barton
Note that sample is no longer in the sequencer preview keymap, it is still accessible as a tool. This conflicted with click-drag to transform.
2021-10-06Keymap: remove selection from the common sequencer mapCampbell Barton
Needed for further changes as selection behaves differently in the preview region.
2021-10-06Keymap: show sequencer tools in key-map editorCampbell Barton
Re-order common sequencer key-map to be at the top level (shared by preview and sequence view). Without this sequencer tools would be displayed at different levels in the hierarchy which is confusing and doesn't represent the separation between "Sequencer" and "SequencerPreview" key-maps.
2021-10-06Sequencer: use pass-through for preview selectCampbell Barton
Needed for select-drag action as done in the 3D view and UV editor.
2021-10-06Fix sequencer sample poll functionCampbell Barton
Sequencer poll was succeeding outside of a preview region. This meant it couldn't be used in tool key maps which are currently shared between preview & sequencer regions.
2021-10-06Cleanup: spelling in commentsCampbell Barton
2021-10-06Nodes: Composite: Fix wrong socket type for color ramp nodeAaron Carlisle
2021-10-06VSE: Reduce memory footprint when using thumbnailsRichard Antalik
Free strip `anim` data immediately after rendering. This doesn't affect rendering performance, because each new loop would have to seek to start of strip. Also strips are now freed anyway, but after rendering loop ends. With SF edit file, thumbnail rendering used around 60GB of memory. Now it uses few hundreds MB (depends on movie file resolution, codec, etc.) Freeing of strips caused UI to be unresponsive for brief period. This issue is not removed, but is more spread out so it is less noticable.
2021-10-06Cleanup: clang-format, correct doxy groupsCampbell Barton
2021-10-06Cleanup: VSE: Move thumbnail drawing to own fileRichard Antalik
No functional changes.
2021-10-06Cleanup: Remove data duplication from various lookup tables in CyclesJesse Yurkovich
This effectively undoes some of the following commit: rB4537e8558468c71a03bf53f59c60f888b3412de2 The tables in question were duplicated 5-6 times into the blender executable due to the headers being used in multiple translation units. This contributes ~6.3kb worth of duplicate data into the binary. Some further details are in the below revision. Differential Revision: https://developer.blender.org/D12724
2021-10-06Cleanup: missing verb in commentKévin Dietrich
2021-10-06Fix crash when reading non standard Alembic velocity attribute typeKévin Dietrich
Some software may export velocity as a different type than 3D vectors (e.g. as colors or flat arrays or floats), so we need to explicitely check for this. A more robust attribute handling system allowing us to cope with other software idiosyncrasies is on the way, so this fix will do for now.
2021-10-06Cleanup: rename BKE_font.h -> BKE_vfont.hCampbell Barton
Match API naming prefix (BKE_vfont_*) and DNA_vfont_types.h.
2021-10-06Cleanup: remove unused flag argumentCampbell Barton
2021-10-06Cleanup: move BLI_vfontdata.h to BKE_vfontdata.hCampbell Barton
This didn't belong on blenlib since it uses DNA data types and included a bad-level call to BKE_curve.h. It also meant linking in blenlib would depend on the freetype library, noticeable for thumbnail extraction (see D6408).
2021-10-06Cleanup: simplify ED_imbuf_sample_pollCampbell Barton
Access the space data directly from the area. Also remove redundant NULL check.
2021-10-06Cleanup: spelling in commentsCampbell Barton
2021-10-06Fix: Add missing function node declaration for RGB and Float Curve nodesCharlie Jolly
2021-10-05Cleanup: Remove unused DerivedMesh functionsHans Goudey
The long term goal is completely removing DerivedMesh, and these functions are making some refactoring of mesh normals (T91186) more complicated. They are not used anywhere.
2021-10-05Cleanup: Clang tidyHans Goudey
2021-10-05VSE: Free animation strip data if they are not visibleSebastian Parborg
Previously we would only free animation strip data when doing final renders. If not doing a final render or simply just playing back videos in the VSE, we would not free decoders or non VSE cache data from the strips. This would lead to memory usage exploding in complex VSE scenes. Now we instead use the dumb apporach of freeing everything that is not currently visible.
2021-10-05Cleanup: Make anim_getnew in the VSE less confusingSebastian Parborg
It was using dummy image buffers to indicate if an animation container could be initialized or not. Use booleans instead.
2021-10-05GPencil: Remove unused spacetype check in Paint operatorAntonio Vazquez
The Paint operator only works in SPACE_VIEW3D and this is checked in the poll mtehod, so it's not logic check again. These checkings were part of the old grease pencil but it was not removed.
2021-10-05Fix missing proper 'make local' call for liboverrides from outliner.Bastien Montagne
Also includes minor improvements to `BKE_lib_override_library_make_local` itself. This is a complement to rB37458798fa02c.
2021-10-05Add missing "CUDA_ERROR_UNSUPPORTED_PTX_VERSION" to CUEWPatrick Mours
This is required for Cycles to report a meaningful error message when it fails to load a PTX module created with a newer CUDA toolkit version than the driver supports. Ref T91879
2021-10-05Fix adaptive sampling artifacts on tile boundariesSergey Sharybin
Implement an overscan support for tiles, so that adaptive sampling can rely on the pixels neighbourhood. Differential Revision: https://developer.blender.org/D12599
2021-10-05Fix T91940: Asset Browser catalogs continuously redrawJulian Eisel
Issue was that the `on_activate()` callback of tree-items were continuously called, because the active-state was queried before we fully reconstructed the tree and its state from the previous redraw. Such issues could happen in more places, so I've refactored the API a bit to reflect the requirements for state queries, and include some sanity checks. The actual fix for the issue is to delay the state change until the tree is fully reconstructed, by letting the tree-items pass a callback to check if they should be active.
2021-10-05Cleanup: Better way to pass activate callbacks to Tree-View itemsJulian Eisel
The `ui::BasicTreeViewItem` took a function-like object to execute on item activation via the constructor. This was mainly intended to be used with lambdas. However, it's confusing to just have this lambda there, with no indication of what it's for (activation). Instead, assign the function-like object via an explicit `on_activate()` function.
2021-10-05Cycles: Fix wrong GPU state calculationSergey Sharybin
Currently was only used for logging, but better to fix the size so that it matches reality. The issue was caused by decoupling number of shadow intersections and using much higher number for CPU. This caused the total state on GPU to be logged as 10s of gigabytes instead of 100s of megabytes. Differential Revision: https://developer.blender.org/D12755
2021-10-05Cleanup: Geometry Nodes dashed linesDalai Felinto
No functional change, just cleaning up the shader code a bit. Part of this is removing dead code (the discard was never called), and part is shuffling mix/max around based on feedback by Sybren Stüvel.
2021-10-05Cycles: improve detection of HIP compiler for buildbotBrecht Van Lommel
And fix various broken things in the HIP kernel compilation.
2021-10-05Fix T91955: Cycles crash with denoising on non-available deviceSergey Sharybin
For example, crash when attempting to use OptiX denoiser on systems without OptiX-capable device. Perform check that scene update happened without errors. Note that `et_error` makes progress to cancel, so the code was simplified a bit.
2021-10-05Fix T86379: When using "Append" not handling properly RigidBody constraintsBastien Montagne
This was simply never handled apparently. Also fixes a regression from recent append refactor that prevented RB objects to to properly handled too (since we instantiate loose objects in append step now, we need to handle RigidBody ones after that instantiation stage, otherwise nothing will happen since loose objects won't be in any scene).
2021-10-05Silenced compilation warning when compiling using ASAN.Jeroen Bakker
2021-10-05Fix memory leak when running test cases.Jeroen Bakker
Issue is that test cases re-uses draw manager. The new `DRWRegisteredDrawEngine` struct is only freed when a valid opengl context was found. what isn't the case when running test cases. Also made sure that re-using draw manager would use re-inited values.
2021-10-05Cleanup: remove unused parameterPeter Kim
2021-10-05DRW: Move buffer & temp textures & framebuffer management to DrawManagerClément Foucault
This is a necessary step for EEVEE's new arch. This moves more data to the draw manager. This makes it easier to have the render or draw engines manage their own data. This makes more sense and cleans-up what the GPUViewport holds Also rewrites the Texture pool manager to be in C++. This also move the DefaultFramebuffer/TextureList and the engine related data to a new `DRWViewData` struct. This struct manages the per view (as in stereo view) engine data. There is a bit of cleanup in the way the draw manager is setup. We now use a temporary DRWData instead of creating a dummy viewport. Development: fclem, jbakker Differential Revision: https://developer.blender.org/D11966
2021-10-05XR: Add runtime window area for XR eventsPeter Kim
This adds an offscreen View3D window area for the VR view in order to execute XR events/operators in the proper context. The area is created as runtime data before XR events are dispatched and set as the active area during XR event handling. Since the area is runtime-only, it will not be saved in files and since the area is offscreen, it will not interfere with regular window areas. The area is removed with the rest of the XR runtime data on exit, file read, or when stopping the VR session. Note: This also adds internal types (EVT_DATA_XR, EVT_XR_ACTION) and structs (wmXrActionData) for XR events. Reviewed By: Severin Differential Revision: https://developer.blender.org/D12472
2021-10-05Fix syntax error in caac5325656294e7276fee60edbd575b123e8eb9Campbell Barton
2021-10-05Cleanup: add Params.select_tweak_eventCampbell Barton
Convenience, use for tool key-maps to avoid overly verbose expressions.