chore(git): 更新.gitignore文件以包含更多Python和项目特定文件 - 添加Python相关忽略规则(__pycache__、.pyc等) - 添加虚拟环境相关忽略(venv、env等) - 添加IDE相关忽略(.vscode、.idea等) - 添加C++/CMake相关忽略(CMakeFiles、Makefile等) - 添加Panda3D/RenderPipeline特定忽略(.bam、.egg等) - 添加样本和测试模型相关忽略 - 添加操作系统特定文件忽略 - 移除旧的忽略规则并重新组织结构 ```
45 lines
1.5 KiB
Python
45 lines
1.5 KiB
Python
"""
|
|
|
|
RenderPipeline
|
|
|
|
Copyright (c) 2014-2016 tobspr <tobias.springer1@gmail.com>
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
|
|
"""
|
|
|
|
# Script to download the Render Pipeline samples
|
|
|
|
import os
|
|
import sys
|
|
|
|
sys.path.insert(0, "../")
|
|
sys.path.insert(0, "../rpcore/util")
|
|
|
|
from submodule_downloader import download_submodule # noqa
|
|
|
|
if __name__ == "__main__":
|
|
|
|
# Make sure we are in the right directory
|
|
main_dir = os.path.dirname(os.path.realpath(__file__))
|
|
os.chdir(main_dir)
|
|
|
|
# Now extract the samples
|
|
download_submodule("tobspr", "RenderPipeline-Samples", ".", ["README.md", "LICENSE"])
|