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
2019-12-03Cleanup: unused variablesCampbell Barton
2019-12-03Fix T72134: Adaptive UVs does not affect strokes that are already drawnAntonio Vazquez
Now when change the setting the strokes are recalculated. To do this, it was necessary to move the UV recalc to BKE module in order to share with Draw Engine. If the recalc it was done in draw engine, the factor was only calculated for evaluated version and there was a problem when draw a new sytroke. Now, the RNA parameter recalc the original datablock instead of tag for be calculated in Draw Engine.
2019-12-03DrawManager: Bounding Box DrawingJeroen Bakker
Fix for T72136: Bounding boxes were still drawn even with disabled overlays. Also the outline displayed the original mesh Reviewed By: fclem Differential Revision: https://developer.blender.org/D6350
2019-12-03Cleanup: rename textview ymin/maxCampbell Barton
This is used for scrolling which wasn't obvious.
2019-12-03Fix minor errors with text view margins for console/info editorCampbell Barton
- Margins used duplicate define between files. - Cursor selection ignored margins. - Cursor wasn't scaling with DPI. Add a 'draw_rect' member which is the region rect with margins applied to make these checks clearer. This resolves issue pointed out in D6300, which complicated further refactoring.
2019-12-03Overlay: Wireframe: Improve Z-fighting / missing information stipplingClément Foucault
To do this we do a half pixel offset in the normal direction. However, we use the shading vertex normal instead of the geometric normal (for speed) and this leads to imprecisions. So we try to mitigate the common case and leave the corner cases as is.
2019-12-03Overlay: Wireframe: Fix Edges not being culled correctlyClément Foucault
2019-12-02Overlay: Fix vertex discard issue on Nvidia hardwareClément Foucault
Instead of relying on undefined behavior to discard the line, we put the vertex at the camera origin so that interpolation does not produce any fragment. We don't use FLT_MAX as it also gives unpredicatble results on NVidia.
2019-12-02Overlay: Wireframe: Fix missing loose edges in object modeClément Foucault
2019-12-02Overlays: Fix dashed curves and loose edgesClément Foucault
2019-12-02Fix T72114 Overlays: Curves are not drawing anymore (objectmode)Clément Foucault
2019-12-02UI: rename "Toggle ..." back to "Show Markers"Alessio Monti di Sopra
Change made in recent show marker refactor dc87d09b8b324 On writing docs the term "Show" makes more sense.
2019-12-02Overlay: Armature: Fix Crash when selecting in edit armature modeClément Foucault
2019-12-02Overlay Engine: Make thickwires (linesize > 1.0) using the Wire AA passClément Foucault
This fixes the limitation of OSX not allowing glLineWidth with size > 1.0. This however only fix the viewport wire drawing.
2019-12-02Overlay Engine: Wireframe: Remove geometry shader and fragment discardClément Foucault
This Simplify and should also speedup the drawing a tiny bit. We now discard the edges in the vertex shader by setting one of the verts at vec4(0,0,0,0) to not produce any fragment
2019-12-02Fix T72071: Crash on snap to edgemano-wii
Caused when the vertices index is dirty due to some mesh editing operation like Extrude
2019-12-02Overlay Engine: Refactor & CleanupClément Foucault
This is the unification of all overlays into one overlay engine as described in T65347. I went over all the code making it more future proof with less hacks and removing old / not relevent parts. Goals / Acheivements: - Remove internal shader usage (only drw shaders) - Remove viewportSize and viewportSizeInv and put them in gloabl ubo - Fixed some drawing issues: Missing probe option and Missing Alt+B clipping of some shader - Remove old (legacy) shaders dependancy (not using view UBO). - Less shader variation (less compilation time at first load and less patching needed for vulkan) - removed some geom shaders when I could - Remove static e_data (except shaders storage where it is OK) - Clear the way to fix some anoying limitations (dithered transparency, background image compositing etc...) - Wireframe drawing now uses the same batching capabilities as workbench & eevee (indirect drawing). - Reduced complexity, removed ~3000 Lines of code in draw (also removed a lot of unused shader in GPU). - Post AA to avoid complexity and cost of MSAA. Remaining issues: - ~~Armature edits, overlay toggles, (... others?) are not refreshing viewport after AA is complete~~ - FXAA is not the best for wires, maybe investigate SMAA - Maybe do something more temporally stable for AA. - ~~Paint overlays are not working with AA.~~ - ~~infront objects are difficult to select.~~ - ~~the infront wires sometimes goes through they solid counterpart (missing clear maybe?) (toggle overlays on-off when using infront+wireframe overlay in solid shading)~~ Note: I made some decision to change slightly the appearance of some objects to simplify their drawing. Namely the empty arrows end (which is now hollow/wire) and distance points of the cameras/spots being done by lines. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6296
2019-11-30Fix T71213: Mask or Mirror before Armature breaks weight paint.Alexander Gavrilov
This is a revert of a small fraction of commit rB5e332fd700 that introduced the issue according to bisect. Doing a break here is wrong, because BKE_crazyspace_build_sculpt assumes that processing stopped at the first deform modifier without deformMatrices, and thus skips all modifiers until it finds one like that. Thus this early loop exit makes the behavior worse, as instead of skipping just Mask and Mirror, it skips all.
2019-11-30GPencil: Fix unreported error when frame is zero in Time modifierAntonio Vazquez
When the frame was zero, the frame number was clamped by error to 1.
2019-11-30GPencil: Fix unreported thickness does not scale when layer is parentedAntonio Vazquez
The thickness was using the object scale always, but when the layer is parented, must use the parented object scale.
2019-11-30Cleanup: remove unused NDOF iconsCampbell Barton
2019-11-30UI: allow to hide markers region per editorAlessio Monti di Sopra
Instead of having the option to show marker lines, make the marker region optional. - Added a Show Markers entry in the View menu of the animation editors. - If the markers region is not active then the Marker menu gets hidden. - Removed marker menu from the driver editor and don't allow to use marker operators.
2019-11-29Fix T72000: Key shortcuts unavailable in popoversCampbell Barton
2019-11-29Cleanup: Alembic: avoid unused parameter warningSybren A. Stüvel
2019-11-29Alembic export: assume that transforms are always animatedSybren A. Stüvel
This is a partial rollback of f18ad385dffe70f5e57df00ff9bbb7b42fa05be0. It turned out to be more tricky to determine animatedness of an object. This fixes T71986.
2019-11-29GPencil: Fix error when interpolate sequence strokes with weightsAntonio Vazquez
When the final stroke was smaller than original stroke, the weights array must be resized, but by error the function used the original stroke pointer instead of the new stroke pointer and this corrupted the pointers.
2019-11-29Fix T72024: Transform Snap: Alingn Rotation distorts objectmano-wii
Occurs in edit mode when object has no uniform scale.
2019-11-29Tests: prevent failing assertion when running blendfile-loading testSybren A. Stüvel
Loading a blendfile allocates one or more windows that need to be freed. Freeing those windows also calls `BKE_workspace_instance_hook_free()` to free workspaces. However, in the `BlendfileLoadingBaseTest` test there are no workspaces allocated. This caused an assertion failure, which was worked around by not asserting when Blender is running in background mode. Reviewed by @Severin via pair programming
2019-11-29Refactor: Make animated RNA value read/write more reusableSergey Sharybin
Currently unused, but needed for coming fix.
2019-11-29Cleanup: Remove unused functionSergey Sharybin
2019-11-29Depsgraph: Refactor, split runtime backup into smaller filesSergey Sharybin
It started to be a long code of all various cases in a single file, which started to be really confusing.
2019-11-29Refactor: Add C++ guard code to headersSergey Sharybin
C++ is used more and more, and it is becoming more and more annoying to keep track of whether header have C++ guard or not. Is easier and more clear to be consistent in all headers and have such guards in all headers.
2019-11-29Alembic: clarification of 'visible objects only' export option tooltipSybren A. Stüvel
The visibility of the object is what counts, not just the visibility of the collection.
2019-11-29Alembic: changed "Visible Layers" to "Visible Objects" in export optionsSybren A. Stüvel
There are no more 'layers' in Blender. I chose 'Visible Objects' rather than 'Visible Collections' to be consistent with the other '{Renderable,Selected} Objects Only' options. No functional changes.
2019-11-29Fix T71986: Alembic: object constraints animation no longer exportedSybren A. Stüvel
`AbcTransformWriter::hasAnimation` recently became smarter than just returning `true`, but wasn't quite smart enough yet. Constraints are now considered a source of 'animation'.
2019-11-29Fix T72013: Gpencil Interpolate strokes causes instant crash when material ↵Antonio Vazquez
list is empty The problem was the draw function tried to use the material and gpsettings and both were NULL. Now, the default material is used.
2019-11-29GPencil: Add missing Overlay modeAntonio Vazquez
The VERTEX mode was not checked in shaders and must be managed equals to MATERIAL mode.
2019-11-29EEVEE: CleanupJeroen Bakker
Remove redundant defines.
2019-11-29Cleanup: replace macros with functionsCampbell Barton
2019-11-293D View: fix NDOF rotation around object locking panCampbell Barton
2019-11-29Cleanup: comments, redundant normalizeCampbell Barton
2019-11-28Fix T71990: Apply bone transform results differ in edit/object modeCampbell Barton
When negative scaled matrices were used, the roll calculation didn't match, when calling Armature.transform().
2019-11-28Fix T71147 Eevee stops rendering after selection attemptClément Foucault
This is caused by the fallback path used by OSX, which is reconfiguring the same default VAO. But it seems to be an issue on certain drivers.
2019-11-28Fix T71558: Hair particles: Brush effect not occluded by emitter geometrymano-wii
2019-11-28Fix (unreported) broken python resgistrable classes checks logic.Bastien Montagne
Logic for registering and checking properties of registrable classes was broken, allowing to ignore some errors. Recent fix rBeb798de101a `broke` the result of the pyapi_idprop_datablock test, because previously that test would fail (i.e. suceed, as it is an 'expected to break test') for a reason it was not designed to check. This is the problem with that kind of tests - you cannot really check that they are failing on the expected reason(s)...
2019-11-28EEVEE: RenderLayersJeroen Bakker
Small change do not draw an unsupported renderpass in the viewport
2019-11-28EEVEE: Viewport RenderpassesJeroen Bakker
This patch will allow the user to select the EEVEE renderpass to be shown in the viewport by default the combined pass will be shown. Limitations: * Viewport rendering stores the result in a `RenderResult`. RenderResult is not aware of the type of data it holds. In many places where RenderResult is used it is assumed that it stores a combined pass and the display+view transform are applied. I will propose to fix this in a future patch. But that is still being designed and discussed. Reviewed By: fclem Differential Revision: https://developer.blender.org/D6319
2019-11-28BMesh: reduce memory usage existing edit-modeCampbell Barton
- Don't duplicate the original vertices. - Free old geometry before allocating the new geometry.
2019-11-28Fix separating mesh parts breaking vertex parents & hooksCampbell Barton
Follow up on T71865 which only reported the issue for shape keys.
2019-11-28NDOF: support panning when orbitingCampbell Barton
Also make orbit the default rotation mode. Based on feedback from T67579, this seems one of the main pain points users are experiencing.