Skip to content

Commit 2c84408

Browse files
committed
version 0.1.61 released: add save_used_shaders option to GlassConfig
1 parent a219768 commit 2c84408

7 files changed

Lines changed: 8 additions & 7 deletions

File tree

glass/GlassConfig.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def __init__(self):
2222
self.print: bool = True
2323
self.warning: bool = True
2424
self.recompile: bool = False
25+
self.save_used_shaders: bool = False
2526

2627
@property
2728
def cache_folder(self) -> str:

glass/Shaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _apply_compile(self):
173173
flush=True,
174174
)
175175

176-
if GlassConfig.debug:
176+
if GlassConfig.debug and GlassConfig.save_used_shaders:
177177
dest_folder = "used_shaders/" + os.path.basename(sys.argv[0])
178178
if not os.path.isdir(dest_folder):
179179
os.makedirs(dest_folder)

glass/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.1.60"
1+
__version__ = "0.1.61"
22

33
from .VAO import VAO
44
from .VBO import VBO

glass_engine/README_PYPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ camera.screen.show() # 相机显示屏显示渲染结果
5555

5656
## Release notes
5757

58-
### version 0.1.60
58+
### version 0.1.61
5959

6060
* 升级 tree-sitter 为现代版
6161
* 优化预处理调用时机,减少调用次数

glass_engine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.1.60"
1+
__version__ = "0.1.61"
22

33
from .Scene import Scene
44
from .SceneNode import SceneNode

setup_glass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def find_files(module, directory):
2323

2424
setuptools.setup(
2525
name="python_glass",
26-
version="0.1.60",
26+
version="0.1.61",
2727
author="王炳辉 (BingHui-WANG)",
2828
author_email="binghui.wang@foxmail.com",
2929
description="OpenGL wrapper for Glass-Engine",

setup_glass_engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def find_files(module, directory):
2222

2323
setuptools.setup(
2424
name="glass_engine",
25-
version="0.1.60",
25+
version="0.1.61",
2626
author="王炳辉 (BingHui-WANG)",
2727
author_email="binghui.wang@foxmail.com",
2828
description="An easy-to-use 3D rendering engine for Python",
@@ -36,7 +36,7 @@ def find_files(module, directory):
3636
include_package_data=False,
3737
python_requires=">=3.7",
3838
install_requires=[
39-
"python-glass==0.1.60",
39+
"python-glass==0.1.61",
4040
"assimpy>=5.4.3",
4141
"pytweening"
4242
],

0 commit comments

Comments
 (0)