diff options
author | JFonS <joan.fonssanchez@gmail.com> | 2018-02-02 13:18:28 +0100 |
---|---|---|
committer | JFonS <joan.fonssanchez@gmail.com> | 2018-02-02 13:18:28 +0100 |
commit | d0a2931cd75c48759a3d955632e898b4f0f5a60d (patch) | |
tree | c874ffc2c601fb00861879069ea48975bf5c74b3 | |
parent | f13d0344853edda03d56e44365a90ad4eed22883 (diff) |
Fix gizmo solid box mesh being added twice
-rw-r--r-- | editor/spatial_editor_gizmos.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/editor/spatial_editor_gizmos.cpp b/editor/spatial_editor_gizmos.cpp index 72c0f050d2..aa7bfab2a5 100644 --- a/editor/spatial_editor_gizmos.cpp +++ b/editor/spatial_editor_gizmos.cpp @@ -308,15 +308,6 @@ void EditorSpatialGizmo::add_solid_box(Ref<Material> &p_material, Vector3 p_size m->add_surface_from_arrays(cubem.surface_get_primitive_type(0), cubem.surface_get_arrays(0)); m->surface_set_material(0, p_material); add_mesh(m); - - Instance ins; - ins.mesh = m; - if (valid) { - ins.create_instance(spatial_node); - VS::get_singleton()->instance_set_transform(ins.instance, spatial_node->get_global_transform()); - } - - instances.push_back(ins); } void EditorSpatialGizmo::set_spatial_node(Spatial *p_node) { |