Bug fixing and updated road painter import process
The import process now loads a .json file for applying decals to the road. Several bug fixes related to the generation of multiple map textures and dynamic materials. New update to the road painter preset on the art repository.
This commit is contained in:
parent
6f7ba077cb
commit
6aa5898854
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!python
|
||||
|
||||
# Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de
|
||||
# Barcelona (UAB).
|
||||
|
@ -337,6 +337,21 @@ def copy_roadpainter_config_files(package_name):
|
|||
shutil.copy(final_path, package_config_path)
|
||||
|
||||
|
||||
def copy_roadpainter_config_files(package_name):
|
||||
"""Copies roadpainter configuration files into Unreal content folder"""
|
||||
|
||||
two_directories_up = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
|
||||
final_path = os.path.join(two_directories_up, "Import", "roadpainter_decals.json")
|
||||
package_config_path = os.path.join(CARLA_ROOT_PATH, "Unreal", "CarlaUE4", "Content", package_name, "Config")
|
||||
if not os.path.exists(package_config_path):
|
||||
try:
|
||||
os.makedirs(package_config_path)
|
||||
except OSError as exc:
|
||||
if exc.errno != errno.EEXIST:
|
||||
raise
|
||||
shutil.copy(final_path, package_config_path)
|
||||
|
||||
|
||||
def import_assets(package_name, json_dirname, props, maps, do_tiles, tile_size):
|
||||
"""Same commandlet is used for importing assets and also maps."""
|
||||
commandlet_name = "ImportAssets"
|
||||
|
|
Loading…
Reference in New Issue