diff options
| author | marynate | 2014-07-03 16:06:23 +0800 |
|---|---|---|
| committer | marynate | 2014-07-03 16:07:11 +0800 |
| commit | e253d2010d6f880ae6c8800c8b4789ab3c5ce651 (patch) | |
| tree | 987f36c25511bab642917c7d537504a9c861130d /scene/resources/world.cpp | |
| parent | a5af2971bb3192305c38d45774e3d99ea6b095f0 (diff) | |
| download | godot-e253d2010d6f880ae6c8800c8b4789ab3c5ce651.tar.gz godot-e253d2010d6f880ae6c8800c8b4789ab3c5ce651.tar.zst godot-e253d2010d6f880ae6c8800c8b4789ab3c5ce651.zip | |
Fixed #553: Disable 3D nodes for smaller executable
Diffstat (limited to '')
| -rw-r--r-- | scene/resources/world.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/scene/resources/world.cpp b/scene/resources/world.cpp index c68428746..880a3a32e 100644 --- a/scene/resources/world.cpp +++ b/scene/resources/world.cpp @@ -225,17 +225,22 @@ struct SpatialIndexer { void World::_register_camera(Camera* p_camera) { +#ifndef _3D_DISABLED indexer->_add_camera(p_camera); +#endif } void World::_update_camera(Camera* p_camera){ +#ifndef _3D_DISABLED indexer->_update_camera(p_camera); - +#endif } void World::_remove_camera(Camera* p_camera){ +#ifndef _3D_DISABLED indexer->_remove_camera(p_camera); +#endif } @@ -243,26 +248,31 @@ void World::_remove_camera(Camera* p_camera){ void World::_register_notifier(VisibilityNotifier* p_notifier,const AABB& p_rect){ - +#ifndef _3D_DISABLED indexer->_notifier_add(p_notifier,p_rect); +#endif } void World::_update_notifier(VisibilityNotifier* p_notifier,const AABB& p_rect){ - +#ifndef _3D_DISABLED indexer->_notifier_update(p_notifier,p_rect); +#endif } void World::_remove_notifier(VisibilityNotifier* p_notifier){ - +#ifndef _3D_DISABLED indexer->_notifier_remove(p_notifier); +#endif } void World::_update(uint64_t p_frame) { +#ifndef _3D_DISABLED indexer->_update(p_frame); +#endif } |
