From 69240aa2431a0334f926e203c8b4cb052693c463 Mon Sep 17 00:00:00 2001 From: Franklin Sobrinho Date: Wed, 6 Jan 2016 08:56:06 -0300 Subject: Fix .tscn format not loading signal binds --- scene/resources/scene_format_text.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scene/resources') diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp index aef11433dc..ca85ca957a 100644 --- a/scene/resources/scene_format_text.cpp +++ b/scene/resources/scene_format_text.cpp @@ -473,8 +473,8 @@ Error ResourceInteractiveLoaderText::poll() { } Vector bind_ints; - for(int i=9;iget_state()->add_value( bind_ints[i] ) ); + for(int i=0;iget_state()->add_value( binds[i] ) ); } packed_scene->get_state()->add_connection( @@ -1366,10 +1366,10 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path,const RES& p_re Array binds=state->get_connection_binds(i); f->store_string(connstr); - if (binds.size()) { + if (binds.size()) { String vars; VariantWriter::write_to_string(binds,vars,_write_resources,this); - f->store_string("binds= "+vars); + f->store_string(" binds= "+vars); } -- cgit v1.2.3