Skip to content

Marker3Ds created by @tool scripts are not drawn #108081

Closed
@ProgrammerOnCoffee

Description

@ProgrammerOnCoffee

Tested versions

Reproducible in: 4.4.1-stable, 4.0-stable

System information

Windows 11 - All renderers - AMD Radeon RX 5600 XT

Issue description

When a Marker3D is added to a node by a @tool script, the Marker3D will not be drawn in the 3D viewport.
Marker2Ds do not have this issue.

Steps to reproduce

  1. Create a new 3D scene with a Node3D as its root
  2. In the 3D viewport, under View, uncheck "Show Origin" or "View Origin", depending on your version
  3. Attach a new, non-built-in script to the root node
  4. Paste the following code into the script and then save it:
@tool
extends Node3D

func _ready():
	add_child(Marker3D.new())
  1. Save the scene, close it, and re-open it
  • The Marker3D will not be drawn

Minimal reproduction project (MRP)

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions