diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-09-12 12:55:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-12 12:55:53 +0200 |
commit | aabbd00284640a4789f96702c134ea40b11b402e (patch) | |
tree | 8363659a6551644b0d89401681e2909d5451a119 /scene/3d | |
parent | c5e0e31f5106d7d91dc478af1f86740c74cea824 (diff) | |
parent | b2a38854fdde296fd2d7da139a29b23a18ab494d (diff) |
Merge pull request #10908 from hpvb/fix-unused-variables
Fix unused variable warnings
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/gi_probe.cpp | 16 | ||||
-rw-r--r-- | scene/3d/spatial.cpp | 2 |
2 files changed, 0 insertions, 18 deletions
diff --git a/scene/3d/gi_probe.cpp b/scene/3d/gi_probe.cpp index c2b5283b9c..66364d40f9 100644 --- a/scene/3d/gi_probe.cpp +++ b/scene/3d/gi_probe.cpp @@ -696,22 +696,6 @@ void GIProbe::_plot_face(int p_idx, int p_level, int p_x, int p_y, int p_z, cons p_baker->bake_cells[p_idx].normal[2] += normal_accum.z; p_baker->bake_cells[p_idx].alpha += alpha; - static const Vector3 side_normals[6] = { - Vector3(-1, 0, 0), - Vector3(1, 0, 0), - Vector3(0, -1, 0), - Vector3(0, 1, 0), - Vector3(0, 0, -1), - Vector3(0, 0, 1), - }; - - /* - for(int i=0;i<6;i++) { - if (normal.dot(side_normals[i])>CMP_EPSILON) { - p_baker->bake_cells[p_idx].used_sides|=(1<<i); - } - }*/ - } else { //go down diff --git a/scene/3d/spatial.cpp b/scene/3d/spatial.cpp index 7db3bb18bd..91fe426b99 100644 --- a/scene/3d/spatial.cpp +++ b/scene/3d/spatial.cpp @@ -175,7 +175,6 @@ void Spatial::_notification(int p_what) { if (get_script_instance()) { - Variant::CallError err; get_script_instance()->call_multilevel(SceneStringNames::get_singleton()->_enter_world, NULL, 0); } #ifdef TOOLS_ENABLED @@ -207,7 +206,6 @@ void Spatial::_notification(int p_what) { if (get_script_instance()) { - Variant::CallError err; get_script_instance()->call_multilevel(SceneStringNames::get_singleton()->_exit_world, NULL, 0); } |