Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: endlessm/godot-block-coding
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: endlessm/godot-block-coding
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: block-script-target
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 13, 2024

  1. BlockScriptSerialization: Add helpers to access target properties

    When instantiating block definitions, we often want to know properites
    of the target node. Since BlockScriptSerialization isn't a Node, we
    can't just walk up the tree with get_parent() to find it. Add some
    helpers that find the parent BlockCode node and its parent node (the
    target node) so that its properties can be accessed.
    
    The block code node, target node and target properties are gathered
    lazily and cached. This can't be done from _init() since Godot won't set
    the BlockCode node's block_script property until after it's completed
    initializing the BlockScriptSerialization instance. An additional
    _get_target_property() helper is provided for the common case of finding
    a property by name in the target node's property list.
    dbnicholson committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    f41a4f4 View commit details
    Browse the repository at this point in the history
Loading