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-05-27OpenSubdiv: Refactor, move device specific code to own filesSergey Sharybin
Also, move all device files to own folder. Makes it so checks for device availability are done in a localized place.
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-27Merge remote-tracking branch 'origin/blender-v2.83-release'Dalai Felinto
2020-05-27Fix T77105: Crashes when clicking "new scene" buttonDalai Felinto
This was introduced on ecc395e473d. Effectively this is reverting that commit for cases when scene->toolsettings->sculpt is NULL. But since the facesets are only working for sculpting this should be fine.
2020-05-27Cycles: Upgraded Embree to version 3.10.0Stefan Werner
Enabled round linear hair in Embree. Differential Revision: https://developer.blender.org/D7623
2020-05-27Cleanup: remove unused Main struct from snap contextCampbell Barton
2020-05-27Gizmo: lazy initialize snap contextCampbell Barton
ED_gizmotypes_snap_3d_context_get could have returned NULL, rename _get(..) to _ensure(..) and initialize the snap context in this function.
2020-05-27Ruler: Implement Snap GizmoGermano Cavalcante
The snap point can now be viewed when activating the tool.
2020-05-27Gizmo Library: New Snap GizmoGermano Cavalcante
Generic snap gizmo to be used for different tools. The Gizmo can be configured initially by the following properties: - `"snap_elements_force"`, `"prev_point"` The following properties can be read as return: - `"location"`, `"normal"`, `"snap_elem_index"` This property can be linked to another (tool_setting.snap_elements): - `"snap_elements"` And this 3 extra utilities have been added: - `ED_gizmotypes_snap_3d_draw_util`, - `ED_gizmotypes_snap_3d_context_get`, - `ED_gizmotypes_snap_3d_update`. Differential Revision: https://developer.blender.org/D7071
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-27Cleanup: remove unnecessary copy constructorCampbell Barton
Caused deprecated-copy warnings as it wasn't used.
2020-05-27Cleanup: sort file, structsCampbell Barton
2020-05-27Cleanup: warningCampbell Barton
2020-05-27Merge branch 'blender-v2.83-release'Nathan Craddock
2020-05-27Fix: A few missing outliner selection sync tagsNathan Craddock
Add selection syncing for object add named (e.g. drag and drop from outliner to 3D view), outliner right click (a sync when the context menu is cancelled), and for object selection from Python.
2020-05-26Cleanup: Quiet unused variable warning in non-debug buildsHans Goudey
2020-05-26UI: List Panel SystemHans Goudey
This implements a general system to implement drag and drop, subpanels, and UI animation for the stack UIs in Blender. There are NO functional changes in this patch, but it makes it relatively trivial to implement these features for stacks. The biggest complication to using panels to implement the UI for lists is that there can be multiple modifiers of the same type. Currently there is an assumed 1 to 1 relationship between every panel and its type, but there can be multiple list items of the same type, so we have to break this relationship. The mapping between panels and their data is stored with an index in the panel's runtime struct. To make use the system for a list like modifiers, four components must be added: 1. A panel type defined and registered for each list data type, with a known mapping between list data types and panel idnames. 1. A function called by interface code to build the add the panel layouts with the provided helper functions. - UI_panel_list_matches_data will check if the panel list needs to be rebuilt. - UI_panels_free_instanced will remove the existing list panels - UI_panel_add_instanced adds a list panel of a given type. 3. An expand flag for the list data and implementations of get_list_data_expand_flag and set_list_data_expand_flag. 4. For reordering, the panel type's reorder callback. This is called when the instanced panels are drag-dropped. This requires implementing a "move to index" operator for the list data. Reviewed By: Severin, brecht Differential Revision: https://developer.blender.org/D7490
2020-05-26Modifiers: Add normalize weights option to vertex weight modifiersCody Winchester
Original patch by Cody Winchester (@CodyWinch), several fixes and cleanup by Bastien Montagne (@mont29). Differential revision: https://developer.blender.org/D7656
2020-05-26Merge branch 'blender-v2.83-release'Pablo Dobarro
2020-05-26Fix Cloth Brush grab deformation modePablo Dobarro
The grab mode was not correctly implemented, so the way it was working was confusing for users. - Grab delta was calculated in increments from the last stroke position, so it did not match the behavior of a grab brush. I refactored the grab delta calculation to make this change more explicit. - Grab displacement was not calculated from the original coordinates - Grab was using an incorrect strength Grab is now setting the position of the affected vertices directly and the constraints solve the rest of the cloth. I also tried to implement an alternative version based on applying forces to move the vertices to the grab position, but I think this is more controllable and the grab falloff can be adjusted by tweaking the simulation falloff. Reviewed By: sergey Differential Revision: https://developer.blender.org/D7756
2020-05-26Fix Pose Brush origin position with large brush sizePablo Dobarro
When the brush size is bigger than the entire mesh, fdata.tot_co can be 0, so the pose origin will default to (0,0,0), which does not make much sense. After this patch, the pose origin will be set to the farthest vertex from the pose origin, which at least should be in the surface of the mesh and in most cases in the direction the pose brush was already detecting the origin. Reviewed By: sergey Differential Revision: https://developer.blender.org/D7773
2020-05-26Fix naming in the PBVH neighbor iterator macroPablo Dobarro
The only possible name for the iterator was ni, this should fix that. Reviewed By: sergey Differential Revision: https://developer.blender.org/D7774
2020-05-26Fix PBVH API returning wrong normal when using shape keys and modifiersPablo Dobarro
The implementation of this function should match the one in SCULPT_vertex_co_get. This does not solve the issue when sculpting with modifiers active but I think this code is wrong Reviewed By: sergey, brecht Differential Revision: https://developer.blender.org/D7805
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-26UI: Windows Shell Links & Improved Mac AliasesHarley Acheson
Adds support for Windows Shell Links (shortcuts) to the File Browser. Extended Mac Alias usage. Better visualization of linked items. Differential Revision: https://developer.blender.org/D7380 Reviewed by Campbell Barton
2020-05-26Merge remote-tracking branch 'origin/blender-v2.83-release'Sybren A. Stüvel
2020-05-26Fix T77021: Alembic export of animated mesh with multiple UV maps failsSybren A. Stüvel
This was caused by a side-effect of our exporting code's memory management (Alembic considers data "written" and "final" when its C++ objects go out of scope) in combination with my change in rB65574463fa2d. I removed an "only export UVs on the first frame" clause because it was unclear why this restriction was there. As it turns out, it breaks the export of the 2nd and subsequent UV maps on an animated mesh. Effectively, on every frame the Alembic library thought we want to create a new UV map, instead of continuing to write a new frame of data to the existing one. This is resolved by keeping a reference to the C++ objects for the UV maps in memory while the exporter is running.
2020-05-26Fix T77032: Crash when creating GPUOffscreen without GPUContext in PythonGermano Cavalcante
2020-05-26Merge branch 'blender-v2.83-release'Philipp Oeser
2020-05-26Fix T77074: Collections: Exclude From ViewLayer toggle crashesPhilipp Oeser
Consider this a bandaid fix (similar to rBe2724abc22d5). Real issue seems to be that object is still in OB_MODE_PARTICLE_EDIT whereas it should be in OB_MODE_OBJECT after toggling 'Exclude From ViewLayer'. So while this patch prevents the crash, it leaves the object in a weird state (it cannot be selected for example), needs further investigation. Maniphest Tasks: T77074 Differential Revision: https://developer.blender.org/D7843
2020-05-26Fix overlapping tabs placement when used in right Top-bar splitJulian Eisel
Didn't respect alignment rules for split layouts. Reported in T77075.
2020-05-26Cleanup: Remove uneeded NULL checks on ed_screen_contextDalai Felinto
view_layer should never be NULL.
2020-05-26Merge branch 'blender-v2.83-release'Philipp Oeser
2020-05-26Fix T77082: Greasepencil error accessing material dropdown on an object ↵Philipp Oeser
without materials Differential Revision: https://developer.blender.org/D7841
2020-05-26Merge branch 'blender-v2.83-release'Philipp Oeser
2020-05-26Fix T77049: VSE Image cache is not refreshed when strip are muted/Philipp Oeser
unmuted in metastrip Maniphest Tasks: T77049 Differential Revision: https://developer.blender.org/D7834
2020-05-26Merge branch 'blender-v2.83-release'Philipp Oeser
2020-05-26Cleanup: Avoid mixing unlink-operator and menu name for ID-templatesJulian Eisel
The context menu name for `UILayout.template_ID_tabs()` would be passed through multiple functions as `unlinkop`.
2020-05-26Fix T77075: Crash omitting optional UILayout.template_ID_tabs parameterJulian Eisel
2020-05-26Cleanup: remove unused includes from lib_query.cBastien Montagne
2020-05-26Fix/Cleanup: Move some animdata versioning code out of liblinking process.Bastien Montagne
This was propably added way before we had the after-lib-link versionning code, but now doing that sort of fixes at liblink time is bad.
2020-05-26Cleanup: Create afterliblink doversion for 2.90... and move relevant code there.Bastien Montagne
Seriously... Please comply with design and do not add 2.9x versionning code to 2.8x versioning functions!
2020-05-26Fix/refactor foreach_id handling of animdata.Bastien Montagne
Now callbacks for animdata, nla strip and fcurve are in their own proper BKE files (mimicking `foreach_id` callback of `IDTypeInfo`). This commit also fixes some missing handling of ID pointers (text ID and IDProperties of script fcurve modifier...).
2020-05-26Fix T68209: Crash opening pre 2.8 file with maximized areaJulian Eisel
Versioning for workspaces didn't update the map used to determine which layout is active for a workspace in a specific window. Library code now called the function to make a workspace active (even if it already was active), which would also use this map to determine the active layout -- the wrong one. Error in initial workspace integration, but only uncovered recently. Likely through 0d8a8ce03b99.
2020-05-26Fix T77067: GPencil Object without materials cannot use Vertex Color modeAntonio Vazquez
2020-05-26Fix T76522: Grease Pencil transform fill and Adjust Last Operation panel issueAntonio Vazquez
The exec method was totally wrong and also the UI panel was not logic. Also changes to make the transformation smoother and the code more simple. Reviewed By: lichtwerk, mendio Maniphest Tasks: T76522 Differential Revision: https://developer.blender.org/D7741
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-26Curves: Implement Handles for selected points onlyAntonio Vazquez
When editing a complex curve is very annoying to have all handles at a time. Also, this is a requirement for the current GSoC Edit Grease Pencil using curves. I have seen that this improvement can be used in any other area of blender, so I have decided to publish the option in the overlay panel.. Reviewed By: fclem, #user_interface, billreynish, Severin Differential Revision: https://developer.blender.org/D7754
2020-05-26Fix T76902: face sets checkbox brokenJeroen Bakker
Due to recent changes the face sets checkbox broke. The cause is that {7d38f5036794} changed the responsibility of drawing and updating sculpt GPU buffers to fix render glitches. This patch moves the checkboxes evaluation to the overlay engine.