Skip to content

Commit

Permalink
Merge pull request #91 from endlessm/fix-simple-ready
Browse files Browse the repository at this point in the history
Fix Simple node setup not happening
  • Loading branch information
manuq authored Jun 27, 2024
2 parents b3779e8 + 80317f3 commit d60c3bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/block_code/block_code_node/block_code.gd
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ func _update_parent_script():
for property_name in persist_properties:
parent.set(property_name, persist_properties.get(property_name))

# Run simple setup after node is ready
if parent.has_method("simple_setup"):
parent.call_deferred("simple_setup")


func _get_configuration_warnings():
var warnings = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ func _set_texture(new_texture):


func _ready():
simple_setup()


func simple_setup():
_set_texture(texture)


Expand Down

0 comments on commit d60c3bd

Please sign in to comment.