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-07-03Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXXCampbell Barton
Also use doxy style function reference `#` prefix chars when referencing identifiers.
2021-06-28Cleanup: repeated terms in code comments & error messagesCampbell Barton
2021-06-24Cleanup: comment blocks, trailing space in commentsCampbell Barton
2021-06-22Cleanup: Spelling MistakesLeon Zandman
This patch fixes many minor spelling mistakes, all in comments or console output. Mostly contractions like can't, won't, don't, its/it's, etc. Differential Revision: https://developer.blender.org/D11663 Reviewed by Harley Acheson
2021-05-21Cleanup: spellingLeon Zandman
Includes fixes to misspelled function names. Ref D11280
2021-04-22Fix too big grid plane for Add Object tool on Retina displaysJulian Eisel
The grid plane was drawn too big on retina displays compared to other screens, because the factor was multiplied by the native pixel-size, which is 2 for Retina displays.
2021-04-21Merge branch 'blender-v2.93-release'Philipp Oeser
2021-04-21Fix T87677: Add primitive tools produce wrong sized objects after changing ↵Philipp Oeser
values in 'Adjust Last Operation' Always use the defaults here (radius, depth etc), since desired bounds have been set interactively, it does not make sense to use a different value from a previous command. The Cube tool has already seen a fix for this in rB26e5718e29a7, but Cone/UVSphere/Cylinder/IcoSphere havent. Maniphest Tasks: T87677 Differential Revision: https://developer.blender.org/D11038
2021-04-17Transform Snap Refactor: Use enum for cage snap optionsGermano Cavalcante
This allows the addition of the `SNAP_GEOM_CAGE` option. Currently unused.
2021-04-01Cleanup/Refactor: Use flags instead of bool to configure the snap gizmoGermano Cavalcante
This simplifies the addition of future improvements. Also make it more practical to expose as a parameter of gizmo for Python.
2021-03-29Gizmo: Use a utility function to read snap gizmo valuesGermano Cavalcante
No functional changes. This makes the `ED_gizmotypes_snap_3d_update` function more specialized.
2021-03-08Fix T86347: Add Primitive Tool fails for 1x1x1 scalePhilipp Oeser
The Tool stores desired dimensions as `scale` and thus had to half the scale again in `make_prim_init()` because by default all primitives are created at a size of 2 in blender. This worked, but: - [1] it logged something like size=2, scale=2,2,2 for a 2x2x2 cube [which does not sound right, it should be size=2 scale=1,1,1] - [2] it had to make an exception for the case scale is exactly 1x1x1 [this happens when the property is not set specifically, e.g. adding primitives from the menu] -- this exception led to double sized primitives being created when the tool asked for exact dimensions of 1x1x1 Now - instead of compensating in `make_prim_init()` - do this earlier in the tool itself, see `view3d_interactive_add_modal`, this fixes the bug and now also correctly logs size=2 scale 0.5,0.5,0.5 for a 1x1x1 cube. Maniphest Tasks: T86347 Differential Revision: https://developer.blender.org/D10632
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-20Add Object Tool: minor improvements to tool-tipsCampbell 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-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-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-04Cleanup: correct array size in argumentCampbell Barton
2020-12-09Fix T83460: Regression in snap for measure toolGermano Cavalcante
Now the gizmo is drawn only when the eventstate located in `wm->winactive->eventstate` has not changed. So it doesn't matter if it's "selected" or not. This commit also removes the use of the private header "wm.h" Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D9539
2020-12-08Cleanup: use static declarationsCampbell Barton
2020-11-20Fix add-object cursor plane failing to update on zoomCampbell Barton
Zoom with an orthographic view wasn't refreshing the preview plane.
2020-11-20Add Object Tool: support placing objects in orthographic axis viewsCampbell Barton
When an projecting onto a plane that is orthogonal to the views Z axis, project onto a view aligned axis then map it back to the original plane. see: ED_view3d_win_to_3d_on_plane_with_fallback Since the depth can't be properly visualized in 3D, display a 2D so it's possible to to tell the depth from the cursor motion.
2020-11-20Add Object Tool: use the closest view-aligned axis as a fallbackCampbell Barton
When using surface orientation and nothing is under the mouse-cursor, pick the axis that's closest to the view's Z axis. Now by default default, drawing into empty spaces wont use a plane orthogonal to the view.
2020-11-16Correct T82753 Fix from 979fe4f1be7d6fe65e52b3ab805ab061a92d1f03Campbell Barton
2020-11-16Fix T82753: Crash using add-object tool when gizmos are disabledCampbell Barton
2020-11-13Object: show preview plane for add-object toolCampbell Barton
The orientation & depth settings are used to show the preview plane that is used when adding the object.
2020-11-12Cleanup: split view3d_placement depth & orientation calculationCampbell Barton
Split out functionality needed for preview plane drawing.
2020-11-10Fix T81951: Add Cube new tool surface snaping not workingGermano Cavalcante
For the `plane_depth` of type `PLACE_DEPTH_SURFACE` to take effect, a `snap_context` is needed. But, even if a temporary `snap_context` was created for `plane_orient == PLACE_ORIENT_SURFACE`, this context was not used for `plane_depth`. So, use a temporary `snap_context` for `PLACE_DEPTH_SURFACE` (as it is done for `PLACE_ORIENT_SURFACE`). Differential Revision: https://developer.blender.org/D9345 Differential Revision: https://developer.blender.org/D9435
2020-10-19Spelling: It's Versus ItsHarley Acheson
Corrects incorrect usage of contraction for 'it is', when possessive 'its' was required. Differential Revision: https://developer.blender.org/D9250 Reviewed by Campbell Barton
2020-08-20GPUState: Use explicit depth test enumClément Foucault
2020-08-18GPUState: GPU_blend final API renamingClément Foucault
We now use GPU_blend for enabling / disabling blending and explicitly set the blend equation.
2020-08-13GPUBatch: Remove most use of GPU_batch_draw_advanced()Clément Foucault
This is in order to better encapsulate / isolate the drawing code.
2020-08-13GPUShader: Change shader state tracking to be part of the GPUContextClément Foucault
This remove the use of batch->program and replace it with batch->shader. This will allow GL abstraction latter.
2020-08-07Cleanup: pass arrays const where possibleCampbell Barton
2020-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
2020-07-22Object: add-object option to place on the surface normalCampbell Barton
Optionally use the surface normal under the mouse cursor.
2020-07-03Cleanup: Editors/Space/View3D, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/space_view3d` module. No functional changes.
2020-06-22Fix T77942: Add Cube scales immediately upon creation after changing Size ↵Philipp Oeser
attribute on prior Add Cube command Always use the default size here, since desired bounds have been set interactively, it does not make sense to use a different size from a previous command. Maniphest Tasks: T77942 Differential Revision: https://developer.blender.org/D8056
2020-05-28Object: new add object tool, currently for primitive typesCampbell Barton
- Interactively adding primitives with two clicks. - Scene orientation used for new objects. - Depth [view-plane, axis-plane, surface] - Origin [base, center] - Primitive types [cube, cylinder, cone, uv-sphere, ico-sphere ] - Settings for object types in the top-bar. Shortcuts: - Snapping (Ctrl). - Constrain 1:1 aspect (Shift). - Toggle center (Alt). Part of T57210 design task.