Skip to content

Wrong code generation with two print blocks #172

Closed
@manuq

Description

@manuq

What Happened

Code generation is not working as expected with stacked blocks after the scene is reloaded. It seems that something is wrong with the bottom snap.

How to Reproduce

  1. Add a BlockCode node to any node
  2. Attach 2 Print blocks to the Ready block, change the text to "one" and "two" respectively
  3. Print the generated code, it should work as expected
  4. Save the scene and load it again
  5. Print the generated code -> only the first print is present

Block Coding Plugin Version

main

Godot Engine Version

v4.2.2

Operating System

Endless

Logs or command-line output

None.

Anything else?

Also dragging the print blocks to reorder them doesn't work. This is before saving:
Grabación de pantalla desde 2024-07-29 17-39-32.webm

This is after saving:
Grabación de pantalla desde 2024-07-29 17-33-18.webm

Metadata

Metadata

Assignees

No one assigned

    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