summaryrefslogtreecommitdiffstats
path: root/scene/main/shader_globals_override.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2024-02-26 06:34:53 -0600
committerAaron Franke <arnfranke@yahoo.com>2024-03-11 01:00:55 -0700
commit6aac3e4a164457bfb08ff03d29313b84aedc607e (patch)
tree9c555a7a4cc1b355302c2485b9b65fba729fead3 /scene/main/shader_globals_override.cpp
parent810f127022ec2cbfb288e436151d1a777c7b5da7 (diff)
downloadredot-engine-6aac3e4a164457bfb08ff03d29313b84aedc607e.tar.gz
Disable all 3D nodes, physics, and resources when compiling without 3D
Diffstat (limited to 'scene/main/shader_globals_override.cpp')
-rw-r--r--scene/main/shader_globals_override.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/main/shader_globals_override.cpp b/scene/main/shader_globals_override.cpp
index e3c26c30e2..091e6249bf 100644
--- a/scene/main/shader_globals_override.cpp
+++ b/scene/main/shader_globals_override.cpp
@@ -30,7 +30,7 @@
#include "shader_globals_override.h"
-#include "scene/3d/node_3d.h"
+#include "scene/main/node.h"
#include "scene/scene_string_names.h"
StringName *ShaderGlobalsOverride::_remap(const StringName &p_name) const {
@@ -247,12 +247,12 @@ void ShaderGlobalsOverride::_activate() {
void ShaderGlobalsOverride::_notification(int p_what) {
switch (p_what) {
- case Node3D::NOTIFICATION_ENTER_TREE: {
+ case Node::NOTIFICATION_ENTER_TREE: {
add_to_group(SceneStringNames::get_singleton()->shader_overrides_group);
_activate();
} break;
- case Node3D::NOTIFICATION_EXIT_TREE: {
+ case Node::NOTIFICATION_EXIT_TREE: {
if (active) {
//remove overrides
for (const KeyValue<StringName, Override> &E : overrides) {