Mocap addon: auto-scale doesn't work (patch attached) #42416
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#42416
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 7 64-bit, Blender 2.72b
Blender Version
Broken: Blender 2.72b
Also checked latest version from GIT (addon repo
b714750bf0
)Short description of error
The "auto scale" feature of the mocap addon is broken. It applies the wrong scale, and keeps applying it. This means that not only is the initial result wrong, it keeps getting wronger every time you press the "auto scale" button.
Exact steps for others to reproduce the error
Open the attached blend file mocap_tools_test.blend. Select the right-hand armature, then shift-select the left-hand armature. In the object panel, click "Auto scale performer" a few times.
Expected behaviour: the first click sets the correct scale, subsequent clicks do nothing as the scale is already correct.
Observed behaviour: every click makes the performer skeleton change in size, and none of them is the expected size.
Patch
Here is my first patch to Blender ever: {F119931}!
Apart from fixing this bug, I've also simplified the code. There were a few things that were explicitly coded while there are Python builtins that perform the same operation (and do it faster).
Changed status to: 'Open'
Added subscriber: @sybrenstuvel
Mocap addon: auto-scale doesn't workto Mocap addon: auto-scale doesn't work (patch attached)Hey Sybren, patch LGTM, I’d like to commit it with you as author (git allows that), but would need an email address for that, mind giving me one (would be a public mail, since it's available in git logs - we can also use a garbage fake mail like sybrenstuvel@foo.org if really needed)?
Hi Bastien. Thanks for that, and feel free to use sybren@stuvel.eu.
This issue was referenced by
2b25d94bbd
Changed status from 'Open' to: 'Resolved'
Closed by commit
2b25d94bbd
.Thanks, committed! :)