mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
e6deba8d19
Fixes reported logically dead codes by Coverity * image.cpp: Doesn't really need any modification. But to remove the bug report then we have to move the MAX call away from the for loop statement. * rasterizer_gles3.cpp: Removes unnecessary elif condition since it is checked earlier in the function * collada.cpp: If stamement never reached due to macro ERR_CONTINUE does the same. * navigation_mesh.cpp: Variables should always be null - however, also checked for the very same condition in their function call. Leaving this for review (whether the function call is necessary or not) * path_editor_plugin.cpp: If cancel is true, then it should restore the edited value to the original provided. http://docs.godotengine.org/en/3.0/classes/class_editorspatialgizmo.html#class-editorspatialgizmo-commit-handle * spatial_editor_gizmos.cpp: the very condition of i >= 3 is predetermined in the if case right before it. Thus case 1 is always '1' and case 2 is always '-1' * grid_map_editor.cpp: Same as above in spatial_editor_gizmos.cpp * voxel_light_baker.cpp: Same as above in spatial_editor_gizmos.cpp * visual_server.cpp: Same as above in spatial_editor_gizmos.cpp * visual_script_expression.cpp: char '-' is already true in the switch case mechanism. Thus it can never reach to default case. * particles.cpp: Case 'PARAM_MAX' is unreachable due to index checking right before the switch execution. * shader_language.cpp: Invalid index is handled in switch default case. `type < TYPE_FLOAT && type > TYPE_VEC4` -> `(type < TYPE_FLOAT || type > TYPE_VEC4`) Fixes the "always false problem" in TODO comment. |
||
---|---|---|
.. | ||
abstract_polygon_2d_editor.cpp | ||
abstract_polygon_2d_editor.h | ||
animation_player_editor_plugin.cpp | ||
animation_player_editor_plugin.h | ||
animation_tree_editor_plugin.cpp | ||
animation_tree_editor_plugin.h | ||
asset_library_editor_plugin.cpp | ||
asset_library_editor_plugin.h | ||
baked_lightmap_editor_plugin.cpp | ||
baked_lightmap_editor_plugin.h | ||
camera_editor_plugin.cpp | ||
camera_editor_plugin.h | ||
canvas_item_editor_plugin.cpp | ||
canvas_item_editor_plugin.h | ||
collision_polygon_2d_editor_plugin.cpp | ||
collision_polygon_2d_editor_plugin.h | ||
collision_polygon_editor_plugin.cpp | ||
collision_polygon_editor_plugin.h | ||
collision_shape_2d_editor_plugin.cpp | ||
collision_shape_2d_editor_plugin.h | ||
cube_grid_theme_editor_plugin.cpp | ||
cube_grid_theme_editor_plugin.h | ||
curve_editor_plugin.cpp | ||
curve_editor_plugin.h | ||
editor_preview_plugins.cpp | ||
editor_preview_plugins.h | ||
gi_probe_editor_plugin.cpp | ||
gi_probe_editor_plugin.h | ||
gradient_editor_plugin.cpp | ||
gradient_editor_plugin.h | ||
item_list_editor_plugin.cpp | ||
item_list_editor_plugin.h | ||
light_occluder_2d_editor_plugin.cpp | ||
light_occluder_2d_editor_plugin.h | ||
line_2d_editor_plugin.cpp | ||
line_2d_editor_plugin.h | ||
material_editor_plugin.cpp | ||
material_editor_plugin.h | ||
mesh_editor_plugin.cpp | ||
mesh_editor_plugin.h | ||
mesh_instance_editor_plugin.cpp | ||
mesh_instance_editor_plugin.h | ||
multimesh_editor_plugin.cpp | ||
multimesh_editor_plugin.h | ||
navigation_mesh_editor_plugin.cpp | ||
navigation_mesh_editor_plugin.h | ||
navigation_mesh_generator.cpp | ||
navigation_mesh_generator.h | ||
navigation_polygon_editor_plugin.cpp | ||
navigation_polygon_editor_plugin.h | ||
particles_2d_editor_plugin.cpp | ||
particles_2d_editor_plugin.h | ||
particles_editor_plugin.cpp | ||
particles_editor_plugin.h | ||
path_2d_editor_plugin.cpp | ||
path_2d_editor_plugin.h | ||
path_editor_plugin.cpp | ||
path_editor_plugin.h | ||
polygon_2d_editor_plugin.cpp | ||
polygon_2d_editor_plugin.h | ||
resource_preloader_editor_plugin.cpp | ||
resource_preloader_editor_plugin.h | ||
script_editor_plugin.cpp | ||
script_editor_plugin.h | ||
script_text_editor.cpp | ||
script_text_editor.h | ||
SCsub | ||
shader_editor_plugin.cpp | ||
shader_editor_plugin.h | ||
shader_graph_editor_plugin.cpp | ||
shader_graph_editor_plugin.h | ||
skeleton_2d_editor_plugin.cpp | ||
skeleton_2d_editor_plugin.h | ||
spatial_editor_plugin.cpp | ||
spatial_editor_plugin.h | ||
sprite_editor_plugin.cpp | ||
sprite_editor_plugin.h | ||
sprite_frames_editor_plugin.cpp | ||
sprite_frames_editor_plugin.h | ||
style_box_editor_plugin.cpp | ||
style_box_editor_plugin.h | ||
texture_editor_plugin.cpp | ||
texture_editor_plugin.h | ||
texture_region_editor_plugin.cpp | ||
texture_region_editor_plugin.h | ||
theme_editor_plugin.cpp | ||
theme_editor_plugin.h | ||
tile_map_editor_plugin.cpp | ||
tile_map_editor_plugin.h | ||
tile_set_editor_plugin.cpp | ||
tile_set_editor_plugin.h |