mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 07:01:06 +00:00
Huge Amount of BugFix
-=-=-=-=-=-=-=-=-=-=- -Fixes to Collada Exporter (avoid crash situtions) -Fixed to Collada Importer (Fixed Animation Optimizer Bugs) -Fixes to RigidBody/RigidBody2D body_enter/body_exit, was buggy -Fixed ability for RigidBody/RigidBody2D to get contacts reported and bodyin/out in Kinematic mode. -Added proper trigger support for 3D Physics shapes -Changed proper value for Z-Offset in OmniLight -Fixed spot attenuation bug in SpotLight -Fixed some 3D and 2D spatial soudn bugs related to distance attenuation. -Fixed bugs in EventPlayer (channels were muted by default) -Fix in ButtonGroup (get nodes in group are now returned in order) -Fixed Linear->SRGB Conversion, previous algo sucked, new algo works OK -Changed SRGB->Linear conversion to use hardware if supported, improves texture quality a lot -Fixed options for Y-Fov and X-Fov in camera, should be more intuitive. -Fixed bugs related to viewports and transparency Huge Amount of New Stuff: -=-=-=-=-=-=-=-==-=-=-=- -Ability to manually advance an AnimationPlayer that is inactive (with advance() function) -More work in WinRT platform -Added XY normalmap support, imports on this format by default. Reduces normlmap size and enables much nice compression using LATC -Added Anisotropic filter support to textures, can be specified on import -Added support for Non-Square, Isometric and Hexagonal tilemaps in TileMap. -Added Isometric Dungeon demo. -Added simple hexagonal map demo. -Added Truck-Town demo. Shows how most types of joints and vehicles are used. Please somebody make a nicer town, this one is too hardcore. -Added an Object-Picking API to both RigidBody and Area! (and relevant demo)
This commit is contained in:
parent
870c075ebf
commit
b24fe3dd20
84 changed files with 1660 additions and 344 deletions
|
|
@ -1925,6 +1925,15 @@ void SpatialEditorViewport::_menu_option(int p_option) {
|
|||
call_deferred("update_transform_gizmo_view");
|
||||
|
||||
} break;
|
||||
case VIEW_AUDIO_LISTENER: {
|
||||
|
||||
int idx = view_menu->get_popup()->get_item_index(VIEW_AUDIO_LISTENER);
|
||||
bool current = view_menu->get_popup()->is_item_checked( idx );
|
||||
current=!current;
|
||||
viewport->set_as_audio_listener(current);
|
||||
view_menu->get_popup()->set_item_checked( idx, current );
|
||||
|
||||
} break;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -2055,6 +2064,13 @@ void SpatialEditorViewport::set_state(const Dictionary& p_state) {
|
|||
_menu_option(VIEW_PERSPECTIVE);
|
||||
if (env != camera->get_environment().is_valid())
|
||||
_menu_option(VIEW_ENVIRONMENT);
|
||||
if (p_state.has("listener")) {
|
||||
bool listener = p_state["listener"];
|
||||
|
||||
int idx = view_menu->get_popup()->get_item_index(VIEW_AUDIO_LISTENER);
|
||||
viewport->set_as_audio_listener(listener);
|
||||
view_menu->get_popup()->set_item_checked( idx, listener );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -2068,6 +2084,7 @@ Dictionary SpatialEditorViewport::get_state() const {
|
|||
d["distance"]=cursor.distance;
|
||||
d["use_environment"]=camera->get_environment().is_valid();
|
||||
d["use_orthogonal"]=camera->get_projection()==Camera::PROJECTION_ORTHOGONAL;
|
||||
d["listener"]=viewport->is_audio_listener();
|
||||
return d;
|
||||
}
|
||||
|
||||
|
|
@ -2147,6 +2164,9 @@ SpatialEditorViewport::SpatialEditorViewport(SpatialEditor *p_spatial_editor, Ed
|
|||
view_menu->get_popup()->add_separator();
|
||||
view_menu->get_popup()->add_check_item("Environment",VIEW_ENVIRONMENT);
|
||||
view_menu->get_popup()->set_item_checked( view_menu->get_popup()->get_item_index(VIEW_ENVIRONMENT),true);
|
||||
view_menu->get_popup()->add_separator();
|
||||
view_menu->get_popup()->add_check_item("Audio Listener",VIEW_AUDIO_LISTENER);
|
||||
|
||||
view_menu->get_popup()->add_separator();
|
||||
view_menu->get_popup()->add_item("Selection (F)",VIEW_CENTER_TO_SELECTION);
|
||||
view_menu->get_popup()->add_item("Align with view (Ctrl+Shift+F)",VIEW_ALIGN_SELECTION_WITH_VIEW);
|
||||
|
|
@ -2163,6 +2183,12 @@ SpatialEditorViewport::SpatialEditorViewport(SpatialEditor *p_spatial_editor, Ed
|
|||
previewing=NULL;
|
||||
preview=NULL;
|
||||
gizmo_scale=1.0;
|
||||
|
||||
if (p_index==0) {
|
||||
view_menu->get_popup()->set_item_checked(view_menu->get_popup()->get_item_index(VIEW_AUDIO_LISTENER),true);
|
||||
viewport->set_as_audio_listener(true);
|
||||
}
|
||||
|
||||
EditorSettings::get_singleton()->connect("settings_changed",this,"update_transform_gizmo_view");
|
||||
|
||||
}
|
||||
|
|
@ -3307,6 +3333,11 @@ void SpatialEditor::clear() {
|
|||
}
|
||||
}
|
||||
|
||||
for(int i=0;i<4;i++) {
|
||||
|
||||
viewports[i]->view_menu->get_popup()->set_item_checked(view_menu->get_popup()->get_item_index(SpatialEditorViewport::VIEW_AUDIO_LISTENER),i==0);
|
||||
viewports[i]->viewport->set_as_audio_listener(i==0);
|
||||
}
|
||||
view_menu->get_popup()->set_item_checked( view_menu->get_popup()->get_item_index(MENU_VIEW_GRID), true );
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue