The tool system's "Spin" and "Spin (Duplicate)" operators are the same #60607

Closed
opened 2019-01-18 01:16:04 +01:00 by Jesse Yurkovich · 18 comments

System Information
Operating system: Win10
Graphics card: nVidia Quadro 600

Blender Version
Broken: 2.80 (sub 41), branch: master, commit date: 2019-01-16 19:04, hash: 8ba86020cc
Worked: N/A

Short description of error
The tool system's "Spin" and "Spin (Duplicate)" operators are the same. In other words they do the same thing by default. I believe that "Spin (Duplicate)" should have the "Dupli" option checked/set to True, but this is not the case.

Additionally, it would be best to spell out "Dupli" in the UI -- "Use Duplicates" would be my suggestion.

Exact steps for others to reproduce the error

  • Start with default .blend
  • Go to Edit mode on cube
  • Try to use the Spin or Spin (Duplicate) operators from the new T-panel
  • Observe that, by default, they both do the same thing and have the same settings
**System Information** Operating system: Win10 Graphics card: nVidia Quadro 600 **Blender Version** Broken: 2.80 (sub 41), branch: master, commit date: 2019-01-16 19:04, hash: 8ba86020cc50 Worked: N/A **Short description of error** The tool system's "Spin" and "Spin (Duplicate)" operators are the same. In other words they do the same thing by default. I believe that "Spin (Duplicate)" should have the "Dupli" option checked/set to True, but this is not the case. Additionally, it would be best to spell out "Dupli" in the UI -- "Use Duplicates" would be my suggestion. **Exact steps for others to reproduce the error** - Start with default .blend - Go to Edit mode on cube - Try to use the Spin or Spin (Duplicate) operators from the new T-panel - Observe that, by default, they both do the same thing and have the same settings
Author
Member

Added subscriber: @deadpin

Added subscriber: @deadpin
Member

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Added subscriber: @WilliamReynish

Added subscriber: @WilliamReynish

Apart from the bug itself, I agree we should revise the naming here.

'Spin (Duplicate)' -> 'Spin Duplicates'
'Dupli' -> 'Use Duplicates'

No need to be needlessly cryptic.

Apart from the bug itself, I agree we should revise the naming here. 'Spin (Duplicate)' -> 'Spin Duplicates' 'Dupli' -> 'Use Duplicates' No need to be needlessly cryptic.

Added subscriber: @FloridaJo

Added subscriber: @FloridaJo

Not sure its a bug, but rather a naming issue.
If you look at the panel, you have to check 'Dupli' for it to duplicate.

1.png
Otherwise it just spins.
So like in 2.79 there is just 'spin' then you click 'dupli' for duplicate. There is not 'spin' and 'spin (duplicate)'.

2.png

Not sure its a bug, but rather a naming issue. If you look at the panel, you have to check 'Dupli' for it to duplicate. ![1.png](https://archive.blender.org/developer/F6448326/1.png) Otherwise it just spins. So like in 2.79 there is just 'spin' then you click 'dupli' for duplicate. There is not 'spin' and 'spin (duplicate)'. ![2.png](https://archive.blender.org/developer/F6448345/2.png)

Correction; it is a bug.
Spin (Duplicate) should open with 'dupli' set to True and it is not.

As you can see from the code, it is supposed to be defaulted to 'True', but it either is getting
overwritten on window update or something else. Will dig further.

def km_3d_view_tool_edit_mesh_spin(params):
    return (
        "3D View Tool: Edit Mesh, Spin",
        {"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
        {"items": [
            ("mesh.spin", {"type": params.tool_tweak, "value": 'ANY'}, None),
        ]},
    )


def km_3d_view_tool_edit_mesh_spin_duplicate(params):
    return (
        "3D View Tool: Edit Mesh, Spin (Duplicate)",
        {"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
        {"items": [
            ("mesh.spin", {"type": params.tool_tweak, "value": 'ANY'},
             {"properties": [("dupli", True)]}),
        ]},
    )

Correction; it is a bug. Spin (Duplicate) should open with 'dupli' set to True and it is not. As you can see from the code, it is supposed to be defaulted to 'True', but it either is getting overwritten on window update or something else. Will dig further. ``` def km_3d_view_tool_edit_mesh_spin(params): return ( "3D View Tool: Edit Mesh, Spin", {"space_type": 'VIEW_3D', "region_type": 'WINDOW'}, {"items": [ ("mesh.spin", {"type": params.tool_tweak, "value": 'ANY'}, None), ]}, ) def km_3d_view_tool_edit_mesh_spin_duplicate(params): return ( "3D View Tool: Edit Mesh, Spin (Duplicate)", {"space_type": 'VIEW_3D', "region_type": 'WINDOW'}, {"items": [ ("mesh.spin", {"type": params.tool_tweak, "value": 'ANY'}, {"properties": [("dupli", True)]}), ]}, ) ```
Joel Godin self-assigned this 2019-01-31 01:09:46 +01:00
Joel Godin removed their assignment 2019-02-04 14:04:56 +01:00
Campbell Barton was assigned by William Reynish 2019-02-04 15:40:40 +01:00

I think this one is for you, @ideasman42 :)

I think this one is for you, @ideasman42 :)

This issue was referenced by c1f8268734

This issue was referenced by c1f8268734af40a73661642b1bb3f8d27325dd96

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author
Member

I believe this is still an issue. Here's a gif that shows the issue -- The initial invocation of the Spin (Duplicate) tool still does not have the correct option set:

spin-bug.gif

I believe this is still an issue. Here's a gif that shows the issue -- The initial invocation of the Spin (Duplicate) tool still does not have the correct option set: ![spin-bug.gif](https://archive.blender.org/developer/F7892779/spin-bug.gif)

I can't redo this - the setting is always set correctly in 6db9b443bb5b893b2807850a43de56e81c77160e

I can't redo this - the setting is always set correctly in `6db9b443bb5b893b2807850a43de56e81c77160e`
Author
Member

Tried again with today's build of master (e45cfb574e) using --factory-startup plus a completely clean preferences directory: it still repro's for me. At least one other person on blender-coders was also able to confirm the issue still happens for them as well. Is there anything for me to try and debug on my side (I have debug build available to set breakpoints as well)

Tried again with today's build of master (e45cfb574ee7) using `--factory-startup` plus a completely clean preferences directory: it still repro's for me. At least one other person on blender-coders was also able to confirm the issue still happens for them as well. Is there anything for me to try and debug on my side (I have debug build available to set breakpoints as well)

I can verify that 'duplicates' still does not work.
Before it at least worked when you checked the box manually, but now it don't work at all. The checkbox 'duplicates' unchecks upon initiating action.

I can verify that 'duplicates' still does not work. Before it at least worked when you checked the box manually, but now it don't work at all. The checkbox 'duplicates' unchecks upon initiating action.

It's more of an implementation detail that spin and spin-duplicate share an operator.

If you start a new spin or spin-duplicate operation, it's going to use the option based on the tool set.

It's more of an implementation detail that spin and spin-duplicate share an operator. If you start a new spin or spin-duplicate operation, it's going to use the option based on the tool set.

Spin and Spin Duplicate do the same thing is the main thing I'm pointing out.
No difference. Bug.

Spin and Spin Duplicate do the same thing is the main thing I'm pointing out. No difference. Bug.

Added subscriber: @XDroid-3

Added subscriber: @XDroid-3

Bug still present in 3.1.2.

Bug still present in 3.1.2.
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
7 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#60607
No description provided.