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-07-30Cleanup: GPU: Remove GPU_draw.h and move fluid gpu function to DRWClément Foucault
2020-07-30Cleanup: Split gpu_texture_image.c into BKE and IMB modulesClément Foucault
This is in order to disolve GPU_draw.h into more meaningful code blocks. All the Image related function are in `image_gpu.c`. All the MovieClip related function are in `movieclip.c`. The IMB module now has a connection with GPU. This is not strickly necessary and the code could be move to `image_gpu.c` if needed. The Image garbage collection is also ported to `image_gpu.c`.
2020-07-29GPU: Refactor gpu_texture_image to not use GL callsClément Foucault
This is also a bit of code cleanup, reorganisation. Tried to be DRYed but avoid too much code change to (hopefully) minimize breakage. - GPU: remove TEXTARGET_CUBE_MAP, this is no longer used in the codebase. - GPUTexture: Move compressed texture upload to gpu_texture.cc - GPUTexture: Add per texture Anisotropic filtering switch
2020-07-29Cleanup: declare static variablesCampbell Barton
2020-07-28Merge branch 'blender-v2.90-release'Jacques Lucke
2020-07-28Cleanup: correct usage of extern-C blocks in various placesJacques Lucke
This removes extern-C blocks around other includes and adds such blocks for some headers that need them.
2020-07-27Cleanup: Fix compiler warning about function without prototypeSybren A. Stüvel
No functional changes.
2020-07-26Cleanup: GPU: Remove glew headers part2Clément Foucault
2020-07-26GPU: Remove GL constant from BIF_glutilClément Foucault
2020-07-26Cleanup: GPU: Remove GPU_glew.h outside of GPU moduleClément Foucault
Remove use of GL* constants and types inside the codebase. There is still a few occurence to get rid of.
2020-07-24Merge branch 'blender-v2.90-release'Jacques Lucke
2020-07-24Allocator: make leak detection work with static variablesJacques Lucke
When definining static variables that own memory, you should use the "construct on first use" idiom. Otherwise, you'll get a warning when Blender exits. More details are provided in D8354. Differential Revision: https://developer.blender.org/D8354
2020-07-23Merge branch 'blender-v2.90-release'Julian Eisel
2020-07-23Fix: Incorrect VR pose after changing landmarkJulian Eisel
Once the base pose was changed (e.g. by changing the active landmark), we'd always run the logic to reset to the base pose. That would mess up the final viewer pose. Think this only got exposed through 607d745a79e0.
2020-07-23Merge branch 'blender-v2.90-release'Bastien Montagne
2020-07-23LibOverride: Add update of overrides when reloading library data.Bastien Montagne
Pretty straight-forward, although it does not rebuild relationships (this is a heavy process we do not want to automate for now, will be a separate operator in near future). Fix T78179: Library Overrides - Additional geometry not updating without reloading scene.
2020-07-23Fix (unreported) crash in reload library code related to shpaekeys.Bastien Montagne
Once again, we need lots of unatural twisting and convolutions to get those nasty things to work... Note that in previous versions of Blender, this would not crash, but was still broken (shapekeys were never actually reloaded from libraries).
2020-07-22Cleanup: Fix strict compiler warningSergey Sharybin
2020-07-22GPU: clear color with 1.0 alphaChristian Rauch
This impacts GHOST/Wayland which draws windows using alpha.
2020-07-22VR: Change how landmarks affect viewer poseJulian Eisel
* Changing to a landmark moves the view exactly to it, rather than keeping the current position offset. * Disabling positional tracking moves the viewer back to the landmark position. This is a more predictable and practical way to use landmarks. See feedback in T71347. On the code side, I did some cleanup so the logic flow is more clear. Note: This is entirely untested. I currently don't have access to a device. There might be issues, tomorrow I'll hopefully get feedback.
2020-07-20Fix T79107: Crash changing brush size in GPencil sculptAntonio Vazquez
Reviewed By: fclem Maniphest Tasks: T79107 Differential Revision: https://developer.blender.org/D8353
2020-07-18Cleanup: unused warningCampbell Barton
2020-07-18Cleanup: WM: Encapsulate stereo draw buffers bindingClément Foucault
2020-07-18Cleanup: GPU: Encapsulate scissor testClément Foucault
2020-07-18Cleanup: GPU: Encapsulate glScissorClément Foucault
2020-07-18Cleanup: GPU: Encapsulate glViewport callsClément Foucault
2020-07-18Cleanup: WM: Use GPUTexture for radial control drawingClément Foucault
2020-07-18Cleanup: GPU: Set default GL_UNPACK_ALIGNMENT to 1Clément Foucault
Ogl default is 4 but for almost all cases, blender use tightly packed format. This avoid confusion and state change for the common case. The only case that __might__ need alignement is DDS loader (untested) so leaving this as it is.
2020-07-18Cleanup: GPU: Replace glBlendFunc by GPU equivalentClément Foucault
2020-07-17Fix T78959: Show current frame indicator when interface is lockedHans Goudey
When the playhead drawing moved to an overlay, a check was added to keep it from drawing with a locked interface. This is necessary for some overlays, but not this one, so this removes the check, making it the responsibility of the editor. A context function is added to make that check easier in the future. Differential Revision: https://developer.blender.org/D8313
2020-07-16Cleanup: WM: Use GPUTexture API instead of raw ogl callsClément Foucault
2020-07-16Cleanup: GPU: Move depth/color masks functions to GPU_stateClément Foucault
2020-07-16Cleanup: GPU: Move quad buffer stereo check to GPU moduleClément Foucault
2020-07-16Cleanup: GPU: Replace all glReadPixels by GPU equivalentClément Foucault
2020-07-16Cleanup: Port glClear calls to GPU module functionsClément Foucault
2020-07-13Fix T78037: fresh install of blender 2.83.0 not able to save user startup file.Bastien Montagne
Simply remove that check ob userdef's themes, we are never read any userdef from startup file anymore, so this check makes no more sense. To be backported to 2.83.
2020-07-13Clang Tidy: enable readability-non-const-parameter warningJacques Lucke
Clang Tidy reported a couple of false positives. I disabled those `NOLINTNEXTLINE`. Differential Revision: https://developer.blender.org/D8199
2020-07-07Cleanup: spellingCampbell Barton
2020-07-06Fix T77730: ShaderFx Missing Update NotifierHans Goudey
This adds a notification type for shaderfx so the properties editor can be properly notified to redraw. Another possible solution would be to also redraw the shaderfx tab with a ND_MODIFIER update, but this solution allows us to avoid some unecessary redraws too. There were no existing cases of ND_OBJECT | NC_MODIFIER updates, so those cases were removed from buttons_area_listener. Differential Revision: https://developer.blender.org/D8159
2020-07-03Clang-Tidy: Enable readability-redundant-control-flowHans Goudey
2020-07-02GPUOffScreen: Remove the sample parameterClément Foucault
This is because the DRW module is no longer compatible with drawing using MSAA. This also change the Python API.
2020-07-01Fix missing GPU image free in background modeBrecht Van Lommel
This is legacy code from before Eevee and Workbench rendering in background mode was supported. Avoid memory leak by only queueing GPU textures to be freed when we know they have been allocated. Differential Revision: https://developer.blender.org/D8172
2020-07-01UI: use term 'Current Frame' instead of 'Playhead'Campbell Barton
Keep terminology consistent, 'Current Frame' is used nearly everywhere.
2020-07-01Cleanup: spellingCampbell Barton
2020-06-30Fix T77825: autosave missed too often while sculptingBrecht Van Lommel
Previously if a modal operator is active, which might leave Blender in a state where it's not safe to autosave, it would try again in 10s. Now try again in 10ms so it's much less likely to be missed, since overhead of such a timer is negligble anyway. Also remove the debug print that was added to investigate a bug at some point.
2020-06-27Docs: correct invalid doxygen params & referencesCampbell Barton
2020-06-23Fix T77830: Crash in VR session when opening material previewJulian Eisel
Draw-manager mutex has to be set before activating OpenGL/GPU context. Otherwise, parallel jobs (like preview rendering) may try to activate the context from another thread. Also: Use WM wrappers for activating/releasing OpenGL context, which have an additional assert check. Suggest to backport this for 2.83.1.
2020-06-23Cleanup: renamed `do_draw_overlay` to `do_draw_paintcursor`Jeroen Bakker
To make a better distinction with region overlay.
2020-06-23Performance: Draw play head as an overlayJeroen Bakker
When playing back animations a playhead is updated in all the animation editors. The drawing of the playhead is part of the drawing of the main region `RGN_TYPE_WINDOW` that redraws the whole region. This change will draw the play head and window scrollers when updating the screen. This affects the Action editor, Timeline, Graph editor, NLA editor and Sequence editor. There is noticeable speedup when using complex animation files. Spring 02_020_A.anim.blend fps went from 11.8 to 12.5 when showing a timeline and a action editor on a Ryzen 1700. * When playing back animation the markers don't jump up/down when near the frame. This could be added back. Reviewed By: Brecht van Lommel Differential Revision: https://developer.blender.org/D8066
2020-06-23Cleanup: rename 'name' to 'filepath' for DNA typesCampbell Barton
Using 'name' for the full path of a file reads badly, especially when id.name is used in related code.