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
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-06Fix T60935: More numerically stable distance to ray computationJacques Lucke
The old function was numerically very unstable for 2 reasons: computing the square and then subtracting the results. In the example in T60935 all precision was lost and it returned the distance 0 for all points. I also removed the `depth` parameter since it wasn't used and computing it would have made the code more complicated. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D4308
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-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
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-15Cleanup: comment line length (editors)Campbell Barton
Prevents clang-format wrapping text before comments.
2018-12-21Fix bug selecting verts in mixed edge/vert modeCampbell Barton
Own regression from 2.7x when adding multi-object select support.
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-12-14Merge branch 'master' into blender2.8Campbell Barton
2018-12-14Cleanup: naming (mean -> median) see T47811Campbell Barton
2018-12-12Merge branch 'master' into blender2.8Campbell Barton
2018-12-12Cleanup: use colon separator after parameterCampbell Barton
Helps separate variable names from descriptive text. Was already used in some parts of the code, double space and dashes were used elsewhere.
2018-12-07Depsgraph: Remove duplicated sets of recalc/update flagsSergey Sharybin
There were at least three copies of those: - OB_RECALC* family of flags, which are rudiment of an old dependency graph system. - PSYS_RECALC* which were used by old dependency graph system as a separate set since the graph itself did not handle particle systems. - DEG_TAG_* which was used to tag IDs. Now there is a single set, which defines what can be tagged and queried for an update. It also has some aggregate flags to make queries simpler. Lets once and for all solve the madness of those flags, stick to a single set, which will not overlap with anything or require any extra conversion. Technically, shouldn't be measurable user difference, but some of the agregate flags for few dependency graph components did change. Fixes T58632: Particle don't update rotation settings
2018-12-03Fix T58528: Assign material skips non-activeCampbell Barton
2018-11-263D View: remove 3D cursorCampbell Barton
Use 3D cursor from the scene (was previously used for local-view).
2018-11-25Local ViewDalai Felinto
Bring back per-viewport localview. This is based on Blender 2.79. We have a limit of 16 different local view viewports. We are using both the numpad /, as well as the regular /. Missing features: * Hack to make sure lights are always visible. * Make rendered mode with external engines to support this as well (probably just need to support this in the RNA iterators). * Support over 16 viewports by taking existing viewports out of local view. The code can use a cleanup pass in the future to unify the test to see if an object is visible (or we can use TESTBASE in more places).
2018-10-19Fix T57295: Edit-mesh modes got out of syncCampbell Barton
2018-10-05UI: rename Border Select -> Box SelectCampbell Barton
See: T56648
2018-09-26Fix memleak on edbm_select_linked_pick_invokeDalai Felinto
Issue introduced on 549ac6ddebef.
2018-09-20Cleanup: renaming missed from mergeCampbell Barton
2018-09-19Move select similar to its own fileDalai Felinto
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-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.
2018-09-10Cleanup: use function to set the active baseCampbell Barton
2018-09-05UI: hide mesh mode element redo panelCampbell Barton
2018-08-31Fix MESH_OT_loop_select: Deselect object objectsDalai Felinto
Before that if you loop select a mesh, it would deselect the previous selected edges of the selected mesh, leaving the other objects untouched.
2018-08-28Cleanup: compiler warnings.Brecht Van Lommel
2018-08-27BMesh: improvements/fixes to select side of activeCampbell Barton
- Add orientation option (defaults to local, as 2.7x does) can optionally use global, cursor, view... etc. - Fix typo which caused select flush to fail. - Fix for instanced objects (was only checking one instance). - Only tag for changes if a change is made. - Skip meshes with all vertices selected.
2018-08-24Fix MESH_OT_shortest_path_pickDalai Felinto
It was working only for REDO. The reason was that we were not tagging our beloved new multi-threaded depedency graph.
2018-08-24Multi-Objects: MESH_OT_select_axisDalai Felinto
Now that this operator is working properly (in world space axis), it can be ported for multi object support. The issue of only running on redo is still present though, to be investigated later.
2018-08-24MESH_OT_select_axis: Make it work with world axis, not local onesDalai Felinto
Not, I tried using `dist_signed_squared_to_plane_v3` but profiling showed that it is 50% slower than using regular `mul_v3_m4v3` for the verts. I managed to get this number closer when manually inlining all the functions called by `dist_signed_squared_to_plane_v3`. But still `mul_v3_m4v3` was better and it makes the code simpler to understand. Also I'm changing the default mode to positive, no idea why it was negative as default in the first place. Last but not least, the operator only works well on redo. This was a problem before, not introduced by this patch.
2018-08-24MESH_OT_select_axis: cleanup (use enum instead of hardcoded values)Dalai Felinto
2018-08-23Multi-Objects: MESH_OT_loop_selectDalai Felinto
2018-08-22Multi-Objects: MESH_OT_shortest_path_pickDalai Felinto
This fully works as "expected", however it seems strange when there is no selected vertex in the non-active object. In 2.7x if you join two monkeys, select a vertex in one of them and try to use this operator in the other it will select the lonely newly selected vertex. If you split both monkeys and do this in 2.8 while multi-editing them you won't get nothing when trying to ctrl+RMB any vertex in the monkey object that has nothing selected yet. I propose to have this addressed in an upcoming patch where we always select a vertex if no vertex was previously selected.
2018-08-143D View boarder/lasso select tool optionsCampbell Barton
Add tool options to control how select operates (add/sub/set/and/xor). Note: edit mode armature select still needs to support all options, this is complicated by how it handles partial end-point selection.
2018-07-25Keymap: Use 1..4 to change UV select modesCampbell Barton
Support for sync selection switching which keys apply.
2018-07-02Merge branch 'master' into blender2.8Campbell Barton
2018-07-02Cleanup: use bool for poll functionsCampbell Barton
2018-06-13Tag object/scene for selection update from operatorsSergey Sharybin
Before that depsgraph tagging was done from inside notifier listener in viewport. This had the following issues: - If there are no viewports, selection tag was not done. Causing possible issues when object becomes visible. - Required special trickery to detect which data to tag for update. - Was causing crash when transforming/selecting markers in clip editor. This is because selecting marker needed to poke viewport to redraw, since selected bundles will be displayed differently in viewport.
2018-06-04Merge branch 'master' into blender2.8Campbell Barton
2018-05-243D View: remove temporary edge-select hackCampbell Barton
This caused a glitch with COW, where forcing edge selection caused the evaluated scene to enable this afterwards. Now pass the selection mode as an argument to the draw function.
2018-05-24Correct own last commitCampbell Barton
2018-05-24Fix T55184: Edge-loop select fails w/ vert/face modesCampbell Barton
2018-05-22Cleanup: replace MEM_SAFE_FREE -> MEM_freeNCampbell Barton
No need to check for NULL in this case.
2018-05-16Multi-Object-Editing: MESH_OT_faces_select_linked_flatLuc Revardel
Reviewers: dfelinto Maniphest Tasks: T54643 Differential Revision: https://developer.blender.org/D3372
2018-05-14Fix error in MESH_OT_edge_face_add changesCampbell Barton
Context sensitive create also needs to check selected vertices. Also correct indentation.
2018-05-14MESH_OT_select_mirror: Only report when something to reportDalai Felinto
Inspired by D3299.
2018-05-14Multi- Objects: MESH_OT_select_face_by_sides by Rainer TrummerDalai Felinto
Maniphest Tasks: T54643 Differential Revision: https://developer.blender.org/D3301
2018-05-14T54643-Multi-Object EditMesh: MESH_OT_select_nthLuc Revardel
With changes by Dalai Felinto: * Move WM_operator.* outside for loop. * Update error message to handle Mesh and Meshes. * Skip main functionality when no vert/edge/face is selected. Maniphest Tasks: T54643 Differential Revision: https://developer.blender.org/D3371