Page MenuHome

Cleanup: Move transform_snap_object.c to C++
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Mar 28 2022, 6:15 PM.

Details

Summary

This is meant to allow using C++ data structures in this file
as a performance improvement. Particularly Vector instead
of ListBase for duplilist.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Mar 28 2022, 6:15 PM
Hans Goudey (HooglyBoogly) created this revision.

Remove more designated initializers

Hans Goudey (HooglyBoogly) set the repository for this revision to rB Blender.Mar 28 2022, 6:52 PM

This has compiled in the buildbot on all platforms.

No real changes in performance as far as I could see.

source/blender/editors/transform/transform_snap_object.cc
906

This parameter is not actually being used, but if we are going to choose a value, let it be BVHTREE_FROM_EM_LOOPTRI or create a new like... BVHTREE_UNUSED?

This revision is now accepted and ready to land.Mar 28 2022, 9:01 PM