diff options
author | Dalai Felinto <dalai@blender.org> | 2022-03-30 12:07:29 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2022-03-30 12:07:57 +0300 |
commit | 8621fdb10dc402eeff5aa996eeb992a513afd4c0 (patch) | |
tree | 9f159edc1f57c61524bcc327a30d24b18a342c73 /release/scripts/startup/bl_ui | |
parent | 35f34a3cf840852b70c1be5910be5517265d96cc (diff) |
Apply Object Transform: Multi-user data support
The current behaviour is to prevent multi-user data from having its
transformation applied.
However in some particular cases it is possible to apply them:
* If all the users of the multi-user data are part of the selection.
* If not all the users are in the selection but the selection is made
single-user.
The active object is used as reference to set the transformation of the
other selected objects.
Note: For simplicity sake, this new behaviour is only available if all
the selection is using the same data.
Differential Revision: https://developer.blender.org/D14377
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index e78ea9d7fc1..0919faa8460 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -2640,6 +2640,8 @@ class VIEW3D_MT_object_apply(Menu): def draw(self, _context): layout = self.layout + # Need invoke for the popup confirming the multi-user data operation + layout.operator_context = 'INVOKE_DEFAULT' props = layout.operator("object.transform_apply", text="Location", text_ctxt=i18n_contexts.default) props.location, props.rotation, props.scale = True, False, False |