Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks for resources get out of sync #333

Open
manuq opened this issue Dec 9, 2024 · 0 comments
Open

Blocks for resources get out of sync #333

manuq opened this issue Dec 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@manuq
Copy link
Contributor

manuq commented Dec 9, 2024

What Happened

#305 implemented drag from the Filesystem dock to the block coding canvas. It creates a value block of type String. Internally it has the file path hardcoded res://. But if the file is then renamed, the block keeps the old path. This can be improved by using the resource UID and calling get_id_path() dynamically.

How to Reproduce

  1. Drag a file from the Filesystem dock to the Block Coding canvas.
  2. Insert the new block into a "log (string)" block, and stack all into a "when starting" block.
  3. Run the scene and see the file path correctly printed in the output.
  4. Rename the file in the Filesystem dock.
  5. Run the scene again -> the old file path is printed.

Block Coding Plugin Version

v0.8.0

Godot Engine Version

v4.3

Operating System

Endless OS

Logs or command-line output

No response

Anything else?

No response

@manuq manuq added the bug Something isn't working label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant