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-11-13Cleanup: Make panel type flag names more clearHans Goudey
The overlap with the `Panel` flags that start with "PNL" was quite confusing because wasn't clear which enum a flag was from. The new names are a bit longer, but the clarity is worth it.
2020-11-13Cleanup: Move PanelType flag from DNA to BKE headerHans Goudey
Since this flag isn't saved in files and PanelType itself is defined in BKE, the flag makes more sense there.
2020-11-13GPencil: Remove ID from operators to fix T82597Antonio Vazquez
Instead to use the ID of the object, now the parameter is an Enum with Selected object or New. If use selected mode, the first grease pencil object selected is used. If none of the selected objects is a grease pencil object, a new object is created. Small cleanup changes to the original patch. Differential Revision: https://developer.blender.org/D9529
2020-11-13LibOverride: Adjust PointCache operators to properly handle overrides.Bastien Montagne
LibOverrides only support a small sub-set of PointCache features for now (one cannot add new caches, baking in memory is not supported...). Part of first step of T82503: support disk cache in liboverrides.
2020-11-13LibOverride: Do not tag overrides for complete recalc.Bastien Montagne
This was done as some sort of safety, but should not actually be needed, and including tags like `ID_RECALC_POINT_CACHE` e.g. makes usage of point caches impossible with liboverrides (since it would systematically invalidate all cache on file load). In theory we should not have to tag anything here in fact, RNA accessors are supposed to take care of it, but for now we keep the `ID_RECALC_COPY_ON_WRITE` one. Part of first step of T82503: support disk cache in liboverrides.
2020-11-13LibOverride: Make PointCache RNA properties overridable.Bastien Montagne
Note that due to convoluted layout of point caches in RNA (active one also storing list of all available ones), we'll often have the pointcache overrides rules twice. Should not be a huge problem, practically speaking. Part of first step of T82503: support disk cache in liboverrides.
2020-11-13Cleanup: use IMB_FTYPE_NONE instead of 0 for imbuf format comparisonCampbell Barton
Image format code checked the file type against an enum except for zero which is used when the format can't be detected. Also add doc-strings to some of the image file type callbacks.
2020-11-13Fix building after 2e53b646f6f02ab112e0823b9577ff2e1920faaeqCampbell Barton
2020-11-13GPencil: Remove "angle_split" from Multiply modifier.YimingWu
2020-11-13Object: show preview plane for add-object toolCampbell Barton
The orientation & depth settings are used to show the preview plane that is used when adding the object.
2020-11-13refactor vec_roll_to_mat3_normalized() for clarityGaia Clary
the function vec_roll_to_mat3_normalized() has a bug as described in T82455. This Differential is only for refactoring the code such that it becomes more clear what the function does and how the bug can be fixed. This differential is supposed to not introduce any functional changes. Reviewed By: sybren Differential Revision: https://developer.blender.org/D9410
2020-11-13UI: Adaptive HDRI preview resolutionIvan Perevala
HDRI preview should have resolution dependent on dpi, viewport scale and HDRI gizmo size. This patch uses a LOD to render a more round sphere. Reviewed By: Jeroen Bakker Differential Revision: https://developer.blender.org/D9382
2020-11-13Adding 3D_POLYLINE_UNIFORM_COLOR to PyGPU shader APIYimingWu
This would allow python script to access `lineWidth` uniform when drawing lines without using `glLineWidth`. Reviewed By: Jeroen Bakker Differential Revision: https://developer.blender.org/D9518
2020-11-13Fix CalculateStandardDeviationOperation incorrect results for R G B channelsManuel Castilla
Standard deviation formula wasn't being applied correctly when selecting R G B cases. Issue is there since Blender 2.64 as it was incorrectly ported over from the previous compositor. Reviewed By: Sergey Sharybin, Jeroen Bakker Differential Revision: https://developer.blender.org/D9384
2020-11-13Add An Opacity Slider to Overlay WireframeJun Mizutani
This patch adds an opacity slider to the wireframe overlay. The previous wireframe in dense geometry scenes could be too dark and sometimes the user just wants an impression of the geometry during modelling. Reviewed By: Jeroen Bakker Differential Revision: https://developer.blender.org/D7622
2020-11-13UI: make add object tool experimentalCampbell Barton
Some changes here are planned which need feedback from users before declaring this ready for the next release.
2020-11-13BLI_math: add floor_power_of_10, ceil_power_of_10Campbell Barton
Add utility functions to get the floor/ceiling of a float value to the next power of 10.
2020-11-13Cleanup: Remove unecessary logic in panel codeHans Goudey
Also use short for panel flag arguments to functions since it matches the type in DNA, and remove a comment that isn't helpful.
2020-11-13Cleanup: Simplify panel activate state functionHans Goudey
This commit moves some of the logic around so that the logic in panel_activate_state is clearly separated by the state being activated. There are fewer nested and redundant checks, and it's easier to see the progression of interaction with the panel handler.
2020-11-13Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-13Fix memory leak writing PNG when opening the file failsCampbell Barton
2020-11-13Cleanup: remove unnecessary ImFileType.ftype callbackCampbell Barton
This callback made some sense before moving the file-type information from a bit-flag to an enum: e142ae77cadf04103fbc643f21cf60891862f6a8 Since then, we can compare the type value directly. Also replace loops over file types with IMB_file_type_from_{ibuf/ftype}.
2020-11-13Cleanup: imbuf file format callback declarationCampbell Barton
Use named members as this wasn't very readable given the number of unnamed NULL members.
2020-11-13Fix T82349: file extension not added to unpacked imagesRobert Guetzkow
Ensure the appropriate extension is set when unpacking generated images that don't have a filepath set. Ref D9500
2020-11-13Fix T82596: Fly/walk navigation crashHans Goudey
Add a NULL check for the View3D's camera, because these modes can be entered even without an active camera.
2020-11-13Outliner: Sync with property editor physics tabHans Goudey
This commit makes the property editor switch to the physics tab instead of the modifier tab when selecting physics modifiers. Since the modifier isn't visible then, it's confusing to change the expansion, so this commit also disables the modifier expansion for these modifiers. Differential Revision: https://developer.blender.org/D9544
2020-11-12fix: added missing float declarationsGaia Clary
2020-11-12Test cases for vec_roll_to_mat3_normalizedGaia Clary
The function vec_roll_to_mat3_normalized() basically has to handle 3 scenarios: - When a bone is oriented along the negative Y axis - When a bone is very close to the negative Y axis - All other cases The tests in the Differential make sure that all 3 situations are covered. Reviewed By: sybren, mont29 Differential Revision: https://developer.blender.org/D9525
2020-11-12Merge branch 'blender-v2.91-release' into masterPhilipp Oeser
2020-11-12Fix asserts when two (or more) SplineIK constraints have the same rootPhilipp Oeser
Only a single DEG operation node `POSE_SPLINE_IK_SOLVER` should be added in this case [ see `build_splineik_pose`, same is already done for overlapping IK in `build_ik_pose`] ref T82347. Reviewers: sybren Maniphest Tasks: T82347 Differential Revision: https://developer.blender.org/D9471
2020-11-12Merge branch 'blender-v2.91-release'Sebastián Barschkis
2020-11-12Fluid: Removed clamp from force assignmentSebastián Barschkis
The clamp is too aggressive and results in forces being too weak.
2020-11-12Fix T81813: Keyframe handles don't follow keyframesWayde Moss
Add a new property `co_ui` to Keyframes, the modification of which will apply to the keyframe itself as well as its Bézier handles. Dragging the "Keyframe" slider in the properties panel now maintains the deltas between the keyframe and its handles, just like moving the key in the graph editor would. Reviewed by @sybren in T81813.
2020-11-12Merge branch 'blender-v2.91-release' into masterBastien Montagne
2020-11-12Fix T82466: Library Overrides: overrides disappear when appending.Bastien Montagne
`BKE_library_make_local` was not properly checking for tags and/or libs in liboverrides case.
2020-11-12Merge branch 'blender-v2.91-release' into masterPhilipp Oeser
2020-11-12Sculpt: fix face set extract clicking in empty spacePhilipp Oeser
Should not do anything in that case. ref T82615 Maniphest Tasks: T82615 Differential Revision: https://developer.blender.org/D9532
2020-11-12Sculpt: use ESC key in addition to RMB to cancel eyedropperPhilipp Oeser
This is more in line to other eyedropper usages throughout blender. Affected operators: - Sample Dyntopo detail - Extract Face Set (as reported in T82615) ref T82615 Maniphest Tasks: T82615 Differential Revision: https://developer.blender.org/D9531
2020-11-12Merge branch 'blender-v2.91-release' into masterPhilipp Oeser
2020-11-12Fix T82624: Skin modifiers root bone cannot be movedPhilipp Oeser
When creating an armature from the skin modifier, resulting bones would always be flagged BONE_CONNECTED. Those bones cannot be transformed (just rotated). Now only flag bones that really have a parent BONE_CONNECTED. Maniphest Tasks: T82624 Differential Revision: https://developer.blender.org/D9534
2020-11-12Fix T82388: Sculpt mode: Unexpected undo behavior.Bastien Montagne
Issue exposed by rB4c7b1766a7f1. Main idea is that non-memfile first undo step should check into previous memfile and tag the ID it is editing as `future_changed`. That way, when we go back and undo to the memfile, said IDs are properly detected as changed and re-read from the memfile. Otherwise, undo system sees them as unchanged, and just re-use the current data instead. Note that currently only Sculpt mode seems affected (probably because it is storing the mode switch itself as a Sculpt undo step instead of a memfile one), but similar action might be needed in some other cases too. Maniphest Tasks: T82388 Differential Revision: https://developer.blender.org/D9510
2020-11-12Merge branch 'blender-v2.91-release'Jeroen Bakker
2020-11-12Merge branch 'blender-v2.91-release'Jeroen Bakker
2020-11-12Fix T82093: Sampled Colors Mismatch When Painting (Partial)Jeroen Bakker
When painting in the image editor on data images (Non-color, Raw) the color mismatched between the sampled color and the actual effect that the painting has on the image. The root cause is that the sampling is color managed, but the painting still uses a fixed color management pipeline with a lot of assumptions. Due to recent changes the drawing of the image editor is color managed, but the painting isn't what made these changes show up. This patch is a work-a-round so that the sampled colors and the effect the paint has on the texture matches. This isn't the correct solution as that would be to migrate all the painting tools to use proper color management. Reviewed By: Pablo Dobarro Differential Revision: https://developer.blender.org/D9411
2020-11-12Fix T81673: Color picker picks up UI and OverlayJeroen Bakker
There are two implementations of the Sample Color operation. One is used by the paint texture and one by the image editor. The image editor variant sampled from the ibuf directly, but the paint texture variant was sampling from the screen front buffer. This can lead into incorrect samples due to color pipeline. This patch will use the image editor variant when sampling a color for 2d texture painting Reviewed By: Pablo Dobarro Differential Revision: https://developer.blender.org/D9408
2020-11-12Cleanup: split view3d_placement depth & orientation calculationCampbell Barton
Split out functionality needed for preview plane drawing.
2020-11-12Cleanup: clang-tidy, remove invalid commentsCampbell Barton
2020-11-12Cleanup: Imperative tense in property descriptionRichard Antalik
2020-11-12ImBuf: pass the number of bytes read to 'is_a' callbacksCampbell Barton
Previously the header was a fixed size and assumed to be zeroed. Now read in bytes up to `HEADER_SIZE`, pass the number or bytes read to the callback which must not read past those bytes.
2020-11-12Cleanup: RNA ID enum utility functionCampbell Barton
- Avoid calling `GS(id->name)` on each iteration. - Remove unused arguments. - Pass `const ID *` to the filter callback.