diff options
| author | Poommetee Ketson | 2018-01-27 17:28:01 +0700 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-02-19 22:13:44 +0100 |
| commit | 41f9904e713a44702aa31123986865af2fe4f6ab (patch) | |
| tree | 19208d8c50fb2b92aa9d8b27b97bd66a9bbfd341 /editor/plugins/spatial_editor_plugin.cpp | |
| parent | a206d3d2fc5627167f52c800c856816b14a2fead (diff) | |
| download | godot-41f9904e713a44702aa31123986865af2fe4f6ab.tar.gz godot-41f9904e713a44702aa31123986865af2fe4f6ab.tar.zst godot-41f9904e713a44702aa31123986865af2fe4f6ab.zip | |
3DEditor: fix multiple node selection crash the editor
I'm not sure about this fix. This seems to also fixes the weird
selection bug where when selecting node 1 to 3 it focuses on
2nd node.
(cherry picked from commit 25dd1f0681cf6532b1d0fb1e023d0e8a50c30e69)
Diffstat (limited to '')
| -rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 5e8eb0655..bd2cdf0dd 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -3827,9 +3827,6 @@ Object *SpatialEditor::_get_editor_data(Object *p_what) { si->sbox_instance = VisualServer::get_singleton()->instance_create2(selection_box->get_rid(), sp->get_world()->get_scenario()); VS::get_singleton()->instance_geometry_set_cast_shadows_setting(si->sbox_instance, VS::SHADOW_CASTING_SETTING_OFF); - if (Engine::get_singleton()->is_editor_hint()) - editor->call("edit_node", sp); - return si; } |
