You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Made Variant::NIL printable as "Null". Please everyone be on the lookout of bugs related to assigning an empty variant to a string, and expecting it to be not empty!
This commit is contained in:
@@ -400,8 +400,11 @@ Object *CreateDialog::instance_selected() {
|
||||
|
||||
if (selected) {
|
||||
|
||||
String custom = selected->get_metadata(0);
|
||||
Variant md = selected->get_metadata(0);
|
||||
|
||||
String custom;
|
||||
if (md.get_type()!=Variant::NIL)
|
||||
custom=md;
|
||||
|
||||
if (custom!=String()) {
|
||||
if (EditorNode::get_editor_data().get_custom_types().has(custom)) {
|
||||
|
||||
Reference in New Issue
Block a user