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-19Fix: Crash when closing window while Outliner shows screensJulian Eisel
Steps to reproduce were: * From factory settings, change Outliner Display Mode to "Blender File" * Open "Screens" item, make sure all listed screens are visible * Open Preference window, close it * Mouse hover the outliner -> crash Fix is to force an Outliner tree rebuild when closing screens.
2020-06-19Writefile: move file flags to BlendFileWriteParamsCampbell Barton
This removes G_FILE_HISTORY, G_FILE_SAVE_COPY & G_FILE_USERPREFS. Using file-flags made logic harder to follow since it's not so clear which flags are expected to be in G.fileflags & which are meant to be set and passed as arguments, these are shared between read & write functions too. Add BlendFileWriteParams so options which don't need to be stored aren't mixed up with flags that are stored for reuse.
2020-06-19Fix app-templates not resetting the user interfaceCampbell Barton
Regression in 45b5f4e3dff75
2020-06-18Python API: path mapping options for library writing functionCampbell Barton
When "Relative Remap" option was added, the intention was only to remap paths that were already relative. However it remapped all paths. This was reported as T62612 and fixed recently, however some Python script authors depended on the old behavior. For users, it's reasonable to use the existing operators to make paths absolute/relative. For scripts however it's useful to be able to write out individual data-blocks with the ability to make all paths relative. Now `bpy.data.libraries.write()` takes a path_remap argument which can be `NONE/RELATIVE/RELATIVE_ALL/ABSOLUTE` allowing the script author to choose how paths are handled when writing out data-blocks. Addresses T77768.
2020-06-18Cleanup: remove unnecessary flag clearingCampbell Barton
This is not read from blend files.
2020-06-18Cleanup: redundant parenthesisCampbell Barton
2020-06-16Cleanup: unused headers, spellingCampbell Barton
2020-06-15Fix T77853: Error reloading linked library.Bastien Montagne
Issue related to how ID refcounting was changed when loading blendfile data...
2020-06-15Fix T77735: Numinput of radial control operator behaved incorrectlyJacques Lucke
This fixes the behavior of `ctrl+F` and `shift+F` to control the angle and strength of a brush when the unit scale is not one. Reviewers: pablodp606 Differential Revision: https://developer.blender.org/D7992
2020-06-11WM: utility function to iterate on menu typesCampbell Barton
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.