Faster and better batch reproject

2.4.0

- changed: Batch reproject consider camera movement and is almost 8x faster
- added: Batch reproject have "Current" mode (using current tool setting)
This commit is contained in:
pullusb
2024-01-18 19:24:52 +01:00
parent 280a575631
commit 053a9d7f7b
5 changed files with 121 additions and 50 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ from .utils import get_gp_draw_plane, location_to_region, region_to_location
### passing by 2D projection
def get_3d_coord_on_drawing_plane_from_2d(context, co):
plane_co, plane_no = get_gp_draw_plane(context)
plane_co, plane_no = get_gp_draw_plane()
rv3d = context.region_data
view_mat = rv3d.view_matrix.inverted()
if not plane_no: