Page MenuHome

Edit Mesh: multi-object support for 'Snap to Symmetry'
AbandonedPublic

Authored by Noa K (noa) on May 8 2018, 9:27 PM.

Details

Summary

Adds multi-object support for 'snap to symmetry' as part of task T54643 (Multi-Object-Mode: EditMesh Tools)

Diff Detail

Repository
rB Blender
Branch
blender2.8
Build Status
Buildable 1500
Build 1500: arc lint + arc unit

Event Timeline

Noa K (noa) created this revision.May 8 2018, 9:27 PM
Noa K (noa) edited the summary of this revision. (Show Details)May 8 2018, 9:29 PM
Noa K (noa) retitled this revision from add multi-object support for 'snap to symmetry' to Edit Mesh: multi-object support for 'Snap to Symmetry'.May 8 2018, 9:34 PM
Noa K (noa) edited the summary of this revision. (Show Details)
Dalai Felinto (dfelinto) requested changes to this revision.May 9 2018, 12:59 PM

Thanks for your patch but it needs a few changes to proceed. See in-line comments.

source/blender/editors/mesh/editmesh_tools.c
6476

'const' variables that are not related to the mesh, and in particular RNA.*get functions should be moved outside the for loop.

6551

Errors should only be reported once, and only if all the objects fall into this error. That also means that for single object editing it should behave as before.

This revision now requires changes to proceed.May 9 2018, 12:59 PM

I moved the constant and variables that do not depend on the mesh outside of the loop and moved the report to outside the multi-object loop.
Now it will only report the statistics once and these stats will be the total over all objects. If one vertex fails on one object, but all other objects have no failures, the failure will still be reported.

Also, I moved the memory allocation to after the check of whether to skip the object, to prevent memory leaks.

I also renamed the variables to be clear that they refer to vertices and not objects.

Dalai Felinto (dfelinto) requested changes to this revision.May 14 2018, 12:28 PM

The patch is failing to apply. Can you please re-submit it with arcanist?
https://wiki.blender.org/index.php/Dev:Doc/Tools/Code_Review#Use_Arcanist

This revision now requires changes to proceed.May 14 2018, 12:28 PM

I've resubmitted this diff as D3374. I think the issue was that I had diffed from master and not blender2.8.