'Mirror Vertex Group' operator doesn't apply to selected Vertex Group #92510

Open
opened 2021-10-26 20:54:19 +02:00 by Sam Walker · 12 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.68

Blender Version
Broken: version: 2.93.5, branch: master, commit date: 2021-10-05 12:04, hash: a791bdabd0
Worked: N/A (but following steps described in the 2.93 online manual), does not work at all in 2.79b.

Short description of error
Following the steps detailed in the "Mirror to Opposite Bone" tip in the online manual here , applying the 'Mirror Vertex Group' operator does not mirror the currently selected vertex group in the 'Vertex Groups' Object Data Properties tab. Assuming this is a bug as I can't find a way to reliably achieve the intended behaviour.

Exact steps for others to reproduce the error

  • Open attached .blend
  • Select "Upper.l" in the 'Vertex Groups' list, in the 'Object Data Properties' panel.
  • Twirl down the 'Vertex Group Specials' menu to the right and press 'Copy Vertex Group'.
  • Rename the copy to "Upper.r" (the name of the corresponding bone on the right-hand side).
  • Make sure the new "Upper.r" group is selected, twirl down the 'Vertex Group Specials' menu again and select 'Mirror Vertex Groups'.
  • The selected "Upper.r" vertex group remains unchanged, however the original "Upper.l" group is mirrored. It's expected that the "Upper.r" group should be the one that gets mirrored.

Mirror Vertex Groups Bug_v1.blend

Problem is that it defaults to having the Flip Group Names option on.
Hit {key F9} (to bring up the Adjust last Operation panel), uncheck Flip Group Names.

This will then works somewhat expected, but it is very hidden (since there is not even a Adjust last Operation panel by default in the Properties Editor.

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.68 **Blender Version** Broken: version: 2.93.5, branch: master, commit date: 2021-10-05 12:04, hash: `a791bdabd0` Worked: N/A (but following steps described in the 2.93 online manual), does not work at all in 2.79b. **Short description of error** Following the steps detailed in the "Mirror to Opposite Bone" tip in the online manual [here ](https://docs.blender.org/manual/en/2.93/sculpt_paint/weight_paint/editing.html#bpy-ops-object-vertex-group-mirror), applying the 'Mirror Vertex Group' operator does not mirror the currently selected vertex group in the 'Vertex Groups' Object Data Properties tab. Assuming this is a bug as I can't find a way to reliably achieve the intended behaviour. **Exact steps for others to reproduce the error** - Open attached .blend - Select "Upper.l" in the 'Vertex Groups' list, in the 'Object Data Properties' panel. - Twirl down the 'Vertex Group Specials' menu to the right and press 'Copy Vertex Group'. - Rename the copy to "Upper.r" (the name of the corresponding bone on the right-hand side). - Make sure the new "Upper.r" group is selected, twirl down the 'Vertex Group Specials' menu again and select 'Mirror Vertex Groups'. - The selected "Upper.r" vertex group remains unchanged, however the original "Upper.l" group is mirrored. It's expected that the "Upper.r" group should be the one that gets mirrored. [Mirror Vertex Groups Bug_v1.blend](https://archive.blender.org/developer/F11527141/Mirror_Vertex_Groups_Bug_v1.blend) Problem is that it defaults to having the `Flip Group Names` option on. Hit {key F9} (to bring up the `Adjust last Operation` panel), uncheck `Flip Group Names`. This will then works somewhat expected, but it is very hidden (since there is not even a `Adjust last Operation` panel by default in the Properties Editor.
Author

Added subscriber: @Hexbob6

Added subscriber: @Hexbob6

Added subscriber: @jwvdronkelaar

Added subscriber: @jwvdronkelaar

This comment was removed by @jwvdronkelaar

*This comment was removed by @jwvdronkelaar*

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Seems to happen in older versions too, checked 2.91. When you run operator again it actually mirrors both left and right, so you would get intended result, but I don't think this is intentional. I wasn't able to see from code though.

Seems to happen in older versions too, checked 2.91. When you run operator again it actually mirrors both left and right, so you would get intended result, but I don't think this is intentional. I wasn't able to see from code though.
Author

I'm sure I've seen this operator work correctly in the past but have just downloaded and tested in the last stable build of 2.79b and it seems to not work at all (ie. nothing gets flipped, regardless of the selected group), despite giving an incorrect info notification saying '525 vertices mirrored' - so in that respect, despite not working as expected in 2.9x, it's an improvement! 😄 Has it really been broken for so long though, I'm sure I've run into scenarios where I've needed to mirror v.groups before and done so without issue but it seems like... maybe not?

Here's a 2.79b-compatible file in case it's needed for testing:
279b_Mirror Vertex Groups Bug_v1.blend

I'm sure I've seen this operator work correctly in the past but have just downloaded and tested in the last stable build of 2.79b and it seems to not work at all (ie. nothing gets flipped, regardless of the selected group), despite giving an incorrect info notification saying '525 vertices mirrored' - so in that respect, despite not working as expected in 2.9x, it's an improvement! 😄 Has it really been broken for so long though, I'm sure I've run into scenarios where I've needed to mirror v.groups before and done so without issue but it seems like... maybe not? Here's a 2.79b-compatible file in case it's needed for testing: [279b_Mirror Vertex Groups Bug_v1.blend](https://archive.blender.org/developer/F11541862/279b_Mirror_Vertex_Groups_Bug_v1.blend)
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

I think it defaults to having the Flip Group Names option on.
Hit {key F9} (to bring up the Adjust last Operation panel), uncheck Flip Group Names.

So actually, this does not look like a bug to me.

Can anyone confirm?

I think it defaults to having the `Flip Group Names` option on. Hit {key F9} (to bring up the `Adjust last Operation` panel), uncheck `Flip Group Names`. So actually, this does not look like a bug to me. Can anyone confirm?

In #92510#1242427, @lichtwerk wrote:
I think it defaults to having the Flip Group Names option on.
Hit {key F9} (to bring up the Adjust last Operation panel), uncheck Flip Group Names.

So actually, this does not look like a bug to me.

Can anyone confirm?

Can confirm, I did not check operator properties. So this seems to work as designed, though not really sure if it works as intended.

> In #92510#1242427, @lichtwerk wrote: > I think it defaults to having the `Flip Group Names` option on. > Hit {key F9} (to bring up the `Adjust last Operation` panel), uncheck `Flip Group Names`. > > So actually, this does not look like a bug to me. > > Can anyone confirm? Can confirm, I did not check operator properties. So this seems to work as designed, though not really sure if it works as intended.
Author

Interesting, yes I can confirm as well that subsequently disabling the 'Flip Group Names' checkbox in the operator properties causes the mirroring to occur correctly. As well, using the operator with 'Flip Group Names' enabled before renaming the copy to "Upper.r" causes the mirroring to work as expected.

I will say however that from a UX standpoint I'd agree with you, @iss, in that although it works as designed possibly doesn't work as the user intends. Perhaps when calling the 'Mirror Vertex Group' operator from the 'Vertex Group Specials' drop down, if possible it would be more intuitive to disable the 'Flip Group Names' default? Even as an advanced user, the lack of a last operation panel when you run it from that menu (without pressing {key F9}) - alongside an operator name that suggests a different default function - can evidently make it tricky to figure out exactly why it's working the way that it is?

This is also true for the 'Flip Group Names' parameter. From the name it seems like you should be able to select a vertex group, run the operator with said parameter enabled and as a result it will rename the "Upper.l" vertex group to "Upper.r", for example, yet this also doesn't seem to be the case?

Interesting, yes I can confirm as well that subsequently disabling the 'Flip Group Names' checkbox in the operator properties causes the mirroring to occur correctly. As well, using the operator with 'Flip Group Names' enabled **before** renaming the copy to "Upper.r" causes the mirroring to work as expected. I will say however that from a UX standpoint I'd agree with you, @iss, in that although it works as designed possibly doesn't work as the user intends. Perhaps when calling the 'Mirror Vertex Group' operator from the 'Vertex Group Specials' drop down, if possible it would be more intuitive to disable the 'Flip Group Names' default? Even as an advanced user, the lack of a last operation panel when you run it from that menu (without pressing {key F9}) - alongside an operator name that suggests a different default function - can evidently make it tricky to figure out exactly why it's working the way that it is? This is also true for the 'Flip Group Names' parameter. From the name it seems like you should be able to select a vertex group, run the operator with said parameter enabled and as a result it will rename the "Upper.l" vertex group to "Upper.r", for example, yet this also doesn't seem to be the case?
Member

This looks like it needs some design work first.

This looks like it needs some design work first.
Philipp Oeser removed the
Interest
Animation & Rigging
label 2023-02-09 14:35:29 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#92510
No description provided.