You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
-variables with export in script are now IMMEDIATELY AND ALWAYS visible in properties (#718)
-WorldEnvironment cleanup issues fixed (#563) -Text Editor improvement to shift-mouse selection (#648) -(Hopefully) fixed rare (but horrible) indexing bug in GDScript compiler (#652) -Some changes to PhysicsBody API, renamed property "active" to "sleeping", which makes more sense -Added add_collision_exception() API in PhysicsBody (more accessible) -ability to select and copy in the output messages panel
This commit is contained in:
@@ -188,7 +188,9 @@ void ScriptTextEditor::apply_code() {
|
||||
|
||||
if (script.is_null())
|
||||
return;
|
||||
print_line("applying code");
|
||||
script->set_source_code(get_text_edit()->get_text());
|
||||
script->update_exports();
|
||||
}
|
||||
|
||||
Ref<Script> ScriptTextEditor::get_edited_script() const {
|
||||
@@ -362,7 +364,8 @@ void ScriptTextEditor::_validate_script() {
|
||||
line=-1;
|
||||
if (!script->is_tool()) {
|
||||
script->set_source_code(text);
|
||||
script->reload(); //will update all the variables in property editors
|
||||
script->update_exports();
|
||||
//script->reload(); //will update all the variables in property editors
|
||||
}
|
||||
|
||||
functions.clear();
|
||||
|
||||
Reference in New Issue
Block a user