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-09-21Various fixes in UI messages.Bastien Montagne
Along some other typos in comments or variable names.
2020-09-21Cleanup (UI): Early-exit rather than having a big-ish conditional bodyJulian Eisel
It's generally considered a better codestyle to check conditions early and exit early when they are not met, over having most logic of a function within a big `if`-block. Otherwise people have to go over the entire block to see if there's possibly an `else` somewhere, or any followup logic.
2020-09-21Fix T80854: Search buttons fail in Adjust Last Operation PanelJulian Eisel
There's the old and ugly hack where the `uiBut.poin` points to the button itself. When reallocating the button we have to update that pointer of course.
2020-09-21Cleanup: move some paint helpers to ED_ 'namespace'.Bastien Montagne
Those two functions had `BKE_` prefix, were defined in BKE headers, but implemented in ED code, yuck. Moved everything to ED area for now, since those do not look fondamental enough to belong to BKE, and none of their usages requires it currently.
2020-09-21Fix T79373: Forbid painting on linked image from 3DView.Bastien Montagne
As noted by @lichtwerk (thanks), one can have a local object and/or material using a linked image data-block, this case needs some different handling to prevent painting on such linked image. For now, tweak `BKE_paint_proj_mesh_data_check` (eeeek, that name prefix!) to consider paintslots with linked image as 'non-existing'.
2020-09-21Add missing new liboverride option to py-defined collections props doc.Bastien Montagne
2020-09-21Cleanup: Remove weird assert in button handlingJulian Eisel
The function this was in already checks the conditions under which it can operate (as it should). No need to force the caller to do these (quite specific) checks, the function can just do nothing if the button doesn't need these operations. Otherwise we'd have to always execute these checks before calling, which makes calling it a hassle, makes the code harder to follow and generally harder to maintain (what if the conditions change?).
2020-09-21Fix assert failure when using Ctrl+Mousewheel on Object Mode buttonJulian Eisel
Do a proper check to see if the button supports Ctrl+Mousewheel cycling. See T80659.
2020-09-21Fix datatoc_icon linker errors with ASan enabled.Ankit Meel
Error introduced in {rBf9fcb25d521d}. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8964
2020-09-21Implement ID properties support for TimeMarkerSergey Sharybin
Allows scripters to store additional information in the marker itself instead of using work-around approach based on marker names and such. Differential Revision: https://developer.blender.org/D8944
2020-09-21Fix T79965: mesh.transform() modifies referenced layersSergey Sharybin
Originally was noticed when transforming mesh created by object.to_mesh() from an object without modifier, in which case the result references CustomData layers used by the object itself. The issue goes a bit deeper: mesh.transform() should never modify referenced layers, hence it should duplicate referenced layers. This fix changes one specific aspect of the reported behavior. The case where vertices coordinates are modified manually will still have affect on the source mesh (as no referenced CustomData layers are being duplicated). Proper fix for this case is not yet clear to me. Differential Revision: https://developer.blender.org/D8939
2020-09-21Fix T80931: Proporional Editing Cursor Draws IncorrectJeroen Bakker
The incorrect view was setup so it was drawn in pixel space. This patch changes it to use UV space.
2020-09-21Fix T79373: Forbid painting on linked image.Bastien Montagne
There is just no reason to support that kind of useless behavior. Some remote TODO could be to define a process based on liboverride and layers.
2020-09-21Fix T59272: dead particles not included in render, but visible in viewportJacques Lucke
The issue was that the pointcache was not storing dead particles, even though they are displayed. This lead to the rendering issue, because only alive particles can be read from the point cache in the frame that is rendered. This also fixes an issue unrelated to rendering: when dead particles are displayed, their position is incorrect when some frames are skipped during playback. Reviewers: brecht Differential Revision: https://developer.blender.org/D8907
2020-09-21Cleanup: Sculpt/Paint ED code: correct return constant types.Bastien Montagne
Mainly use false/true for bool, but also a few others. No change in behavior expected.
2020-09-21Fix T66614: Text objects: Truncate overflow for non-top aligned textDalai Felinto
2020-09-21Cleanup: correct naming IMAGE_Z_DEPTHJeroen Bakker
IMAGE_DEPTH is used for bit depth.
2020-09-21Fix T80520: Tris to Quads ignores UV delimit optionmano-wii
2020-09-21Cleanup: balance braces, spellingCampbell Barton
Keep braces balanced where possible, even with ifdef's as it avoids confusions with editors calculating correct indentation level & finding matching brackets.
2020-09-20Fix T80993: Crash duplicating inactive workspaceHans Goudey
We need to check for the property editor's runtime struct before duplicating it.
2020-09-20Fix broken Windows buiilds after own recent commit in read/write code.Bastien Montagne
Usual issue of win32 not following POSIX standards.
2020-09-20Fix (unreported) wrong definition of `ssize_t` for windows.Bastien Montagne
Since at least MSVC2010 there is a `SSIZE_T` available for windows, use it to typedef `ssize_t` on this platform.
2020-09-20Sanitize type 'size' parameters in our read/write file codeBastien Montagne
This patch tries to sanitize the types of our size parameters across our read and write code, which is currently fairly inconsistent (using `int`, `uint`, `size_t`...), by using `size_t` everywhere. Since in Blender file themselves we can only store chunk of size `MAX_INT`, added some asserts to ensure that as well. See {T79561} for details. Differential Revision: https://developer.blender.org/D8672
2020-09-20LibOverride: add checks to RNA collections editing utils.Bastien Montagne
Collections of liboverride data only support insertion of new items (and deleting or moving those around). No operation on existing items from linked data is allowed. Reflect that in RNA functions used to edit py-defined RNA collections. Note that this is not ideal currently, it does the job but feedback to user is rather poor. Ideally add-ons should implement higher-level checks for override cases in their operators.
2020-09-20Cleanup: Correct comment in newly added liboverride code for IDProp collections.Bastien Montagne
2020-09-20LibOverride: expose `PROPOVERRIDE_LIBRARY_INSERTION` to py-defined properties.Bastien Montagne
This will allow add-ons to define Collection properties that support item insertion in library override context.
2020-09-20LibOverride: support inserting items in py-defined (IDProp-based) collections.Bastien Montagne
Supporting IDProperty-based data storage here in a generic way is fairly simple, unlike actual RNA data (DNA-based), for which getting a proper generic way to duplicate them from within RNA is currently not really possible. Part of T79562.
2020-09-20RNA access: Add utils to search a collection item from its name, and get ↵Bastien Montagne
both item pointer and its index in the collection.
2020-09-20IDProperties: Add utils to duplicate content of one IDProp into another.Bastien Montagne
2020-09-20Fix a wrong return type (float instead of double) in double2.hhHoward Trickey
2020-09-20Fix T80982: Crash using custom orientations beside the firstCampbell Barton
Regression in f7829787da5c64b3fa715a042c2a45ecd4314676
2020-09-20Cleanup: Fix clang tidy inconsistent parameter warningHans Goudey
2020-09-20Fix invert vertex group weight miscalculation for modifiersCody Winchester
Warp & weight vertex-group editing modifiers miscalculated vertex weight inversion, the weights were multiplied before being subtracted from 1. Ref D8241
2020-09-20Fix T80945: Build modifier not updating after outliner copyNathan Craddock
Build modifiers linked or copied to objects from the outliner would not animate until the file was saved and reopened due to a missing depsgraph relations tag.
2020-09-20Cleanup: Use shorthand variablesHans Goudey
We don't use the other variables in the sorting struct, so we might as well use the panels directly.
2020-09-19GPencil: Change tooltip for Holdout optionAntonio Vazquez
2020-09-19Cleanup: use parenthesis for if statements in macrosCampbell Barton
2020-09-19Cleanup: consistent TODO/FIXME formatting for namesCampbell Barton
Following the most widely used convention for including todo's in the code, that is: `TODO(name):`, `FIXME(name)` ... etc.
2020-09-19Cleanup: spellingCampbell Barton
2020-09-19Fix T80880: Outliner colored hierarchy lines on objectsNathan Craddock
Expanded objects with children immediately after a colored collection would have the color applied to their hierarchy lines as well. The fix is to reset the collection color to `COLLECTION_COLOR_NONE` for each open subtree.
2020-09-19EEVEE: Fix Missing GGX multi-scattering on Glass BSDFClément Foucault
Oversight that should have been in rB6f3c279d9e70
2020-09-19EEVEE: Add support for GGX Multi-scatterClément Foucault
Based on http://jcgt.org/published/0008/01/03/ This is a simple trick that does *not* have a huge performance impact but does work pretty well. It just modifies the Fresnel term to account for the multibounce energy loss (coloration). However this makes the shader variations count double. To avoid this we use a uniform and pass the multiscatter use flag inside the sign of f90. This is a bit hacky but avoids many code duplication. This uses the simplification proposed by McAuley in A Journey Through Implementing Multiscattering BRDFs and Area Lights This does not handle area light differently than the IBL case but that's already an issue in current implementation. This is related to T68460. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8912
2020-09-19Fix T79557 EEVEE: Normalize in vector math node is not null vector safeClément Foucault
This add basic null safe handling for this operation.
2020-09-19Property Search: Don't set expansion for panels in inactive tabsHans Goudey
The search should check if a panel is active before changing its expansion, otherwise it sets the expansion for all of the region's panels, even invisible ones in other tabs.
2020-09-18GPUShader: Fix wide line emulation with flat color interpolation.Clément Foucault
This was causing flashing colors in the node editor grid. This is because in some cases the flat color is only set on the provoking vertex which is the last of the primitive by default.
2020-09-18GPUImmediate: Add system wide workaround for wide lineClément Foucault
This makes wide line supported on MacOS and other implementation that does not support wide line by default. This workaround works for all Line types but only if using one of the 5 default shaders. The workaround is completely isolated and invisible to the outside. It has no side effect. Note: This does not affect the GPUBatch drawing.
2020-09-18UI: Use property split in UV editor panelsHans Goudey
This is not an exhaustive change, just for the 2D cursor and UDIM grid properties. Also vertically align the "UV Vertex" buttons like in the 3D view panels.
2020-09-18Fix misalignment of menu items in Preferences > Save & Load menuJulian Eisel
Checking for the layout alignment is not a reliable way to filter out which items need the additional icon/text offset. Instead check if the buttons are icon-only (which we rarely do, e.g. for collection colors in the Outliner context menu).
2020-09-18Cleanup: Resolve warningsJulian Eisel
Unused variables, missing include for declaration, missing 'static' specifier. Also rename function to match naming convention.
2020-09-18UI: Support interacting with superimposed icons while editingJulian Eisel
For example you can now start entering text in the Properties or Outliner search, and press the 'x' while the button is still in text-edit mode. This way you don't have to exit text editing first, before being able to quickly clear the string with a mouse click. So this is a small improvement for convenience. It also works for the eyedropper (change to picking an object while text editing) or the '+' and '-' icons in the file saving dialog.