Skip to content

A CodeBlock should not be allowed to attach to a node that has a script attached already #356

@tindrew

Description

@tindrew

What Happened

I discovered this purely by accident, but it should highlight some new functionality that needs to be added.

If there's a script on a node, you can still add a BlockCode to it. I assume that is not behavior that should happen, especially since it causes problems.

Image

If I had to pick a fix for it, I'd say if you to attach a BlockCode to a node that has a script already, you should get a popup saying "You can't add a BlockCode to a node with an existing script!" (and also not let you add it of course).

How to Reproduce

  1. Add any node to a scene
  2. Add a script such as the starter player script
  3. Add a block to the same node

Block Coding Plugin Version

v0.9.0

Godot Engine Version

v4.3.0 Stable

Operating System

Windows 10

Logs or command-line output

Anything else?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions