diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-10-14 01:01:25 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-10-14 01:01:25 -0300 |
commit | a84ba9c853f972f8e666b17f3e0f875b7282e6c1 (patch) | |
tree | 70a5d44acbecc93011333d13dd51b1786d42eae3 /scene/3d/light.cpp | |
parent | 13a848e332092b40956739a08fa0dac3357db950 (diff) | |
download | redot-engine-a84ba9c853f972f8e666b17f3e0f875b7282e6c1.tar.gz |
Collada
-=-=-=-
-Fixed some DAE import & export bugs
-Changed Collada exporter to use the mesh loops API
-Added tangent export to Collada exporter
-Added triangulation option to Collada exporter
-Changed a little how normalmaps are handled in shader. Not sure if it's working properly, be careful.
-Fixed some strange bug with kinematic bodies #776
-Fix release compilaiton issues #782
Diffstat (limited to 'scene/3d/light.cpp')
-rw-r--r-- | scene/3d/light.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scene/3d/light.cpp b/scene/3d/light.cpp index 7713a262ef..6cf50450ac 100644 --- a/scene/3d/light.cpp +++ b/scene/3d/light.cpp @@ -435,15 +435,20 @@ void Light::_update_visibility() { if (!is_inside_scene()) return; + + +#ifdef TOOLS_ENABLED bool editor_ok=true; if (editor_only) { - if (!get_scene()->is_editor_hint()) { editor_ok=false; } else { editor_ok = (get_scene()->get_edited_scene_root() && (this==get_scene()->get_edited_scene_root() || get_owner()==get_scene()->get_edited_scene_root())); } } +#else + bool editor_ok=false; +#endif VS::get_singleton()->instance_light_set_enabled(get_instance(),is_visible() && enabled && editor_ok); |