mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 13:43:15 +00:00
8b0546d93b
Implemented uniform API in Viewport class to override 2D and/or 3D camera. Added buttons in 2D and 3D editor viewport toolbars that override the running game camera transform with the editor viewport camera transform. Implemented via remote debugger protocol and camera override API. Removed LiveEditFuncs function pointers from ScriptDebugger class. Since the debugger got access to the SceneTree instance (if one exists), there is no need to store the function pointers. The live edit functions in SceneTree are used directly instead. Also removed the static version of live edit functions in SceneTree for the same reason. This reduced the SceneTree -> Debugger coupling too since the function pointers don't need to be set from SceneTree anymore. Moved script_debugger_remote.h/cpp from 'core/' to 'scene/debugger/'. This is because the remote debugger is now using SceneTree directly and 'core/' classes should not depend on 'scene/' classes.
39 lines
831 B
Python
39 lines
831 B
Python
#!/usr/bin/env python
|
|
|
|
Import('env')
|
|
|
|
env.scene_sources = []
|
|
|
|
# Thirdparty code
|
|
thirdparty_dir = "#thirdparty/misc/"
|
|
thirdparty_sources = [
|
|
# C++ sources
|
|
"easing_equations.cpp",
|
|
# C sources
|
|
"mikktspace.c",
|
|
]
|
|
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
|
|
|
env_thirdparty = env.Clone()
|
|
env_thirdparty.disable_warnings()
|
|
env_thirdparty.add_source_files(env.scene_sources, thirdparty_sources)
|
|
|
|
# Godot's own sources
|
|
env.add_source_files(env.scene_sources, "*.cpp")
|
|
|
|
|
|
# Chain load SCsubs
|
|
SConscript('main/SCsub')
|
|
SConscript('gui/SCsub')
|
|
SConscript('3d/SCsub')
|
|
SConscript('2d/SCsub')
|
|
SConscript('animation/SCsub')
|
|
SConscript('audio/SCsub')
|
|
SConscript('resources/SCsub')
|
|
SConscript('debugger/SCsub')
|
|
|
|
|
|
# Build it all as a library
|
|
lib = env.add_library("scene", env.scene_sources)
|
|
env.Prepend(LIBS=[lib])
|