Stoeoeoe / godot_data_editor

A data editor plugin for the Godot game engine
MIT License
46 stars 12 forks source link

the class dont update on the built-in editor #5

Open Elmapul opened 7 years ago

Elmapul commented 7 years ago

there are 2 ways to run this add'on.

1)runing from the godot editor (it apear beside the assetlb tab) or runing the scene from the project itself: 2)get_tree().change_scene("res:///addons/godot_data_editor/data_editor_gui.tscn")

if i run it from the godot itself, and edit some property (eg: base_damage, mana_cost or any other custom property) and click on the save button, sometimes, it refuse to update itself.

on the other hand, if you instance it during the runtime of the project (2), it works fine.

you can either fix this or remove the tab from the godot User interface and ask the user to run it during on the project itself, then remove on the final version to prevent the players from hacking the game.

Stoeoeoe commented 7 years ago

Hi! I will look into it as soon as possible! To be honest, I have not yet considered to use it with change_scene, but of course it makes sense.