Add Cube 1m unit size bugs out to 2m #86347

Closed
opened 2021-03-06 21:18:35 +01:00 by Kjell Emanuelsson · 12 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX TITAN X/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71

Blender Version
Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: 02948a2cab
Worked: (newest version of Blender that worked as expected)

Short description of error
Using 'Add Cube' on a 1meter cube, holding shift for unit size, it creates a 2meter cube instead. Note: Origin of the 1m cube is not in the center: on bottom.

Exact steps for others to reproduce the error

  • Snapping is on
  • Use 'Add Cube' tool, snap to cover one side on a 1m cube with the origin on the bottom (in the center of the scene) with SHIFT for unit size.
  • A 2m cube is created instead of expected 1m cube.
    add_cube_bug_1m.mp4
**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX TITAN X/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71 **Blender Version** Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: `02948a2cab` Worked: (newest version of Blender that worked as expected) **Short description of error** Using 'Add Cube' on a 1meter cube, holding shift for unit size, it creates a 2meter cube instead. Note: Origin of the 1m cube is not in the center: on bottom. **Exact steps for others to reproduce the error** - Snapping is on - Use 'Add Cube' tool, snap to cover one side on a 1m cube with the origin on the bottom (in the center of the scene) with SHIFT for unit size. - A 2m cube is created instead of expected 1m cube. [add_cube_bug_1m.mp4](https://archive.blender.org/developer/F9874397/add_cube_bug_1m.mp4)

Added subscriber: @Kjell-1

Added subscriber: @Kjell-1
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

Changed status from 'Needs Triage' to: 'Confirmed'
Philipp Oeser self-assigned this 2021-03-06 22:57:46 +01:00
Member

Can confirm, it is not only an issue with the add tool, python is also inconsistent, check:

bpy.ops.mesh.primitive_cube_add(size=2, enter_editmode=False, location=(0, -1, 0), rotation=(0, 0, 0), scale=(1, 1, 1))

vs

bpy.ops.mesh.primitive_cube_add(size=2, enter_editmode=False, location=(0, -1, 0), rotation=(0, 0, 0), scale=(0.999, 0.999, 0.999))

Will check.

Can confirm, it is not only an issue with the add tool, python is also inconsistent, check: ``` bpy.ops.mesh.primitive_cube_add(size=2, enter_editmode=False, location=(0, -1, 0), rotation=(0, 0, 0), scale=(1, 1, 1)) ``` vs ``` bpy.ops.mesh.primitive_cube_add(size=2, enter_editmode=False, location=(0, -1, 0), rotation=(0, 0, 0), scale=(0.999, 0.999, 0.999)) ``` Will check.
Member

Size 2 is actually correct here (it is the default for prims in blender), scale is what is handled wrong, there is an exception in 16943c0146 especially for the 1x1x1 scale case.

#77942 is a bit related, looking into making this all consistent now.

Size 2 is actually correct here (it is the default for prims in blender), scale is what is handled wrong, there is an exception in 16943c0146 especially for the 1x1x1 scale case. #77942 is a bit related, looking into making this all consistent now.

This issue was referenced by e20b31504a

This issue was referenced by e20b31504a2381011e60c5eadffb67f18918bc71
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

@lichtwerk , tried with latest build 2.93.0 alpha . Failed to reproduce the issue .

Blender 2021-03-08 14-55-35.mp4

@lichtwerk , tried with latest build 2.93.0 alpha . Failed to reproduce the issue . [Blender 2021-03-08 14-55-35.mp4](https://archive.blender.org/developer/F9878982/Blender_2021-03-08_14-55-35.mp4)

In #86347#1125884, @PratikPB2123 wrote:
@lichtwerk , tried with latest build 2.93.0 alpha . Failed to reproduce the issue .

Yes, you failed to reproduce the issue ;)
I just verified it in 2.93a as well. Attaching blend file for clarification.
addcubefailscene.blend

> In #86347#1125884, @PratikPB2123 wrote: > @lichtwerk , tried with latest build 2.93.0 alpha . Failed to reproduce the issue . Yes, you failed to reproduce the issue ;) I just verified it in 2.93a as well. Attaching blend file for clarification. [addcubefailscene.blend](https://archive.blender.org/developer/F9879035/addcubefailscene.blend)
Member

Attaching blend file for clarification.

Can reproduce with attached .blend file .

>Attaching blend file for clarification. Can reproduce with attached .blend file .
Member

Fix is in review

Fix is in review
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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#86347
No description provided.