Mesh Edit tools units #97421

Open
opened 2022-04-18 10:16:34 +02:00 by stefano · 7 comments

System Information
Operating system: Windows 10
Graphics card: GTX 1050

Blender Version
Broken:

  • 3.1
  • 3.2.0 Alpha, branch: master, commit date: 2022-04-19 14:30, hash: blender/blender@721a9bc35c

Addon Information
Name: Edit Mesh Tools (0, 3, 6)
Author: Meta-Androcto

Short description of error
The bpy.ops.mesh.offset_edges() operator does not respect the scene's unit settings. Its width property is unitless.

Exact steps for others to reproduce the error

  • Set units to imperial (Scene Properties > Units > Unit System)
  • Add a plane and switch to edit mode
  • Select all vertices and apply Offset Edges (Sidebar > Edit > Mesh Tools > Edge Tools)
  • Set width for offset to 1.0
  • Measure offset distance with measure tool. It is always 1m (3.28084 ft).
**System Information** Operating system: Windows 10 Graphics card: GTX 1050 **Blender Version** Broken: - 3.1 - 3.2.0 Alpha, branch: master, commit date: 2022-04-19 14:30, hash: `blender/blender@721a9bc35c` **Addon Information** Name: Edit Mesh Tools (0, 3, 6) Author: Meta-Androcto **Short description of error** The `bpy.ops.mesh.offset_edges()` operator does not respect the scene's unit settings. Its `width` property is unitless. **Exact steps for others to reproduce the error** - Set units to imperial (*Scene Properties > Units > Unit System*) - Add a plane and switch to edit mode - Select all vertices and apply *Offset Edges* (*Sidebar > Edit > Mesh Tools > Edge Tools*) - Set width for offset to 1.0 - Measure offset distance with measure tool. It is always 1m (3.28084 ft).
Author

Added subscriber: @stefanoascaridesign

Added subscriber: @stefanoascaridesign

Added subscriber: @rjg

Added subscriber: @rjg

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

What particular part of the add-on does not handle the changed scene units properly? Please provided step by step instructions to reproduce the issue.

What particular part of the add-on does not handle the changed scene units properly? Please provided step by step instructions to reproduce the issue.
Author

Hi Robert,

Here are steps to replicate the problem:

  • Start blender with general file
  • Set units to imperial
  • Add any mesh shape (ie simple plane)
  • Edit plane in edit mode and launch Mesh tools > Edge Tools
  • Offset edge by 1.0
  • Measure offset difference in plan with measure tool. Result is always 3.30 (1m = 3.30 feet)

It would seem mesh tools sticks to meters regardless of what the current project units are set to.

Hi Robert, Here are steps to replicate the problem: - Start blender with general file - Set units to imperial - Add any mesh shape (ie simple plane) - Edit plane in edit mode and launch Mesh tools > Edge Tools - Offset edge by 1.0 - Measure offset difference in plan with measure tool. Result is always 3.30 (1m = 3.30 feet) It would seem mesh tools sticks to meters regardless of what the current project units are set to.

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

That is the case because the width property is not marked as a length. Adding unit="LENGTH" to the property should fix this, if I'm not mistaken.

That is the case because the width property is not marked as a length. Adding `unit="LENGTH"` to the property should fix this, if I'm not mistaken.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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-addons#97421
No description provided.