Prevent crash with invalid default types

This commit is contained in:
Matthias Stöckli 2017-08-06 00:06:35 +02:00
parent 8aa22fc04d
commit da5f4b2ba1
2 changed files with 2 additions and 22 deletions

View File

@ -1,21 +0,0 @@
Add "Notes" to each element
Add Display Name for each
Add Refresh
Check how to deal with reloading the tree
Add Sub categories
Translate
Add "state" handling
Add UndoRedo
Move short callbacks from self to the object and call directly (e.g. popup)
Use EditorFileSystem class to check for changes (external ones)
print_progress
Handle when switching from encrypted to non-encrypted and vice versa
# Progress?
get_status(story_item)
set_status(story_item, value)

View File

@ -204,7 +204,7 @@ func create_string():
for i in range(0, hint_array.size()):
control.get_popup().add_item(hint_array[i])
control.set_flat(false)
control.set_text(value)
control.set_text(str(value))
control.get_popup().connect("item_pressed", self, "string_enum_property_value_changed", [])
elif hint == PROPERTY_HINT_MULTILINE_TEXT:
# RABRABRAB
@ -356,6 +356,7 @@ func get_custom_editor_value(index):
else: return value.origin.z
func create_object_or_image():
value = str(value)
control = HBoxContainer.new()
object_type_line_edit = LineEdit.new()
object_type_line_edit.set_text(str(value))