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
2021-02-12UI: expose the 3D views active object, even when hiddenCampbell Barton
The previous behavior meant that changing an objects visibility effectively changed the current mode - which missed necessary updates for the tool-system (for example). There was already a check for edit-mode, now expected to all modes. This makes the test-case described in T83013 work as expected.
2021-02-10Merge branch 'blender-v2.92-release'Philipp Oeser
2021-02-10Fix T85395: Texture paint external edit wrong projection on reapplyPhilipp Oeser
Caused by rB5b34d11b55e0. Above commit restored the view matrices in ED_view3d_draw_offscreen _before_ they can be stored in the ImBuff (see ED_view3d_draw_offscreen / texture_paint_image_from_view_exec). Now make restoring the view matrices optional and dont do this in case of reprojection, so the used matrices can still be saved in the ImBuff later. Reviewed By: campbellbarton Maniphest Tasks: T85395 Differential Revision: https://developer.blender.org/D10331
2021-02-10Cleanup: remove redundant headers in source/blender/editors/Campbell Barton
Remove redundant headers using `./source/tools/utils_maintenance/code_clean.py` Reviewed By: jmonteath Ref D10364
2021-02-06UI: Fix Typos in Comments and Docsluzpaz
Approximately 91 spelling corrections, almost all in comments. Differential Revision: https://developer.blender.org/D10288 Reviewed by Harley Acheson
2021-02-05Cleanup: outdated/unhelpful commentsCampbell Barton
2021-02-05Cleanup: rename USER_ZOOM_{CONT->CONTINUE} improve commentsCampbell Barton
USER_ZOOM_CONT only had comments saying this was 'oldstyle', remove these comments, add brief explanations of the zoom style in the enum.
2021-02-05Cleanup: correct spelling in commentsCampbell Barton
2021-01-31Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-31Fix T85236: "Zoom to Mouse Position" inverts "Dolly View" directionCampbell Barton
2021-01-31Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-31Cleanup: use switch for Add Object Tool event handlingCampbell Barton
2021-01-31Add Object Tool: make automatic axis selection an optionCampbell Barton
While useful in some cases, this meant it wasn't possible to use the "Floor" for object placement without looking top-down or bottom up.
2021-01-29Merge branch 'blender-v2.92-release'Brecht Van Lommel
2021-01-29Fix T84717: missing 3D viewport updates when changing shading settingsBrecht Van Lommel
Previously this relied on the dependency graph to detect changes in the screen datablock, which would then notify the renderers. This was rather indirect an not even really by design. Instead use notifiers to tag specific 3D viewports to be updated. Includes changes to BKE_scene_get_depsgraph to accept a const Scene pointer. Testing if this works correctly requires adding back commits 81d444c and 088904d, since those have been temporarily reverted. Differential Revision: https://developer.blender.org/D10235
2021-01-28Cleanup: spellingCampbell Barton
Also remove replace 'playblast' with terminology used in Blender's UI.
2021-01-27Merge branch 'blender-v2.92-release'Philipp Oeser
2021-01-27Documented color management issue.Jeroen Bakker
When using the viewport render animation and saving to an 8 bit image/movie file, the color management is applied twice. Once on the GPU and once when saving to disk. Removing this option currently leads to incorrect Scene strip rendering so needs more research.
2021-01-26Cleanup: Declare variables where initializedHans Goudey
2021-01-25Cleanup: pass 'rctf' rectangle to 2D box drawing functionsCampbell Barton
Passing 4x arguments for the rectangle, mixed in with round-box radius & color wasn't very readable. Instead, pass a `rctf` as the first argument to UI box drawing functions.
2021-01-25Cleanup: minor changes and comments to screen_bounds_get accessCampbell Barton
2021-01-25Fix view-axis gizmo tool-tip placementCampbell Barton
Bounding box calculation ignored the gizmo size preference.
2021-01-25Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-25Fix ruler end-caps not following interface scaleCampbell Barton
2021-01-25UI: Gizmo Tooltip PositioningHarley Acheson
Position Gizmo tooltips below their bounds so they do not obscure the content. Differential Revision: https://developer.blender.org/D9793 Reviewed by Julian Eisel
2021-01-25Asset Browser: Support dragging in object-data assets (meshes, curves, etc.)Julian Eisel
The Asset Browser already displayed object-data assets, but you couldn't actually drag & drop them. This is now supported. The object-data drop poll needed access to the data-block. But with a small tweak it doesn't need that and can just check the ID type (which is known for asset dragging too). Part of T82661.
2021-01-24Cleanup: Add/use helper to check if dragging a certain ID type or asset ID typeJulian Eisel
This check is a common pattern, avoid duplication by using a helper function.
2021-01-24Fix "use after scope" reported by ASANHans Goudey
The float array is declared inside a smaller scope, pointed to, and then used later. This simply moves the declaration outside of the if statement. Also remove two redundant lines.
2021-01-24UI: Viewport Navigate Gizmo RefactorHarley Acheson
Simplification and changes to the Navigation gizmo. Better indication of negative axes, consistent use of color and size to indicate orientation, ability to be resized. Differential Revision: https://developer.blender.org/D9744 Reviewed by Campbell Barton
2021-01-20Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-20Add Object Tool: minor improvements to tool-tipsCampbell Barton
2021-01-20Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-20Add Object Tool: adjust cursor alpha when near view alignedCampbell Barton
The cursor-plane was too dense/bright when approaching view alignment.
2021-01-20Cleanup: remove extra in trailing asteriskCampbell Barton
Comment blocks not conforming to convention.
2021-01-19Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-19Fix T84824: Incorrect height using interactive add toolFalk David
When using the interactive add tool for primitives with a fixed height and base aspect ratio, the height of the created primitive would be incorrect (two times too small or two times too big). When the base origin was centered, the `fixed_aspect_dimension` was not changed even though the base length was doubled. Additionally, when the height origin was centered but the height aspect ratio was fixed, the height was doubled leading to an incorrect size. The fix doubles `fixed_aspect_dimension` when the base origin is centered and correctly calculates the height of the primitive when the aspect ratio is set to fixed. Ref D10140
2021-01-19Cleanup: use 'const' argument for parameter argumentCampbell Barton
2021-01-19UI Code Quality: Use "params" struct for area and region callbacksHans Goudey
These functions with many arguments can be unwieldy. Aside from the obvious issues with rewriting the list of arguments and the opportunities for error and frustration that presents, the long list of arguments make these systems hard to change. So when an argument should be added, someone might skip that and add some hack instead. So, as proposed in T73586#1037210, this patch instead uses a "params" struct for each of these callbacks. - Use param argument for `ARegionType.listener` - Remove unused window field in region listener - Use param argument for `SpaceType.listener` - Use params struct for `ARegionType.message_subscribe` Differential Revision: https://developer.blender.org/D9750
2021-01-17Add Object Tool: scale the cursor plane based on the depthCampbell Barton
Draw the cursor plane smaller then further away from the view. This makes the plane being drawn onto easier to perceive.
2021-01-17Add Object Tool: split aspect & origin options for base/heightCampbell Barton
In practice it's common these settings shouldn't be linked for drawing the initial (base) plane, compared with the height.
2021-01-16Add Object Tool: add initial "Fixed Aspect" optionCampbell Barton
This makes it more convent to add many objects with a fixed aspect ratio.
2021-01-16Add Object Tool: make UI more compactCampbell Barton
Move some of the more obscure options into a popover, so they don't take up so much room in the top-bar.
2021-01-16Add Object Tool: support incremental snappingCampbell Barton
This adds a "Snap to" option that allows using all the scenes snap settings which includes incremental & absolute grid snapping options. This is optional because always following scene snapping would not snap to geometry by default (which seems to be the most useful default).
2021-01-16Add Object Tool: workaround non-orthogonal orientation matricesCampbell Barton
2021-01-16Add Object Tool: quiet warning setting sizeCampbell Barton
The size property was only used for the cube
2021-01-16Add Object Tool: rename keymap, expose in keymap editorCampbell Barton
Make the name follow the convention of other View3D keymaps.
2021-01-14Fix add-object tool snap placement when activated from tweak eventCampbell Barton
When activating add-object from from a tweak event (default keymap), the snap gizmo could snap to a new location while dragging. Workaround this by re-calculating the snap position where the tweak event starts. Reported T57210#1077747
2021-01-11Fix T84582: WalkNavigation.mouse_speed ignored with tabletCampbell Barton
Scale the speed up 4x instead of clamping the value to a minimum of 4.
2021-01-06Fix object moved to cursor when editing last operation after dropping objectJulian Eisel
Steps to reproduce were: * Drag object icon from the Outliner into the 3D view (or an object asset from the Asset Browser) * Open the "Adjust Last Operation" panel * Edit options in there - the object would move to the mouse location The same issue happens with collection instance and object data adding (e.g. via drag & drop). This patch addresses them too. The operator used the event state stored in the window. This shouldn't be accessed from the operator execute callback generally which happened here. Especially not if the operator supports editing properties.
2021-01-05Fix T84216: Drawing a paintcurve [vertexpaint / weightpaint] failsPhilipp Oeser
Caused by rB35e3dc9192e7. Above commit moved 'Weight Paint' & 'Vertex Paint' keymap also before 'Paint Curve' keymap. This way, paintcurve.add_point_slide would be overriden by: - paint.vertex_paint (inverted) - paint.weight_sample Now move 'Paint Curve' above again. Reviewers: campbellbarton Maniphest Tasks: T84216 Differential Revision: https://developer.blender.org/D9939