Modify the UI appearance of MuJoCo Studio.
PiperOrigin-RevId: 935247135 Change-Id: I4c35cf2f0cdfa36aa6d3c65c52a752edab266531
This commit is contained in:
committed by
Copybara-Service
parent
b1e3753a1a
commit
6039d4680a
+4
-4
@@ -62,15 +62,15 @@ if(EMSCRIPTEN)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
|
||||
endif()
|
||||
|
||||
# Filament uses the WEBGL variable (not EMSCRIPTEN) to identify web builds.
|
||||
# Filament uses the WASM variable (not EMSCRIPTEN) to identify web builds.
|
||||
# Without this, it falls into the LINUX path and tries to compile with
|
||||
# futex, X11, Vulkan, etc.
|
||||
if(MUJOCO_USE_FILAMENT)
|
||||
set(WEBGL ON CACHE BOOL "Filament WebGL mode" FORCE)
|
||||
set(WASM ON CACHE BOOL "Filament WASM mode" FORCE)
|
||||
endif()
|
||||
|
||||
# Automatically generate host tool imports for Filament cross-compilation.
|
||||
# When WEBGL is true, Filament hardcodes the path to:
|
||||
# When WASM is true, Filament hardcodes the path to:
|
||||
# ${FILAMENT}/${IMPORT_EXECUTABLES_DIR}/ImportExecutables-Release.cmake
|
||||
# So we write our file with that exact name and set IMPORT_EXECUTABLES_DIR
|
||||
# to point at CMAKE_BINARY_DIR (which is ../../ relative to filament-src).
|
||||
@@ -90,7 +90,7 @@ if(EMSCRIPTEN)
|
||||
"add_executable(cmgen IMPORTED)\n"
|
||||
"set_property(TARGET cmgen PROPERTY IMPORTED_LOCATION \"${CMGEN_EXE}\")\n"
|
||||
)
|
||||
# Filament's WEBGL path resolves: ${FILAMENT}/${IMPORT_EXECUTABLES_DIR}/ImportExecutables-Release.cmake
|
||||
# Filament's WASM path resolves: ${FILAMENT}/${IMPORT_EXECUTABLES_DIR}/ImportExecutables-Release.cmake
|
||||
# FILAMENT = _deps/filament-src, so ../../ resolves to CMAKE_BINARY_DIR.
|
||||
set(IMPORT_EXECUTABLES_DIR "../../" CACHE PATH "" FORCE)
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user