There is no "Knife" tool in the menu #102187

Closed
opened 2022-10-31 17:21:41 +01:00 by Damian · 16 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 517.40

Blender Version
Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: b292cfe5a9
Worked: (newest version of Blender that worked as expected)

Short description of error
[Please fill out a short description of the error here]

I think this is pretty much an old issue, but there is no "Knife" tool in any menu in edit mode.
As far as I understand, the toolbar on the left is just a "visual" convenient way to access some operators, tools, and commands.
But there shouldn't be tools hidden from the menu.
image.png

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 517.40 **Blender Version** Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: `b292cfe5a9` Worked: (newest version of Blender that worked as expected) **Short description of error** [Please fill out a short description of the error here] I think this is pretty much an old issue, but there is no "Knife" tool in any menu in edit mode. As far as I understand, the toolbar on the left is just a "visual" convenient way to access some operators, tools, and commands. But there shouldn't be tools hidden from the menu. ![image.png](https://archive.blender.org/developer/F13824590/image.png) **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)]
Author

Added subscriber: @DamianWinnichenko

Added subscriber: @DamianWinnichenko
Member

Added subscribers: @ideasman42, @PratikPB2123

Added subscribers: @ideasman42, @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Hi, thanks for the report.
Adding operator in the panel requires only one line of code. But I'm not sure whether this is needed. The Thought behind Operator distribution between toolbar and mesh panel is not clear to me. So I'll ask developers for more info (@ideasman42 ?)


index 39684aaf161..d6492ea2d85 100644
    - a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3849,6 +3849,7 @@ class VIEW3D_MT_edit_mesh(Menu):

   layout.operator("mesh.bisect")
   layout.operator("mesh.knife_project")
+        layout.operator("mesh.knife_tool")

   if with_bullet:
       layout.operator("mesh.convex_hull")```
Hi, thanks for the report. Adding operator in the panel requires only one line of code. But I'm not sure whether this is needed. The Thought behind Operator distribution between toolbar and mesh panel is not clear to me. So I'll ask developers for more info (@ideasman42 ?) - - - ```diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 39684aaf161..d6492ea2d85 100644 - a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -3849,6 +3849,7 @@ class VIEW3D_MT_edit_mesh(Menu): ``` layout.operator("mesh.bisect") layout.operator("mesh.knife_project") ``` + layout.operator("mesh.knife_tool") ``` if with_bullet: layout.operator("mesh.convex_hull")```
Member

Added subscriber: @JulienKaspar

Added subscriber: @JulienKaspar
Member

@PratikPB2123 All operators should be present in the menus. Even if some are also available in the toolbar as a tool.
But I am also a bit puzzled why this wasn't done already for this operator.

@PratikPB2123 All operators should be present in the menus. Even if some are also available in the toolbar as a tool. But I am also a bit puzzled why this wasn't done already for this operator.
Member

@JulienKaspar ,thanks.
Knife operator is instead present in right click context menu (available only in edge select mode)
I think we should remove it from there and add in Mesh panel

@JulienKaspar ,thanks. Knife operator is instead present in right click context menu (available only in edge select mode) I think we should remove it from there and add in Mesh panel
Author

In #102187#1439692, @PratikPB2123 wrote:
@JulienKaspar ,thanks.
Knife operator is instead present in right click context menu (available only in edge select mode)
I think we should remove it from there and add in Mesh panel

huh! My bad! I used to the old naming where we did have "Knife" and "Knife Project tool".
However! There is a bug that the hotkey for that tool is not drawn in the right-click menu
image.png

> In #102187#1439692, @PratikPB2123 wrote: > @JulienKaspar ,thanks. > Knife operator is instead present in right click context menu (available only in edge select mode) > I think we should remove it from there and add in Mesh panel huh! My bad! I used to the old naming where we did have "Knife" and "Knife Project tool". However! There is a bug that the hotkey for that tool is not drawn in the right-click menu ![image.png](https://archive.blender.org/developer/F13833012/image.png)
Member

Removing anything from the context menus is not necessary. It's good that common operators are exposed there.
But yes we should add it to a header menu.

Removing anything from the context menus is not necessary. It's good that common operators are exposed there. But yes we should add it to a header menu.
Member

In #102187#1439737, @JulienKaspar wrote:
Removing anything from the context menus is not necessary. It's good that common operators are exposed there.
But yes we should add it to a header menu.

Didn't see your comment before submitting a patch :p (I've removed it from context menu).
I'm fine to keep it at both places but why is it exposed only in Edge select mode?

> In #102187#1439737, @JulienKaspar wrote: > Removing anything from the context menus is not necessary. It's good that common operators are exposed there. > But yes we should add it to a header menu. Didn't see your comment before submitting a patch :p (I've removed it from context menu). I'm fine to keep it at both places but why is it exposed only in `Edge select mode`?
Member

@PratikPB2123 It's very arbitrary that the Knife operator is in the edge context menu. IMO it should be part of all context menus in edit mode, but it can for now stay in the Edge context menu.

I would even go further than that and make more operators accessible in more context menus, but that goes beyond this issue.

@PratikPB2123 It's very arbitrary that the Knife operator is in the edge context menu. IMO it should be part of all context menus in edit mode, but it can for now stay in the Edge context menu. I would even go further than that and make more operators accessible in more context menus, but that goes beyond this issue.
Author

In #102187#1441187, @JulienKaspar wrote:
I would even go further than that and make more operators accessible in more context menus, but that goes beyond this issue.

Yes, please!)

> In #102187#1441187, @JulienKaspar wrote: > I would even go further than that and make more operators accessible in more context menus, but that goes beyond this issue. Yes, please!)

This issue was referenced by 6a9b0772fe

This issue was referenced by 6a9b0772fee918e408b6b3fbe7f92ab3de8c9ccb

This issue was referenced by 92680674d0

This issue was referenced by 92680674d0b78f477ec8dd68589289e45870791b

This issue was referenced by b927cc9ba6

This issue was referenced by b927cc9ba6c7567066f26fd82c95b0059a8cff75
Member

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'
Pratik Borhade self-assigned this 2022-11-13 18:22:02 +01: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
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#102187
No description provided.