From 7cad11e1083c8ceb07c415ccb36eb4596b66384f Mon Sep 17 00:00:00 2001 From: Franklin Sobrinho Date: Sat, 9 Jul 2016 13:18:16 -0300 Subject: [PATCH] Fix CollisionPolygon gizmo showing error icons instead of the 3d handles --- tools/editor/plugins/collision_polygon_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/editor/plugins/collision_polygon_editor_plugin.cpp b/tools/editor/plugins/collision_polygon_editor_plugin.cpp index 55e38cebcc9..0b06b3ba21c 100644 --- a/tools/editor/plugins/collision_polygon_editor_plugin.cpp +++ b/tools/editor/plugins/collision_polygon_editor_plugin.cpp @@ -584,7 +584,7 @@ CollisionPolygonEditor::CollisionPolygonEditor(EditorNode *p_editor) { handle_material->set_parameter(FixedMaterial::PARAM_DIFFUSE,Color(1,1,1)); handle_material->set_fixed_flag(FixedMaterial::FLAG_USE_ALPHA, true); handle_material->set_fixed_flag(FixedMaterial::FLAG_USE_COLOR_ARRAY, false); - Ref handle= SpatialEditor::get_singleton()->get_icon("Editor3DHandle","EditorIcons"); + Ref handle=editor->get_gui_base()->get_icon("Editor3DHandle","EditorIcons"); handle_material->set_point_size(handle->get_width()); handle_material->set_texture(FixedMaterial::PARAM_DIFFUSE,handle);