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
2022-03-02Add Object Tool: use the drag-start location for initial placementCampbell Barton
2022-03-02Fix modal item open/close in the outliner since removing tweak eventsCampbell Barton
Correct check for left-mouse event which assumed the alternative was a tweak event. Also remove print added by accident.
2022-03-02Docs: document the use_axis_view argumeht to view_roll_angleCampbell Barton
Also remove event print left in by accident.
2022-03-02Event System: remove tweak events in favor of click-dragCampbell Barton
Supporting two kinds of dragging is redundant, remove tweak events as they only supported 3 mouse buttons and added complexity from using the 'value' to store directions. Support only click-drag events (KM_CLICK_DRAG) which can be used with any keyboard or mouse button. Details: - A "direction" member has been added to keymap items and events which can be used when the event value is set to KM_CLICK_DRAG. - Keymap items are version patched. - Loading older key-maps are also updated. - Currently the key-maps stored in ./release/scripts/presets/keyconfig/ still reference tweak events & need updating. For now they are updated on load. Note that in general this wont impact add-ons as modal operators don't receive tweak events. Reviewed By: brecht Ref D14214
2022-03-02Event System: match click-drag & tweak event handling for transformCampbell Barton
2022-03-02Event System: support "Release Confirms" for click-drag eventsCampbell Barton
2022-03-02Cleanup: use back-slash for doxygen commands, color after parametersCampbell Barton
2022-03-02Merge branch 'blender-v3.1-release'Germano Cavalcante
2022-03-02Fix T95608: Mac issues with drag drop on multi-monitorGermano Cavalcante
Mousemove events are sent to windows. In Windows OS, almost all mousemove events are sent to the window whose mouse cursor is over. On MacOS, the window with mousemove events is always the active window. It doesn't matter if the mouse cursor is inside or outside the window. So, in order for non-active windows to also have events, `WM_window_find_under_cursor` is called to find those windows and send the same events. The problem is that to find the window, `WM_window_find_under_cursor` only has the mouse coordinates available, it doesn't differentiate which monitor these coordinates came from. So the mouse on one monitor may incorrectly send events to a window on another monitor. The solution used is to use a native API on Mac to detect the window under the cursor. For Windows and Linux nothing has changed. Reviewed By: brecht Differential Revision: https://developer.blender.org/D14197
2022-03-01Merge branch 'blender-v3.1-release'Germano Cavalcante
2022-03-01Fix wrong object mode checking in snap codeGermano Cavalcante
The value of `OB_MODE_OBJECT` is 0, this makes it unsuitable as a bitflag. Issue pointed out at https://pvs-studio.com/en/blog/posts/cpp/0922/ Thanks to Andrey Karpov
2022-03-01Geometry Nodes: Port most curve primitives to new data-blockHans Goudey
Create `Curves` directly, instead of using the conversion from `CurveEval`. This means that the `tilt` and `radius` attributes don't need to be allocated. The old behavior is kept by using the right defaults in the conversion to `CurveEval` later on. The Bezier segment primitive isn't ported yet, because functions to provide easy access to built-in attributes used for Bezier curves haven't been added yet. Differential Revision: https://developer.blender.org/D14212
2022-03-01Curves: Move curves primitive to object add codeHans Goudey
Currently, any time a Curves data-block is created, the `curves_random` function runs, filling it with 500 random curves, also adding a radius attribute. This is just left over from the prototype in the initial commit that added the type. This commit moves the code that creates the random data to the curve editors module, like the other primitives are organized. Differential Revision: https://developer.blender.org/D14211
2022-03-01Merge branch 'blender-v3.1-release'Jacques Lucke
2022-03-01Fix T95979: Bake doesn't update Image editor.Jeroen Bakker
2022-03-01Cleanup: move Event.is_repeat & is_direction_inverted to flagsCampbell Barton
Use a flag for events to avoid adding struct members every time a new kind of tag is needed - so events remain small. This also simplifies copying settings as flags can be copied at once with a mask.
2022-03-01Cleanup: ED_view3d_win_to_delta & ED_view3d_calc_zfac usageCampbell Barton
- Rename ED_view3d_win_to_delta `mval` argument to `xy_delta` as it as it was misleading since this is an screen-space offset not a region relative cursor position (typical use of the name `mval`). Also rename the variable passed to this function which also used the term `mval` in many places. - Re-order the output argument of ED_view3d_win_to_delta last. use an r_ prefix for return arguments. - Document how the `zfac` argument is intended to be used. - Split ED_view3d_calc_zfac into two functions as the `r_flip` argument was only used in some special cases.
2022-03-01UI: Fix multi input socket outline and highlightLeon Schittek
Small fixes to the drawing of multi input sockets: - Make the outline thickness consistent with normal node sockets, independent from the screen DPI. - Only highlight multi input sockets when they are actually selected. - Skip selected multi inputs when drawing normal selected sockets. Differential Revision: https://developer.blender.org/D14192
2022-03-01Cleanup: use doxygen comments, correct spellingCampbell Barton
Also move eDupli_ID_Flags doc-string to it's declaration.
2022-03-01Cleanup: Move object_add.c to C++Hans Goudey
This patch was tested on the buildbot first, it builds on all platforms.
2022-02-28Nodes: Improve readability of selected node linksLeon Schittek
This commit improves the drawing of selected node links: - Highlight the entire link to make it easier to spot where the link is going/coming from. - Always draw selected links on top, so they are always clearly visible. - Don't fade selected node links when the sockets they are connected to are out out view. - Dragged node links still get a partial highlight when they are only attached to one socket. Differential Revision: https://developer.blender.org/D11930
2022-02-28Merge branch 'blender-v3.1-release'Brecht Van Lommel
2022-02-28Fix T96032: add null check to constraint operatorsHenrik Dick
The constraint operators for delete, apply, copy and copy to selected were missing null checks and could crash blender when called wrongly from the python api. Differential Revision: http://developer.blender.org/D14195
2022-02-28Fix T96073: Don't remove links when inserting reroute nodesJacques Lucke
This was an oversight in rB06ac5992618a75c453e495e06af7c5faf30499a7.
2022-02-28Cleanup: Remove duplicated commentJulian Eisel
Something went wrong here in 61776befc3f8.
2022-02-28Animation: Sensible frame range for motion pathsColin Marmont
Motion paths can now be initialised to more sensible frame ranges, rather than simply 1-250: - Scene Frame Range - Selected Keyframes - All Keyframes The Motion Paths operators are now also added to the Object context menu and the Dopesheet context menu. The scene range operator was removed, because the operators now automatically find the range when baking the motion paths. The clear operator now appears separated in "Selected Only" and "All", because it was not clear for the user what the button was doing. Reviewed By: sybren, looch Maniphest Tasks: T93047 Differential Revision: https://developer.blender.org/D13687
2022-02-28Merge branch 'blender-v3.1-release'Sergey Sharybin
2022-02-28Fix compilation warning.Jeroen Bakker
2022-02-28Fix T95992: Crash Ancored strokes 2d texture painting.Jeroen Bakker
When using ancored stroked the diameter of the stroke can be 0 what leads to a division by zero that on certain platforms wrap to a large negative number that cannot be looked up. This fix will clamp the size of the brush to 1.
2022-02-25Merge branch 'blender-v3.1-release'Bastien Montagne
2022-02-25Fix (unreported) Outliner 'liboverride create hierarchy' applied on several IDs.Bastien Montagne
This operation can only be applied on one ID at a time, so only apply it to the active Outliner item, and not all the selected ones. Also renamed `Make Library Override` menu entry to `Make Library Override Single` to emphasis this is not the 'default expected' option for the user.
2022-02-25LibOverrides: fix handling of hierarchy root in complex cases.Bastien Montagne
This affects essentially the Outliner 'create hierarchy' tool currenlty. Previously code did not handle properly hierarchy root in case overrides where created from a non-root ID (e.g. an object inside of a linked collection), and in case additional partial overrides were added to an existing partially overrided hierarchy. Also did some renaming on the go to avoid using 'reference' in override context for anything else but the reference linked IDs.
2022-02-25Cleanup: Modify commentAntonio Vazquez
2022-02-25Merge branch 'blender-v3.1-release'Antonio Vazquez
2022-02-25GPencil: Make Fill Dilate expand outside strokeAntonio Vazquez
To keep consistency with the new contract option, the dilate now expand the shape beyond the internal closed area. Note: This was committed only in master (3.2) by error.
2022-02-25GPencil: Fill Dilate using negative values contract the fill areaAntonio Vazquez
This is requested by artist for some animation styles where is necessary to fill the area, but create a gap between fill and stroke. Also some code cleanup and fix a bug in dilate for top area. Reviewed By: pepeland, mendio Differential Revision: https://developer.blender.org/D14082 Note: This was committed only in master (3.2) by error.
2022-02-25Cleanup: use flags for wmEvent modifier keysCampbell Barton
Using flags makes checking multiple modifiers at once more convenient and avoids macros/functions such as IS_EVENT_MOD & WM_event_modifier_flag which have been removed. It also simplifies checking if modifier keys have changed.
2022-02-25GPUTexture: Use immutable storageClément Foucault
This means textures need to have the number of mipmap levels specified upfront. It does not mean the data is immutable. There is fallback code for OpenGL < 4.2. Immutable storage will enables texture views in the future.
2022-02-24Merge branch 'blender-v3.1-release'Brecht Van Lommel
2022-02-24Fix T95969, T91856: bake AO to vertex color artifacts after ray offset removalBrecht Van Lommel
Without ray offsets intersections at neigbhoring triangles are found, as the ray start is exactly at the vertex. There was a small offset towards the center of the triangle, but not enough. Now this offset computation is moved into Cycles and modified for better results. It's still not perfect though like any offset approach, especially with long thin triangles. Additionaly, this uses the shadow terminate offset for AO rays now, which helps remove some pre-existing artifacts.
2022-02-24Merge branch 'blender-v3.1-release'Hans Goudey
2022-02-24Fix: Crash switching between sculpt and edit modeHans Goudey
Also fix a couple other places where normals layers weren't properly tagged dirty or reallocated when the mesh changes. Caused by cfa53e0fbeed7178. When the size of a mesh changes, the normal layers need to be reallocated. There were a couple of places that cleared other runtime data with `BKE_mesh_runtime_clear_geometry` but didn't deal with normals properly. Clearing the runtime "geometry" is different from clearing the normals, because sometimes the size of the normal layers doesn't have to change, in which case simply tagging them dirty is fine.
2022-02-24Fix incorrect Outliner tree-display type returnedJulian Eisel
Reverts 6d97fdc37eef. A function like this should not return a different tree-display object than of the requested type. This may hide errors, and leaves the Outliner in an undefined state (where the stored display mode doesn't match the tree-display object). I rather don't hide the fact that all display-modes should be handled here, and emit a clear error if one isn't.
2022-02-24Merge remote-tracking branch 'origin/blender-v3.1-release'Kévin Dietrich
2022-02-24Fix T95976: on cage GPU subdivision breaks X-ray selectionKévin Dietrich
When X-ray mode is active the selection is done using the mesh data to select what is closest to the cursor. When GPU subdivision is active with the "show on cage" modifier option, this fails as the mesh used for selection is the unsubdivided one. This creates a subdivision wrapper before running the selection routines to ensure that subdivision is available on the CPU side as well. Differential Revision: https://developer.blender.org/D14188
2022-02-24Fix wrong asset library displayed/loaded in asset view templatesJulian Eisel
Sometimes when switching asset libraries in the asset view templates (like the pose library sidebar UI), the wrong library would end up being shown.
2022-02-243D View: keep the orthographic view when rolling 90 degreesCampbell Barton
Support for maintaining orthographic view for view3d.view_roll for an angle of 90/-90 degrees.
2022-02-24Merge branch 'blender-v3.1-release'Campbell Barton
2022-02-24Fix 2D view NDOF panning requiring both axes to be non-zeroCampbell Barton
Possible fix for T86592.
2022-02-23Curves: initial brush implementations for curves sculpt modeJacques Lucke
The main goal here is to add the boilerplate code to make it possible to add the actual sculpt tools more easily. Both brush implementations added by this patch are meant to be prototypes which will be removed or refined in the coming weeks. Ref T95773. Differential Revision: https://developer.blender.org/D14180