No entity_type
meta data in dropable_control in mobfactioneditor
#510
Labels
entity_type
meta data in dropable_control in mobfactioneditor
#510
In the
mobfactions_editor.gd
in the_on_save_button_button_up
function it will complain that thedropable_control
has no meta data ofentity_type
.To fix this:
Go to add_relation_type function and add this line:
var entity_type: String = "mob" if relation.has("mob") else "mobgroup" if relation.has("mobgroup") else ""
And this line:
dropable_textedit_instance.set_meta("entity_type", entity_type)
So it looks like this:
The text was updated successfully, but these errors were encountered: