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-06-04Cleanup: remove window manager argument for paint cursor APICampbell Barton
This caused an additional argument when exiting object modes and many other low level functions which don't need to access context. This simplifies fixing T77073.
2020-06-04Cleanup: move auto-execute operators into userpref_ops.cCampbell Barton
2020-06-04Cleanup: update sections for wm_files.cCampbell Barton
2020-06-03Eyedropper: Support get samples from other windowsGermano Cavalcante
This fix T77226 Differential Revision: https://developer.blender.org/D7910
2020-06-03Fix T67577: Add-on unregister can't access preferences on factory resetCampbell Barton
2020-06-03Cleanup: remove redundant call to addon_utils.reset_all()Campbell Barton
This is already called by wm_homefile_read
2020-06-03Cleanup: move shared functionality to wm_file_read_preCampbell Barton
This matches wm_file_read_post.
2020-06-03Cleanup: minor changes to wm_homefile_readCampbell Barton
Move app_template assignment to the top of the function, this simplifies further changes.
2020-06-02Cleanup: unused argumentCampbell Barton
2020-06-02Revert "Fix T67577: Add-on unregister can't access preferences on factory reset"Campbell Barton
This reverts commit f18ed7ad890ee5c89fc6e6a22e76c732fb5fc1bc. Better leave the fix for 2.9 series.
2020-06-02Cleanup: GPU: Remove GPU_shaderinterface_uniform_ensureClément Foucault
2020-06-01Merge branch 'blender-v2.83-release'Campbell Barton
2020-06-01Cleanup: clang-formatCampbell Barton
2020-06-01Fix T67577: Add-on unregister can't access preferences on factory resetCampbell Barton
2020-05-31Remove leftover debugging codeGermano Cavalcante
2020-05-30Cleanup: Initialize gizmo snap keymap before usingGermano Cavalcante
2020-05-29Merge branch 'blender-v2.83-release'Brecht Van Lommel
2020-05-29Blender: change bugfix release versioning from a/b/c to .1/.2/.3Brecht Van Lommel
The file subversion is no longer used in the Python API or user interface, and is now internal to Blender. User interface, Python API and file I/O metadata now use more consistent formatting for version numbers. Official releases use "2.83.0", "2.83.1", and releases under development use "2.90.0 Alpha", "2.90.0 Beta". Some Python add-ons may need to lower the Blender version in bl_info to (2, 83, 0) or (2, 90, 0) if they used a subversion number higher than 0. https://wiki.blender.org/wiki/Reference/Release_Notes/2.83/Python_API#Compatibility This change is in preparation of LTS releases, and also brings us more in line with semantic versioning. Fixes T76058. Differential Revision: https://developer.blender.org/D7748
2020-05-28Gizmo: add flag for gizmos to ignore keymap eventsCampbell Barton
Needed for the snap gizmo not to steal mouse events from the tool.
2020-05-27UI: Skip unnecessary cursor settingKonrad Puklicki
Currently, in sculpting, weight paint and vertex paint modes every cursor movement triggers redraw of a brush. During that redraw, native cursor is set. Under the hood, setting the cursor causes freeing of previous cursor and allocating a new one. In most cases, in previously mentioned modes, recreating cursor is unnecessary since cursor stays the same. This patch adds a check which skips cursor change if requested cursor is already set. The check could be added in pain_cursor.c, but I felt adding it inside WM_cursor_set function would hopefully skip more unnecessary cursor reallocations. Differential Revision: https://developer.blender.org/D7828 Reviewed by: Julian Eisel
2020-05-27Gizmo: add flag to disable tooltipCampbell Barton
For some gizmos that follow the mouse cursor, this gets in the way.
2020-05-27Cleanup: pass const wm for WM_keymap_activeCampbell Barton
2020-05-26Cleanup/refactor: Workspace API, boilerplate code, early exitJulian Eisel
* Simplify workspace API a bit * Comment on behavior of workspace-layout relations where exposed in API * Remove annoying getters/setters * Avoid lookups if we can early exit * A NULL check is removed in `direct_link_workspace()` that I don't see a need for. Am not 100% sure though, fingers crossed. In general these changes should improve readability and make things easier to reason about.
2020-05-26Fix T76926: Crash with Full Screen file browser window preferenceJacques Lucke
Alternative fix for T75292 & T73579 (see b75ce05c3b0f), that does not cause this crash. The crash happened because cancelling the file browser removes its screen (as in bScreen). Before rBb75ce05c3b0f, the file browser event wouldn't be handled any further then. After it, it would still be passed to other areas, while the screen pointer was dangling. Now the event is only skipped for UI handlers. Reviewed by: Julian Eisel
2020-05-25Fix T76926: Crash with Full Screen file browser window preferenceJacques Lucke
Alternative fix for T75292 & T73579 (see b75ce05c3b0f), that does not cause this crash. The crash happened because cancelling the file browser removes its screen (as in bScreen). Before rBb75ce05c3b0f, the file browser event wouldn't be handled any further then. After it, it would still be passed to other areas, while the screen pointer was dangling. Now the event is only skipped for UI handlers. Reviewed by: Julian Eisel
2020-05-25VR: Fix big performance bottleneck for simple scenesJulian Eisel
Blender's main loop puts the main thread to sleep for 5ms if no user input was received from the OS. We never want that to happen while the VR session is running, which runs on the main thread too. For simpler scenes, where the viewport already draws fast, this may have quite some impact. E.g. in my tests, the classroom scene went from ~55 to quite stable 90 FPS in solid mode (total render time as measured and averaged by Windows Mixed Reality utilities). With Eevee, it only went from 41 to 47 FPS. In complex files, there's barely a difference. E.g. less than 1 FPS increase in a Spring file (both Solid mode and Eevee).
2020-05-25Merge branch 'blender-v2.83-release'Campbell Barton
2020-05-25Fix T77031: Blender as pymodule crashes when renderingCampbell Barton
No longer enforce WITH_HEADLESS when building as a Python module as it disables GPU access which is needed for rendering.
2020-05-24VR: Fix big performance bottleneck for simple scenesJulian Eisel
Blender's main loop puts the main thread to sleep for 5ms if no user input was received from the OS. We never want that to happen while the VR session is running, which runs on the main thread too. For simpler scenes, where the viewport already draws fast, this may have quite some impact. E.g. in my tests, the classroom scene went from ~55 to quite stable 90 FPS in solid mode (total render time as measured and averaged by Windows Mixed Reality utilities). With Eevee, it only went from 41 to 47 FPS. In complex files, there's barely a difference. E.g. less than 1 FPS increase in a Spring file (both Solid mode and Eevee).
2020-05-21Merge branch 'blender-v2.83-release'Campbell Barton
2020-05-21Cleanup: add doxy sections for event queue handlingCampbell Barton
The main function to handle events didn't have it's own section.
2020-05-20UI: Allow registering File Browser as child of other child windowsJulian Eisel
E.g. when opening the File Browser from the Preferences window, it would be the child of the main window the Preferences belong to. Now it can be a child of the Preferences window itself. The File Browser always stays on top of its parent window. Which avoids some issues with OS window management, see T76418 and T72693. Also removes a now unnecessary workaround to move the child window back to the front after closing the file browser (opening the file browser would move the main window and the file browser to the front). Fixes T76418, T72693.
2020-05-20Merge branch 'blender-v2.83-release'Campbell Barton
2020-05-20Fix T76794: Number button cursor overrides eyedropper cursorCampbell Barton
Pressing 'E' over a number button to pick a distance was keeping left-right arrows instead of using the eye-dropper cursor. Workaround this by clearing the active button before setting the cursor.
2020-05-20Merge branch 'blender-v2.83-release'Campbell Barton
2020-05-20Fix the current pixelsize impacting thumbnailsCampbell Barton
2020-05-19Merge branch 'blender-v2.83-release'Philipp Oeser
2020-05-19Fix T73169: Side by Side Stereo Rendering GlitchesJeroen Bakker
Side by side and top down views were rendered using an unset matrix. This fix will reset the matrix just before copying the views to the screen. Reviewed By: Clément Foucault, Dalai Felinto Differential Revision: https://developer.blender.org/D7777
2020-05-18Refactor: Move WindowManager and Screen foreach_id to new IDTypeInfo structure.Bastien Montagne
That one was a bit more complicated, and is still only partial refactor (ultimately we want to have a foreach_id callback in SpaceType itself I think...).
2020-05-18OpenSubdiv: Cleanup, Remove from legacy SubsurfCCG codeSergey Sharybin
The CPU side implementation is done on a new dedicate base ground. The GPU side must be redone anyway.
2020-05-18Cleanup: Put GPU_state_init inside gpu_state.cClément Foucault
Also put glDisable(GL_DITHER) in it since we don't even use it (but is enabled by default). Also leave GL_MULTISAMPLE on by default since it has no impact on non-MSAA framebuffers.
2020-05-18Merge branch 'blender-v2.83-release'Campbell Barton
2020-05-18Fix T75292: File-select events not handled while modal handler is activeJacques Lucke
Reviewers: Severin Differential Revision: https://developer.blender.org/D7720
2020-05-14Merge branch 'blender-v2.83-release'Clément Foucault
2020-05-14UI: Fix Unreported missing background for azone arrowClément Foucault
This was caused by the sRGB viewport changes. The fix is to modify the alpha values manually. The shader was also missing a srgb fix.
2020-05-14Merge branch 'blender-v2.83-release'Campbell Barton
2020-05-14Merge branch 'blender-v2.83-release'Campbell Barton
2020-05-14Fix T76732: Error detecting modifier key clicksCampbell Barton
At the time of checking, the previous type isn't the last key pressed.
2020-05-14WM: include previous value, type in event printingCampbell Barton
2020-05-14Cleanup: sync clang-format with masterCampbell Barton
Avoid noisy diff's & conflicts.