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
2017-09-10merged the master branchsoc-2017-vertex_paintDarshan Kadu
2017-02-04Remove flag: `SNAP_OBJECT_USE_CACHE` from snap_contextGermano Cavalcante
Since the cache is created in one way or another, this flag is not really making a difference More details here: D2496
2017-01-31Fix T49632: Grease pencil in "Edit Strokes" mode: Snap tool did not snap ↵Germano Cavalcante
points to active object A simple confusion between enums: ~SNAP_NOT_ACTIVE~
2016-07-28Cleanup: unused transform memberCampbell Barton
2016-06-21Fix T48697: Brush curve-stroke snaps strangelyCampbell Barton
Support Snapping screen-space 2d curves, (was applying world-space coords in screen-space). Also show snap settings in header.
2016-06-18Cleanup: style, whitespace, doxy filepathsCampbell Barton
2016-06-03Cleanup & simplify snapping functionsGermano Cavalcante
- the name of the enumerator `SNAP_NOT_OBEDIT` was changed to `SNAP_NOT_ACTIVE`. - the parameter `snap_to_flag` was moved to outside `SnapObjectParams`. - the member `use_object_edit` was renamed to `use_object_edit_cage`. - added the arg `params` in `ED_transform_snap_object_project_ray`. - simplifications in the loop of the function `snapObjectsRay`.
2016-05-31Fix T48554: Absolute grid snap fails w/ cursor pivotCampbell Barton
Use center of selection when using absolute grid snapping and cursor pivot.
2016-05-11Transform Volume rewrite/refactorGermano Cavalcante
Take advantage of the efficiency provided by the snap_context. Also fixes errors: - volume snap fails based on view angle (T48394). - multiple instances of dupli-objects break volume calculation.
2016-05-11BLI_kdopbvh: Use distance for BLI_bvhtree_ray_cast_allCampbell Barton
Pass distance argument so its possible to limit the range we get all hits from. Other changes: - Use boundbox test before calling callback, avoids redundant calls. - Remove meaningless return value. - Add doc string, explaining purpose of this function.
2016-05-10Correct armature-sketch snap context useCampbell Barton
Use scene snap mode. Also allow passing NULL ray-depth which falls back to BVH_RAYCAST_DIST_MAX.
2016-05-09Fix crash introduced w/ snap refactorCampbell Barton
Create snapping context when in the 3d view, transforming pose bones and grease-pencil crashed.
2016-05-06Correct snap checks for edges & facesCampbell Barton
Snap targets can't contain vertices which are being transformed
2016-05-05Don't overwrite existing snap contextCampbell Barton
Re-activating transform would overwrite previous context, leaking memory.
2016-05-05Transform/Snap: EditMesh/BKE_bvhutils API improvementsGermano Cavalcante
Separate the creation of trees from EditMesh from the creation of trees from DerivedMesh. This was meant to simplify the API, but didn't work out so well. `bvhtree_from_mesh_*` actually is working as `bvhtree_from_derivedmesh_*`. This is inconsistent with the trees created from EditMesh. Since for create them does not use the DerivedMesh. In such cases the dm is being used only to cache the tree in the struct DerivedMesh. What is immediately released once bvhtree is being used in functions that change(tag) the DM cleaning the cache. - Use a filter function so users of SnapObjectContext can define how edit-mesh elements are handled. - Remove em_evil. - bvhtree of EditMesh is now really cached in the snap functions. - Code becomes organized and easier to maintain. This is an important patch for future improvements in snapping functions.
2016-04-22Transform Snap: initial snap context refactorCampbell Barton
This introduces a snap-context that can be re-used for casting rays into the scene (by operators such as walk-mode, ruler and transform code). This can be used to cache data between calls too.
2016-03-24Fix T47838: Walk gravity fails w/ intersecting objectsCampbell Barton
Regression in 3ad0344, fix from @mano-wii. More comprehensive fix can be done after 2.77a.
2016-02-10Cleanup: remove unused radius argumentCampbell Barton
2016-02-05Fix error in last commit.Bastien Montagne
treedata could have a non-initialized tree in case of edge_snapping, leading to segfault. Spotted by @mano-wii, thanks.
2016-02-05Fix T47326: Snap to vertices not working properly in orthogonal view mode.Bastien Montagne
Same causes as when snapping to faces, so same solution: in case of ortho view, offset start of ray to be just slightly outside of the target's bbox, to avoid too much far away start point that generate floating point computation instability in BVH raycasting. Note that this lead to some refactoring, to avoid duplicating too much of code. For now, edge snapping seems to behave OK (uses different logic), so not touched. Based on patch by Germano Cavalcante (@mano-wii), thanks!
2016-02-01Fix transform crash in rare casesCampbell Barton
In some cases transform modes would use the custom-data pointer, other times the transform conversion functions would. However with some combinations (bone mirror + bend for eg), both conversion & transform mode would use this pointer causing a crash. Fix this by having 2 custom-data pointers: one for the mode, another for the data-type. This also simplifies time-slide which was conditionally mixing mode/type data in the one array.
2016-01-25Transform: optimize vertex snap w/ nearest-to-rayGermano Cavalcante
Use BLI_bvhtree_find_nearest_to_ray for vertex snapping, avoids doing screen-space lookup on each vertex.
2016-01-18Transform: no need to store distance to snap pointCampbell Barton
Compare squared distance to snap target since the value is only ever used for comparison.
2016-01-18Fix T29153: Rotate & scale ignore snapping pointsCampbell Barton
Checking for 'Closest' here isn't needed since TransSnap.snapTarget callback is already ensuring the selected target is the closest. Also don't reuse the pre-calculated distance, since its only valid to do this when there are no snap points and this isn't a significant gain to avoid the extra calculation - run once per update.
2016-01-12Fix T47164: [Scene.raycast] - True result when it should be False.Bastien Montagne
We cannot use FLT_MAX as initi distance for raycast... Renamed TRANSFORM_DIST_MAX_RAY to BVH_RAYCAST_DIST_MAX, moved it into BLI_kdopbvh, and use in RNA raycast callbacks (and all other places using that API).
2015-12-02Transform Snap: add optional face index argCampbell Barton
2015-12-02Cleanup: transform snap argumentsCampbell Barton
This was getting very hard to follow, - mixing input/output args. - mixing arg order between functions. - arg names (mode, snap_mode) rename to (snap_to, snap_select)
2015-11-24Fix T46816: Vert/Edge snap fails at edge of boundsCampbell Barton
2015-10-23Correct own error w/ snap-scale T46503Campbell Barton
Don't use nan for comparisons.
2015-10-23Fix snap-scale w/ axis constraintCampbell Barton
Related to T46503, fix only worked when the snap target was axis-aligned.
2015-10-16Fix T46503: Snap scale fails using corner pivotCampbell Barton
2015-10-09Correct own error in editmesh bvhCampbell Barton
Flag mix-up and uninitialized var.
2015-09-20Cleanup: Use new vector transform functionsJulian Eisel
2015-09-18Use squared length where possibleCampbell Barton
2015-09-14Fix T46099: snapping failed on objects with some NULL-dimension in their bbox.Bastien Montagne
Added a helper that ensures a bbox has some non-NULL dimension along all its axes. Also, fixed some (rather unlikely) NULL dereference cases (though it should not in this context, `BKE_object_boundbox_get()` can return NULL).
2015-09-13Cleanup: spellingCampbell Barton
2015-09-04Quiet warningsJulian Eisel
We had too many warnings lately... was awaiting that someone would kill them - didn't happen -> goes to my commit ratio! :P
2015-09-02Fix snapping edit-gpencil to edit-meshCampbell Barton
Reported in T45978 Was checking mesh selection state.
2015-09-01Fix T45978: Ruler ignores new edit-mesh dataCampbell Barton
2015-09-01Fix uninitialized normal var w/ objects snappingCampbell Barton
2015-08-26Correct fix for T39161: Scaling & snapCampbell Barton
2015-08-26Fix T39161: Scaling fails w/ snap-to-pointCampbell Barton
2015-08-20Transform: Use BVH for volume-snap (optimization)Campbell Barton
Was performing ray-tri intersection checks on all faces. Note, this isn't using isect_ray_tri_threshold_v3 which was used to prevent ray-casts slipping through between faces. Instead we'll move to using watertight intersections by default.
2015-07-23Use looptri for BVH raycast (simple cases)Campbell Barton
2015-07-23Use looptri for volume snappingCampbell Barton
2015-07-13Fix T45402: Transform crash w/ project+align snapCampbell Barton
Only euler rotations were checked for. Also delta rotations caused random/unusable output.
2015-07-01Transform: use snap-to-grid behavior from D910Campbell Barton
Excuse the trashing here, but seems users prefer this most (though both can be useful). Note that the UI remains the same, so this is an option for 'Incremental' snapping instead of a new snapping mode.
2015-06-30Transform: add back absolute snapping optionCampbell Barton
This ensures that vertices are grid-aligned while transforming, instead of just snapping the input values for translate.
2015-06-30Cleanup: transform grid snap round, not floorCampbell Barton
2015-06-27Transform: absolute grid snappingCampbell Barton
D910 by @donfabio with edits New icon for menu is still TODO