Page MenuHome

Modifiers: Support applying modifiers for multi-user data
ClosedPublic

Authored by Dalai Felinto (dfelinto) on Mar 18 2022, 7:59 PM.

Details

Summary

The current behaviour is to prevent multi-user data from having its
modifier applied.

Instead, with this patch, we now warn the user that if they want to
proceed the object will be made single-user.

Note that this only makes the object data single-user. Not the material or actions.

As a future step we can apply the same behaviour for the Grease Pencil modifiers.

Diff Detail

Repository
rB Blender
Branch
apply-transform (branched from master)
Build Status
Buildable 21184
Build 21184: arc lint + arc unit

Event Timeline

Dalai Felinto (dfelinto) requested review of this revision.Mar 18 2022, 7:59 PM
Dalai Felinto (dfelinto) created this revision.
  • Copies the logic from D14377

Rebasing with master after latest C++ cleanup fixes

  • Support parented active object

It still needs to support when the children are parented.

Cleanup, working for all transforms and parent, ready for final review

Dalai Felinto (dfelinto) retitled this revision from Apply Scale: multi-user data support (WIP) to Apply Object Transform: Multi-user data support.Mar 24 2022, 7:13 PM
Dalai Felinto (dfelinto) edited the summary of this revision. (Show Details)

Account for active object not being selected.

It seems this patch has been mixed up with D14377, I've submitted a review to this patch there.

Dalai Felinto (dfelinto) retitled this revision from Apply Object Transform: Multi-user data support to Modifiers: Support applying modifiers for multi-user data.Mar 28 2022, 10:59 AM
Dalai Felinto (dfelinto) edited the summary of this revision. (Show Details)

Upload the correct patch

From review: Add comment in the iterator

Dalai Felinto (dfelinto) updated this revision to Diff 49769.EditedMar 28 2022, 12:22 PM

wrong update

Re-uploading correct code

... re-uplaoding the correct patch

Swapping the patches is forcing me to arc diff update every time and everything is a mess now :)

I hope the patches are approved soon so I can stop pushing the wrong patch up.

This revision is now accepted and ready to land.Mar 30 2022, 1:21 AM
Bastien Montagne (mont29) requested changes to this revision.Mar 30 2022, 9:42 AM

Generally looks fine, some notes below.

source/blender/editors/object/object_modifier.c
1457–1461 ↗(On Diff #49781)

Not sure about the logic of this block? If the prop is set, and is set to false, the operation should abort, not be re-started with the confirmation message?

1485 ↗(On Diff #49781)

"Make the object's geometry data-block single user if needed"

1485 ↗(On Diff #49781)

"Make Single User" or "Make Geometry Single User" ? 'it' does not mean anything (and certainly not the object itself, which would be the first thing I'd think about in this context)

This revision now requires changes to proceed.Mar 30 2022, 9:42 AM
  • From review: Change invoke logic + rename property + tooltip
This revision is now accepted and ready to land.Mar 30 2022, 11:05 AM