Normalize Vertex Groups while Armature modifier is hidden #110946

Closed
opened 2023-08-09 11:12:40 +02:00 by Fynn · 4 comments

System Information
Operating system: MacOS 13.4 (22F66) Ventura
Graphics card: Apple M2

Blender Version
Broken: 3.6.1, 3.6.0
Worked: 3.5.1

Short description of error
Normalizing all vertex groups while Armature modifiers are present with show_viewport disabled will result in the following error:

Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
  File "/Applications/Blender361.app/Contents/Resources/3.6/scripts/modules/bpy/ops.py", line 113, in __call__
    ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Error: No vertex groups to operate on

Exact steps for others to reproduce the error
Try this on any object with armature modifiers and the respective vertex groups.

  1. Disable show_viewport on the modifier(s).
  2. Call bpy.ops.object.vertex_group_normalize_all(lock_active=False) (Just noticed, this also happens when calling the operator from the UI)

I tested this both on a complex rig (Rainv2) and the default cube bound to a single bone.

**System Information** Operating system: MacOS 13.4 (22F66) Ventura Graphics card: Apple M2 **Blender Version** Broken: 3.6.1, 3.6.0 Worked: 3.5.1 **Short description of error** Normalizing all vertex groups while Armature modifiers are present with show_viewport disabled will result in the following error: ``` Traceback (most recent call last): File "<blender_console>", line 1, in <module> File "/Applications/Blender361.app/Contents/Resources/3.6/scripts/modules/bpy/ops.py", line 113, in __call__ ret = _op_call(self.idname_py(), None, kw) RuntimeError: Error: No vertex groups to operate on ``` **Exact steps for others to reproduce the error** Try this on any object with armature modifiers and the respective vertex groups. 1. Disable `show_viewport` on the modifier(s). 2. Call `bpy.ops.object.vertex_group_normalize_all(lock_active=False)` (Just noticed, this also happens when calling the operator from the UI) I tested this both on a complex rig (Rainv2) and the default cube bound to a single bone.
Fynn added this to the 3.6 LTS milestone 2023-08-09 11:12:40 +02:00
Fynn added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-08-09 11:12:41 +02:00
Member

Can confirm. The modifier has to be visible for this to take effect.

BKE_object_defgroup_subset_from_select_type will give r_subset_count==0 cc @ideasman42

Can confirm. The modifier has to be visible for this to take effect. `BKE_object_defgroup_subset_from_select_type` will give `r_subset_count==0` cc @ideasman42
YimingWu added
Module
Animation & Rigging
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-08-09 12:22:15 +02:00
Member

Can we raise the priority if this is a regression?

Can we raise the priority if this is a regression?
Pratik Borhade added
Priority
High
and removed
Priority
Normal
labels 2023-08-10 09:24:36 +02:00
Member

@nrupsis : related to f78aa6c034 ?

@nrupsis : related to f78aa6c03491963fcd16bafd8d987736ac8aedaf ?
Member

I have a fix here: #112648 for people to test out.

I have a fix here: #112648 for people to test out.
Sybren A. Stüvel self-assigned this 2023-09-28 11:37:33 +02:00
Sybren A. Stüvel removed their assignment 2023-09-28 11:37:44 +02:00
Nate Rupsis was assigned by Sybren A. Stüvel 2023-09-28 11:37:49 +02:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-09-29 15:32:12 +02: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
5 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#110946
No description provided.