Fix typo - "collison" -> "collision"
This commit is contained in:
parent
f8745f2f71
commit
eba8be6e45
9 changed files with 17 additions and 17 deletions
|
@ -1654,7 +1654,7 @@ ShaderCompiler::DefaultIdentifierActions actions;
|
|||
actions.render_mode_defines["disable_force"] = "#define DISABLE_FORCE\n";
|
||||
actions.render_mode_defines["disable_velocity"] = "#define DISABLE_VELOCITY\n";
|
||||
actions.render_mode_defines["keep_data"] = "#define ENABLE_KEEP_DATA\n";
|
||||
actions.render_mode_defines["collision_use_scale"] = "#define USE_COLLISON_SCALE\n";
|
||||
actions.render_mode_defines["collision_use_scale"] = "#define USE_COLLISION_SCALE\n";
|
||||
|
||||
actions.sampler_array_name = "material_samplers";
|
||||
actions.base_texture_binding_index = 1;
|
||||
|
|
|
@ -63,7 +63,7 @@ Error EditorRun::run(const String &p_scene, const String &p_write_movie) {
|
|||
args.push_back("--editor-pid");
|
||||
args.push_back(itos(OS::get_singleton()->get_process_id()));
|
||||
|
||||
bool debug_collisions = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_collisons", false);
|
||||
bool debug_collisions = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_collisions", false);
|
||||
bool debug_paths = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_paths", false);
|
||||
bool debug_navigation = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_navigation", false);
|
||||
if (debug_collisions) {
|
||||
|
|
|
@ -134,7 +134,7 @@ Error EditorRunNative::run_native(int p_idx, int p_platform) {
|
|||
|
||||
bool deploy_debug_remote = is_deploy_debug_remote_enabled();
|
||||
bool deploy_dumb = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_file_server", false);
|
||||
bool debug_collisions = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_collisons", false);
|
||||
bool debug_collisions = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_collisions", false);
|
||||
bool debug_navigation = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_navigation", false);
|
||||
|
||||
if (deploy_debug_remote) {
|
||||
|
@ -144,7 +144,7 @@ Error EditorRunNative::run_native(int p_idx, int p_platform) {
|
|||
flags |= EditorExportPlatform::DEBUG_FLAG_DUMB_CLIENT;
|
||||
}
|
||||
if (debug_collisions) {
|
||||
flags |= EditorExportPlatform::DEBUG_FLAG_VIEW_COLLISONS;
|
||||
flags |= EditorExportPlatform::DEBUG_FLAG_VIEW_COLLISIONS;
|
||||
}
|
||||
if (debug_navigation) {
|
||||
flags |= EditorExportPlatform::DEBUG_FLAG_VIEW_NAVIGATION;
|
||||
|
|
|
@ -176,7 +176,7 @@ void EditorExportPlatform::gen_debug_flags(Vector<String> &r_flags, int p_flags)
|
|||
}
|
||||
}
|
||||
|
||||
if (p_flags & DEBUG_FLAG_VIEW_COLLISONS) {
|
||||
if (p_flags & DEBUG_FLAG_VIEW_COLLISIONS) {
|
||||
r_flags.push_back("--debug-collisions");
|
||||
}
|
||||
|
||||
|
@ -1609,7 +1609,7 @@ void EditorExportPlatform::gen_export_flags(Vector<String> &r_flags, int p_flags
|
|||
}
|
||||
}
|
||||
|
||||
if (p_flags & DEBUG_FLAG_VIEW_COLLISONS) {
|
||||
if (p_flags & DEBUG_FLAG_VIEW_COLLISIONS) {
|
||||
r_flags.push_back("--debug-collisions");
|
||||
}
|
||||
|
||||
|
|
|
@ -210,7 +210,7 @@ public:
|
|||
DEBUG_FLAG_DUMB_CLIENT = 1,
|
||||
DEBUG_FLAG_REMOTE_DEBUG = 2,
|
||||
DEBUG_FLAG_REMOTE_DEBUG_LOCALHOST = 4,
|
||||
DEBUG_FLAG_VIEW_COLLISONS = 8,
|
||||
DEBUG_FLAG_VIEW_COLLISIONS = 8,
|
||||
DEBUG_FLAG_VIEW_NAVIGATION = 16,
|
||||
};
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ DebuggerEditorPlugin::DebuggerEditorPlugin(PopupMenu *p_debug_menu) {
|
|||
debug_menu->set_item_tooltip(-1,
|
||||
TTR("When this option is enabled, using one-click deploy for Android will only export an executable without the project data.\nThe filesystem will be provided from the project by the editor over the network.\nOn Android, deploying will use the USB cable for faster performance. This option speeds up testing for projects with large assets."));
|
||||
debug_menu->add_separator();
|
||||
debug_menu->add_check_shortcut(ED_SHORTCUT("editor/visible_collision_shapes", TTR("Visible Collision Shapes")), RUN_DEBUG_COLLISONS);
|
||||
debug_menu->add_check_shortcut(ED_SHORTCUT("editor/visible_collision_shapes", TTR("Visible Collision Shapes")), RUN_DEBUG_COLLISIONS);
|
||||
debug_menu->set_item_tooltip(-1,
|
||||
TTR("When this option is enabled, collision shapes and raycast nodes (for 2D and 3D) will be visible in the running project."));
|
||||
debug_menu->add_check_shortcut(ED_SHORTCUT("editor/visible_paths", TTR("Visible Paths")), RUN_DEBUG_PATHS);
|
||||
|
@ -150,10 +150,10 @@ void DebuggerEditorPlugin::_menu_option(int p_option) {
|
|||
EditorSettings::get_singleton()->set_project_metadata("debug_options", "run_deploy_remote_debug", !ischecked);
|
||||
|
||||
} break;
|
||||
case RUN_DEBUG_COLLISONS: {
|
||||
bool ischecked = debug_menu->is_item_checked(debug_menu->get_item_index(RUN_DEBUG_COLLISONS));
|
||||
debug_menu->set_item_checked(debug_menu->get_item_index(RUN_DEBUG_COLLISONS), !ischecked);
|
||||
EditorSettings::get_singleton()->set_project_metadata("debug_options", "run_debug_collisons", !ischecked);
|
||||
case RUN_DEBUG_COLLISIONS: {
|
||||
bool ischecked = debug_menu->is_item_checked(debug_menu->get_item_index(RUN_DEBUG_COLLISIONS));
|
||||
debug_menu->set_item_checked(debug_menu->get_item_index(RUN_DEBUG_COLLISIONS), !ischecked);
|
||||
EditorSettings::get_singleton()->set_project_metadata("debug_options", "run_debug_collisions", !ischecked);
|
||||
|
||||
} break;
|
||||
case RUN_DEBUG_PATHS: {
|
||||
|
@ -190,7 +190,7 @@ void DebuggerEditorPlugin::_notification(int p_what) {
|
|||
void DebuggerEditorPlugin::_update_debug_options() {
|
||||
bool check_deploy_remote = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_deploy_remote_debug", false);
|
||||
bool check_file_server = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_file_server", false);
|
||||
bool check_debug_collisions = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_collisons", false);
|
||||
bool check_debug_collisions = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_collisions", false);
|
||||
bool check_debug_paths = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_paths", false);
|
||||
bool check_debug_navigation = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_navigation", false);
|
||||
bool check_live_debug = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_live_debug", true);
|
||||
|
@ -204,7 +204,7 @@ void DebuggerEditorPlugin::_update_debug_options() {
|
|||
_menu_option(RUN_FILE_SERVER);
|
||||
}
|
||||
if (check_debug_collisions) {
|
||||
_menu_option(RUN_DEBUG_COLLISONS);
|
||||
_menu_option(RUN_DEBUG_COLLISIONS);
|
||||
}
|
||||
if (check_debug_paths) {
|
||||
_menu_option(RUN_DEBUG_PATHS);
|
||||
|
|
|
@ -48,7 +48,7 @@ private:
|
|||
enum MenuOptions {
|
||||
RUN_FILE_SERVER,
|
||||
RUN_LIVE_DEBUG,
|
||||
RUN_DEBUG_COLLISONS,
|
||||
RUN_DEBUG_COLLISIONS,
|
||||
RUN_DEBUG_PATHS,
|
||||
RUN_DEBUG_NAVIGATION,
|
||||
RUN_DEPLOY_REMOTE_DEBUG,
|
||||
|
|
|
@ -475,7 +475,7 @@ void main() {
|
|||
|
||||
float particle_size = FRAME.particle_size;
|
||||
|
||||
#ifdef USE_COLLISON_SCALE
|
||||
#ifdef USE_COLLISION_SCALE
|
||||
|
||||
particle_size *= dot(vec3(length(PARTICLE.xform[0].xyz), length(PARTICLE.xform[1].xyz), length(PARTICLE.xform[2].xyz)), vec3(0.33333333333));
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ ParticlesStorage::ParticlesStorage() {
|
|||
actions.render_mode_defines["disable_force"] = "#define DISABLE_FORCE\n";
|
||||
actions.render_mode_defines["disable_velocity"] = "#define DISABLE_VELOCITY\n";
|
||||
actions.render_mode_defines["keep_data"] = "#define ENABLE_KEEP_DATA\n";
|
||||
actions.render_mode_defines["collision_use_scale"] = "#define USE_COLLISON_SCALE\n";
|
||||
actions.render_mode_defines["collision_use_scale"] = "#define USE_COLLISION_SCALE\n";
|
||||
|
||||
actions.sampler_array_name = "material_samplers";
|
||||
actions.base_texture_binding_index = 1;
|
||||
|
|
Loading…
Reference in a new issue