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
2018-09-21Select Similar: Skip hidden elementsDalai Felinto
2018-09-21Multi-Objects: Select similar edge SIMEDGE_SEAM/SIMEDGE_SHARPDalai Felinto
I'm not sure why we may want to sample both a sharp and an unsharp edges at the same time, maybe to see if the selected edges all have the same values? Either way, implemented as in 2.79. I also believe we may have a faster way to select all the edges, but let's file this under optimizations to be done later.
2018-09-21MESH_OT_select_similar: CleanupDalai Felinto
2018-09-21Multi-objects: Select similar edge SIMEDGE_FACE_ANGLEDalai Felinto
I'm not sure why the original implementation was only checking for equal comparison but I'm doing the same here. It is a one line change if we want to support LT/GT anyways. Also "technically" we should compare the angles in the worldspace, since different scales will result in different angles. Added as a TODO but honestly I think this is overkill.
2018-09-21Rename bm_sel_similar_cmp_short > select_similar_compare_LONGDalai Felinto
2018-09-21Multi-objects: Select similar edge SIMEDGE_LENGTHDalai Felinto
I'm using kdtree here but there is nothing preventing us from using a simple float linked list with a sorting and finding "nearest" equivalents. At least we are benefitting from bisecting as oppose to the original solution. Also we need epsilon for the float comparisons.
2018-09-21Multi-objects: Select similar edge SIMEDGE_DIRDalai Felinto
2018-09-21Multi-objects: Select similar edge SIMEDGE_FACEDalai Felinto
2018-09-21Select similar edge: Granular error messageDalai Felinto
This way we can implement them onw by one
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-20Fix build for MSVC: Remove trailing double semicolonDalai Felinto
Not sure why but MSVC is complaining for some of those. In particular for the struct in BKE_subdiv_ccg.h. Those were the ones crashing here..
2018-09-20Cleanup: use win_to_3d_on_plane functionCampbell Barton
2018-09-20Merge branch 'master' into blender2.8Campbell Barton
2018-09-20Gizmo: use simple unclipped win_to_ray functionCampbell Barton
When projecting the cursor onto a plane, clipping isn't important.
2018-09-20Cleanup: renaming missed from mergeCampbell Barton
2018-09-20Merge branch 'master' into blender2.8Campbell Barton
2018-09-20Cleanup: rename 3D view ray calculation functionsCampbell Barton
Using near far and optionally clipping planes is involved and not needed in many cases. Rename so a simpler version of this function can be added.
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-19BLI_utildefines: rename pointer conversion macrosCampbell Barton
Terms get/set don't make much sense when casting values. Name macros so the conversion is obvious, use common prefix for easier completion. - GET_INT_FROM_POINTER -> POINTER_AS_INT - SET_INT_IN_POINTER -> POINTER_FROM_INT - GET_UINT_FROM_POINTER -> POINTER_AS_UINT - SET_UINT_IN_POINTER -> POINTER_FROM_UINT
2018-09-19Cleanup: replace pointer/int casts with macrosCampbell Barton
2018-09-19Merge branch 'master' into blender2.8Campbell Barton
2018-09-19Multi-Objects: Initial select similar supportDalai Felinto
Note: I had to add an epsilon on top of the threshould for SIMVERT_NORMAL. Otherwise I was getting differences such as 0.000000something when comparing supposed-to-be-identical normals. The way I see it, the Threshold option is a user feature, where users can control more or less what they want selected. While the epsilon is a non-negotiable requirement for our float comparison here. This includes support for: * SIMVERT_NORMAL * SIMVERT_FACE * SIMVERT_EDGE Not included and currently not supported/disabled: * SIMVERT_VGROUP * SIMEDGE_* * SIMFACE_* While we are working on this, we prevent users from using the non-ported modes. Note: the bmo_similar.c file is still around, to be removed in the near future. Everyone: Please fell free to jump in and help tackling the missing modes. For details on the implementation discussion: https://developer.blender.org/D3674
2018-09-19Move select similar to its own fileDalai Felinto
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.
2018-09-18Correct view orientation update in last commitCampbell Barton
2018-09-18Gizmo: use spin widgets by defaultCampbell Barton
- Now the spin tool has a persistent gizmo. - Uses scene orientation, with additional view orientation. - Uses the cursor center, ignoring the pivot since the selection center is rarely useful. - Disable most of the redo gizmo's for now since they overlap, only allow adjusting the angle. Note: mixing new action with adjusting previous is confusing, we'll want to have design guidelines regarding this.
2018-09-18Cleanup: spin redo naming changesCampbell Barton
2018-09-18Cleanup: spin redo naming changesCampbell Barton
2018-09-18Cleanup: spin redo naming changesCampbell Barton
2018-09-18Cleanup: move editmesh spin gizmo into own fileCampbell Barton
To mix both initial spin and redo ends up being more involved, move into own file.
2018-09-18Gizmo: minor tweak to spin toolCampbell Barton
Make main angle adjustment radius larger since it's the most useful.
2018-09-17Gizmo: start spin gizmo draggingCampbell Barton
- Only respond to drag event, so placing the cursor is possible. - Start off with zero rotation, dragging adjusts.
2018-09-17Gizmo: Functions to re-initialize a group typeCampbell Barton
Partially re-initializing a gizmo is often more trouble then removing and re-adding.
2018-09-17Cleanup: rename gizmo group dataCampbell Barton
Abbreviate to 'ggd', replacing manipulator reference.
2018-09-13Tool System: make smooth and randomize interactiveCampbell Barton
2018-09-10Cleanup: Warning in release buildsSergey Sharybin
2018-09-10Correct argument typeCampbell Barton
2018-09-10Poly Build: disable use_boundary_tearCampbell Barton
Without this, it's more like deleting the vertex than dissolving.
2018-09-10Poly Build: dissolve was using selection, not highlightedCampbell Barton
Also no need to clear selection history, BM_mesh_elem_hflag_disable_all handles this.
2018-09-10Poly Build: set newly added elements activeCampbell Barton
2018-09-10Cleanup: use title capsCampbell Barton
2018-09-10Edit Mesh: pass Base array to picking functionsCampbell Barton
In some cases we need to use this array afterwards, so this gives control over which objects are used for picking. Also use an index argument as return argument so callers that need to know the index in the array don't need to calculate it afterwards.
2018-09-10Cleanup: rename edge-ring preselect fileCampbell Barton
Having all pre-selection in one file isn't so nice, differentiate edge-ring from element pre-selection.
2018-09-10Tool System: use preselect highlight w/ poly-buildCampbell Barton
- Poly build now uses a new gizmo for pre-selection which has the same behavior as loop-cut. This replaces hack where mouse-move set the active element which was no longer working properly because of missing depsgraph updates. - Multi-object support for poly-build. - Support for deformed cage. - Fix error where changing active object wasn't properly refreshing the preselect gizmo (for loopcut too). Currently holding Alt to select non-boundary element's isn't working.