1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fix some error messages

This commit is contained in:
Franklin Sobrinho
2016-01-09 08:35:57 -03:00
parent 292e8bf0ab
commit 7fa233cd89
6 changed files with 4 additions and 14 deletions

View File

@@ -3017,7 +3017,7 @@ void AnimationKeyEditor::set_keying(bool p_enabled) {
keying=p_enabled; keying=p_enabled;
_update_menu(); _update_menu();
emit_signal("keying_changed",p_enabled); emit_signal("keying_changed");
} }

View File

@@ -3831,7 +3831,6 @@ void EditorNode::animation_editor_make_visible(bool p_visible) {
} }
animation_editor->set_keying(p_visible); animation_editor->set_keying(p_visible);
_update_keying();
} }

View File

@@ -405,9 +405,9 @@ void CanvasItemEditor::_node_removed(Node *p_node) {
#endif #endif
} }
void CanvasItemEditor::_keying_changed(bool p_changed) { void CanvasItemEditor::_keying_changed() {
if (p_changed) if (editor->get_animation_editor()->has_keying())
animation_hb->show(); animation_hb->show();
else else
animation_hb->hide(); animation_hb->hide();

View File

@@ -344,7 +344,7 @@ class CanvasItemEditor : public VBoxContainer {
CanvasItem *get_single_item(); CanvasItem *get_single_item();
int get_item_count(); int get_item_count();
void _keying_changed(bool p_changed); void _keying_changed();
void _unhandled_key_input(const InputEvent& p_ev); void _unhandled_key_input(const InputEvent& p_ev);

View File

@@ -3504,13 +3504,7 @@ void SpatialEditor::_instance_scene() {
undo_redo->commit_action(); undo_redo->commit_action();
#endif #endif
} }
/*
void SpatialEditor::_update_selection() {
}
*/
void SpatialEditor::_unhandled_key_input(InputEvent p_event) { void SpatialEditor::_unhandled_key_input(InputEvent p_event) {
if (!is_visible()) if (!is_visible())
@@ -3715,7 +3709,6 @@ void SpatialEditor::_bind_methods() {
ObjectTypeDB::bind_method("_menu_item_pressed",&SpatialEditor::_menu_item_pressed); ObjectTypeDB::bind_method("_menu_item_pressed",&SpatialEditor::_menu_item_pressed);
ObjectTypeDB::bind_method("_xform_dialog_action",&SpatialEditor::_xform_dialog_action); ObjectTypeDB::bind_method("_xform_dialog_action",&SpatialEditor::_xform_dialog_action);
ObjectTypeDB::bind_method("_instance_scene",&SpatialEditor::_instance_scene); ObjectTypeDB::bind_method("_instance_scene",&SpatialEditor::_instance_scene);
// ObjectTypeDB::bind_method("_update_selection",&SpatialEditor::_update_selection);
ObjectTypeDB::bind_method("_get_editor_data",&SpatialEditor::_get_editor_data); ObjectTypeDB::bind_method("_get_editor_data",&SpatialEditor::_get_editor_data);
ObjectTypeDB::bind_method("_request_gizmo",&SpatialEditor::_request_gizmo); ObjectTypeDB::bind_method("_request_gizmo",&SpatialEditor::_request_gizmo);
ObjectTypeDB::bind_method("_default_light_angle_input",&SpatialEditor::_default_light_angle_input); ObjectTypeDB::bind_method("_default_light_angle_input",&SpatialEditor::_default_light_angle_input);
@@ -3817,7 +3810,6 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) {
editor=p_editor; editor=p_editor;
editor_selection=editor->get_editor_selection(); editor_selection=editor->get_editor_selection();
editor_selection->add_editor_plugin(this); editor_selection->add_editor_plugin(this);
editor_selection->connect("selection_changed",this,"_update_selection");
snap_enabled=false; snap_enabled=false;
tool_mode = TOOL_MODE_SELECT; tool_mode = TOOL_MODE_SELECT;

View File

@@ -137,7 +137,6 @@ private:
Vector3 _get_screen_to_space(const Vector3& p_vector3); Vector3 _get_screen_to_space(const Vector3& p_vector3);
void _select_region(); void _select_region();
void _update_selection();
bool _gizmo_select(const Vector2& p_screenpos,bool p_hilite_only=false); bool _gizmo_select(const Vector2& p_screenpos,bool p_hilite_only=false);
float get_znear() const; float get_znear() const;