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-06-08Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenkernel/BKE_sequencer.h source/blender/blenkernel/intern/sequencer.c source/blender/editors/curve/editcurve_paint.c source/blender/editors/gpencil/gpencil_edit.c source/blender/editors/gpencil/gpencil_paint.c source/blender/editors/gpencil/gpencil_utils.c source/blender/editors/include/ED_object.h source/blender/editors/include/ED_view3d.h source/blender/editors/interface/interface_eyedropper_depth.c source/blender/editors/render/render_opengl.c source/blender/editors/sculpt_paint/paint_image_proj.c source/blender/editors/sculpt_paint/sculpt.c source/blender/editors/space_view3d/drawobject.c source/blender/editors/space_view3d/view3d_draw.c source/blender/editors/space_view3d/view3d_edit.c source/blender/editors/space_view3d/view3d_intern.h source/blender/editors/space_view3d/view3d_select.c source/blender/editors/space_view3d/view3d_utils.c source/blender/editors/transform/transform_conversions.c source/blender/editors/transform/transform_snap.c source/blender/python/intern/gpu_offscreen.c source/blender/windowmanager/intern/wm_files.c
2018-06-05Moved function declarations from BKE_mesh.h → BKE_mesh_runtime.hSybren A. Stüvel
2018-06-02transform_snap_object: Do not use occlusion test when X-Ray is enabled.Germano
2018-05-29Use correct time for curve parent evaluationDalai Felinto
Time should alwaus come from depsgraph, not scene.
2018-05-26Fix error when snapping with occlusion.Germano
Face normal may be facing the wrong side.
2018-05-25ED_transform_snap_object: remove unused bmain parameter in context creation.Germano
2018-05-24Fix crash with snap and project to self.Germano
Apparently the original `edit_btmesh` is being freed and the new one has to be referenced
2018-05-22Transform: Support mixed snap in 3d View.Germano
Allows more than one snap mode to be enabled. So different combinations are possible. Reviewers: campbellbarton Reviewed By: campbellbarton Subscribers: Christopher_Anderssarian, duarteframos Tags: #bf_blender_2.8 Differential Revision: D3400
2018-05-21Transform Snap: Fix normal in the wrong space.Germano
2018-05-18Fix snap with occlusion.Germano
2018-05-18Ruler: Fix mixed snap.Germano
2018-05-18Transform: Improve the hierarchy in the choice of snapped elements in the ↵Germano
mixed snap. To snap to small edges in 3d_view is no longer obfuscated by vertices if then is also enabled.
2018-05-18Cleanup: remove unused function.Germano
2018-05-17Cleanup: Use `ED_view3d_win_to_ray_ex` to get the ray and remove unused ↵Germano
parameter.
2018-05-17Transform: Use `isect_ray_seg_v3` instead `dist_squared_ray_to_seg_v3` in ↵Germano
the function that tests the snap on edges.
2018-05-17Transform: Fix bugs for the latest changes to the snap system.Germano
2018-05-16fix build error in last commit.Germano
2018-05-16Snap system: Adds support to Clip Planes and uses a clip plane to simulate ↵Germano
occlusion This patch adds support for clip_planes (ie ignore what is behind a face)... The idea is to first execute a raycast to get the polygon to which the mouse cursor points. Then a snap test is done on the vertices or edges of the polygon. Then with the normal and location obtained in raycast a new clip_plane is created and the snap over the whole scene is processed ignoring the elements behind the clip_plane. Here 2 gif of how the previous patch would work on blender2.79: {F497176} {F497177} Reviewers: mont29, campbellbarton Reviewed By: campbellbarton Subscribers: bliblubli Tags: #bf_blender_2.8 Differential Revision: https://developer.blender.org/D2527
2018-05-15Transform: Snap: Make sure if bmesh arrays need to be recalculated.Germano
2018-05-15Scene raycast: The return index should indicate the polygon instead of the ↵Germano
looptri. This was the default behavior and could break some addon since looptri is almost useless for the current python API.
2018-05-15Revert "BLI_kdopbvh: Reference clip_planes callback to find nearest projected."Germano
This reverts commit 717dd4cecd2ea8eaa7b3bbfb5a5c7ec65f0337c0. It was causing problems in the protactor ruler. I'll think of a better solution.
2018-05-15Cleanup: pass the use_depth parameter to the `SnapObjectParams` struct in ↵Germano
the ED_transform_snap_object_project_view3d_mixed.
2018-05-15BLI_kdopbvh: Reference clip_planes callback to find nearest projected.Germano
Clip_planes are an important parameter to be used in callbacks.
2018-05-15Cleanup: Pass `Snap Object Params * params` to` iter_snap_objects`.Germano
And remove unnecessary `defaulf:` labels.
2018-05-15Cleanup: Use switch statement to test the object type in snap functions.Germano
2018-05-15Cleanup: compiler warnings, use constCampbell Barton
2018-05-14Transform: Use the new BLI_bvhtree_find_nearest_projected function to snap.Germano
2018-05-13Cleanup: Remove unused member.Germano
2018-05-13transform_snap_object: perf: Check the distance of the bound_box of objects ↵Germano
of type armature and curve first. And remove unused variables.
2018-05-13Cleanup: transform_snap_object: Remove unused variables and reuse the ↵Germano
precalc used to test the distance to the projected bound_box.
2018-05-12Fix missing fallback in recent aabb precalc funcCampbell Barton
Also comment unused vars
2018-05-12Refactor: Move functions to get the distance to a projected aabb to ↵Germano
BLI_match and remove confusing parameters.
2018-05-10Cleanup: warningsCampbell Barton
2018-05-10Transform: Make snapDerivedMesh use bvhtrees from loose edges and bvhtrees ↵Germano
from loose verts. Bvhtrees take up a lot of memory space, reusing the common bvhtree of looptris to snap to vertices and edges is a good way to save memory. Unfortunately we have a worsening performance in the snapping operation around 63% (addition to the original time). But as we often do not need to build a bvhtree of loose verts and loose edges, we have an improvement in cache time :) Since the CPU time of snapping operations (no matter how higth poly the object is) corresponds to less than 0.01% of all CPU time of a blender frame, that change is not really significant. Snapping operations on a mesh in edit mode have not changed significantly. Signed-off-by: Germano <germano.costa@ig.com.br>
2018-05-09ED_transform: Port ED_transform_snap_object to new Mesh-based system.Germano
Differential Revision: https://developer.blender.org/D2896
2018-05-06Merge branch 'master' into blender2.8Campbell Barton
2018-05-06Object Snap: add object & matrix to view ray castCampbell Barton
Some snap functions already exposed this.
2018-05-03Merge branch 'master' into blender2.8Germano
2018-05-03BKE bvhtree: Add `tree_type` parameter to `bvhtree_from_mesh_get`.Germano
This will allow greater control of the bvhtrees that are obtained, and helps identify problems. It is also an additional step to unify the functions.
2018-05-02Merge branch 'master' into blender2.8Campbell Barton
2018-05-01Refactoring: bvhutils: Use a function that gets the bvhtree through an ↵Germano
identifier type. Reviewed By: @campbellbarton Differential Revision: https://developer.blender.org/D3192
2018-04-18Fix missing initialization of depsgraph for snapping contextSergey Sharybin
Was causing crashes once attempting to use snapping. Reported by mano-wii in IRC, thanks!
2018-04-16Depsgraph: remove EvaluationContext, pass Depsgraph instead.Brecht Van Lommel
The depsgraph was always created within a fixed evaluation context. Passing both risks the depsgraph and evaluation context not matching, and it complicates the Python API where we'd have to expose both which is not so easy to understand. This also removes the global evaluation context in main, which assumed there to be a single active scene and view layer. Differential Revision: https://developer.blender.org/D3152
2018-04-13Depsgraph: remove engine type from evaluation context.Brecht Van Lommel
This was only used for viewport rendering, where we can just pass the engine type directly. There is no technical reason why we can't draw the same depsgrpah with different render engines. It also led to some weird things like requiring a render engine for snapping and raycast API functions. Differential Revision: https://developer.blender.org/D3145
2018-04-05Remove workspace object mode, reverts changes w/ 2.8Campbell Barton
This caused too many problems syncing object modes with multiple objects/windows/workspaces, see: D3130 for details.
2018-03-13Merge branch 'master' into blender2.8Campbell Barton
2018-03-13Cleanup: doxygen commentsCampbell Barton
2018-02-13Object Mode: remove Scene.obeditCampbell Barton
Add ED_screen_window_find, BKE_workspace_edit_object
2018-02-06Object Mode: use eval_ctx mode in transform codeCampbell Barton
This adds EvaluationContext into TransInfo
2018-02-06Object Mode: Add to EvaluationContext & DRWContextStateCampbell Barton