Misleading code sample #77715
Labels
No Label
Meta
Good First Issue
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 & Devices
Module
Python API
Module
Rendering & Cycles
Module
Sculpt, Paint & Texture
Module
User Interface
Module
VFX & Video
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Information 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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-manual#77715
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
May not be a bug, but it is potentially misleading. In the document, there is this
Menu Item
.... The method used for adding a menu item is to append a draw function into an existing class:
For docs on extending menus, see: bpy.types.Menu.
But using that
register()
function does not work, because it is not creating theObjectCursorArray
object first. This tutorial is for beginners, right? So, the reader would not have much knowledge about add-ons, and just follow the code. I have wasted a lot of time trying to add a menu with that code by installing a plugin (.py) file. After some time, that I figured out that it does not register the object, and sure enough, when I scrolled down furthur, there was "Bringing it all together" section which hadIn my opinion, the code in the Menu Item section should have the line to register the class, too, in order the sample to work at that part of the document.
Added subscriber: @blender392349
Added subscriber: @JacquesLucke
Changed status from 'Needs Triage' to: 'Needs User Info'
Please add a link to the confusing docs in your first post.
Added subscriber: @antoine.grasset
Looks like this is the doc :
https://docs.blender.org/manual/en/latest/advanced/scripting/addon_tutorial.html#menu-item
Removed subscriber: @antoine.grasset
Changed status from 'Needs User Info' to: 'Needs Triage'
This issue was referenced by 6754
Changed status from 'Needs Triage' to: 'Resolved'