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-02-11File headers: SPDX License migrationCampbell Barton
Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
2021-10-20Cleanup: use an array for wmEvent cursor position variablesAaron Carlisle
Use arrays for wmEvent coordinates, this quiets warnings with GCC11. - `x, y` -> `xy`. - `prevx, prevy` -> `prev_xy`. - `prevclickx, prevclicky` -> `prev_click_xy`. There is still some cleanup such as using `copy_v2_v2_int()`, this can be done separately. Reviewed By: campbellbarton, Severin Ref D12901
2021-09-21Keymap: preference for fallback-tool with RMB selectCampbell Barton
Expose a key-map preference "Fallback Tool (RMB)", disabled by default. The right mouse button uses the fallback tool (currently visible selection tool in the toolbar), instead of always tweaking. When any selection tool is active, right mouse always tweaks. To enable fallback selection on RMB, set the "Right Mouse Select Action" to "Selection Tool". Internal changes: - Add fall-back key-maps, separate key-maps needed for when the tool is run as a fall-back. This is needed so RMB-select can support fall-back tools, so left-mouse can be used when it's the active tool and RMB can be used as a fall-back action when another tool is active. - Add options field to tools so tools without gizmos can enable the full-back tool keymap. - Support multiple key-maps for keymap handlers. - Fall-back keymaps now co-exist with the tool-keymaps. So both keymaps may be active at once - using different mouse buttons. When gizmos are in use, a highlighted gizmo prioritizes the tool-keymap over the fall-back keymap. Resolves T83690. Reviewed By: JulienKaspar Ref D12493
2021-08-26Cleanup: use C style comments for descriptive textCampbell Barton
2021-08-03Correct task ID in 00b57136e4167ef5a303b1215574bb52a22e9194Campbell Barton
2021-08-03Revert "Fix spin-gizmo not allowing click events to select vertices"Campbell Barton
This reverts commit 0b903755a9908344e9fcb4a33b4f0340abeb9386. This caused T86030, left-mouse selection override clicking, which is used for creating a full revolution.
2021-04-19Fix spin-gizmo not allowing click events to select verticesCampbell Barton
2020-04-03Code Quality: Replace for loops with LISTBASE_FOREACHDalai Felinto
Note this only changes cases where the variable was declared inside the for loop. To handle it outside as well is a different challenge. Differential Revision: https://developer.blender.org/D7320
2020-04-03Cleanup: Including "BLI_listbase.h" for LISTBASE_FOREACH macroDalai Felinto
These headers are not needed right away, but will be in the upcoming commit.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-06Cleanup: Rename ARegion variables from ar to regionJulian Eisel
The old convention was easy to confuse with ScrArea. Part of https://developer.blender.org/T74432. This is mostly a batch rename with some manual fixing. Only single word variable names are changed, no prefixed/suffixed names. Brecht van Lommel and Campbell Barton both gave me a green light for this convention change. Also ran clan clang format on affected files.
2019-11-22Gizmo: show extrude gizmos with dark '+' instead of negative spaceCampbell Barton
2019-10-03Cleanup: unused structs, struct membersCampbell Barton
2019-08-16Fix T64998: Multi window spin tool crashCampbell Barton
There could be a more direct way to initialize a gizmo in a view, for now this resolves the crash.
2019-05-27Gizmo: add event argument to invoke_prepare callbackCampbell Barton
2019-04-29Cleanup: comments (long lines) in editorsCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-13Gizmo: move transform to a persistent optionCampbell Barton
Based on feedback from animators, this is useful to keep as a view option (as in 2.7x). Now the transform gizmos can be enabled from the popover, the tools still work for location/scale/rotation. The transform tool has been removed. See T63518
2019-03-01RNA: move cursor into own structCampbell Barton
Without this it's impractical to subscribe to any change to the cursor. Fixes T61969 by having gizmos update on any change to the cursor.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-08Cleanup: rename V3D_MANIP_* -> V3D_ORIENT_*Campbell Barton
Wasn't obvious it's related to orientation, also term manipulator is no longer in use.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-23Fix T58199: Spin tool top bar settings don't applyCampbell Barton
2019-01-07Cleanup: add trailing commas to structsCampbell Barton
2018-12-19Gizmo: optional custom orientations for transformCampbell Barton
This aims to resolve a conflict where some users want to keep keyboard axis setting global, even when the orientation is set to something else. Move/rotate/scale can optionally each have a separate orientation. Some UI changes will be made next.
2018-11-263D View: remove 3D cursorCampbell Barton
Use 3D cursor from the scene (was previously used for local-view).
2018-10-03Cleanup: styleCampbell Barton
2018-10-02Gizmo: move spin tool axis option into gizmo-groupCampbell Barton
Having this setting here wasn't correct (the operator ignores it).
2018-10-02WM: generalize tool property initializationCampbell Barton
Prepare for storing different kinds of properties in tools.
2018-09-27Merge branch 'master' into blender2.8Brecht Van Lommel
2018-09-26Spin Tool: match dial orientation to active gizmoCampbell Barton
2018-09-26Spin Tool: option (disabled) for gizmos to follow selectionCampbell Barton
Disable since this causes multiple axis to overlap too often. It's also glitchy since we don't have a good way to detect changes to selection.
2018-09-26Correct error in last commitCampbell Barton
Didn't account for non-identity orientation.
2018-09-26Spin Tool: correct the initial redo dial rotationCampbell Barton
2018-09-25Gizmo: dial support for a click setting a valueCampbell Barton
Useful for click w/o drag to spin a full revolution.
2018-09-25Gizmo: support spin tool normal flippingCampbell Barton
Use the 2x spin tool has 2x handles to control normal direction, dragging either handle backwards now reverses normals. Previously it was common for the spin result to have normals flipped the wrong way.
2018-09-24Gizmo: hide redo gizmo when spin tool not activeCampbell Barton
Selecting a another tool left the gizmo, which could overlap other tools gizmos.
2018-09-24Gizmo: show partial arc & icons for spin toolCampbell Barton
2018-09-24Gizmo: add spin-tool rotate on view axisCampbell Barton
This also acts to catch stray click events so missing a gizmo doesn't move the cursor or execute another spin action.
2018-09-21Gizmo: spin tool XYZ axis togglesCampbell Barton
New handle type for initial spin, gives clear differentiation between do & redo (similar to extrude). Some tweaks still required to match T56571.
2018-09-21Gizmo: enable spin tool redo gizmos againCampbell Barton
- Add x,y rotate and translate controls. - Remove x-depth adjustment.
2018-09-20Merge branch 'master' into blender2.8Campbell Barton
2018-09-20Gizmo: use ED_view3d_win_to_3d_on_planeCampbell Barton
2018-09-20Fix spin/rotate gizmo not updating view orientationCampbell Barton
Check for navigation didn't refresh when navigation was completed.
2018-09-19EditMesh: show the spin arc as a thin ribbonCampbell Barton
Closer to the design from T54661
2018-09-19EditMesh: orient spin arc to follow the cursorCampbell Barton
2018-09-19Gizmo: dial3d option to show the final angleCampbell Barton
Was showing modal-delta-angle, which isn't useful for the spin tool.
2018-09-18Gizmo: de-duplicate poll logicCampbell Barton
Checking the active tool or operator was a common way to check if the gizmo was still in use.
2018-09-18Gizmo: dial3d option to get angles w/o wrappingCampbell Barton
Needed for spinning multiple revolutions.