Skip to content

Commit c33f159

Browse files
committed
v0.2.4
1 parent 1872270 commit c33f159

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from setuptools.command.build_ext import build_ext
1010

1111
NAME = "live2d-py"
12-
VERSION = "0.2.3" # TODO: edit before push
12+
VERSION = "0.2.4" # TODO: edit before push
1313
DESCRIPTION = "Live2D Python SDK"
1414
LONG_DESCRIPTION = open("README.md", "r", encoding="utf-8").read()
1515
AUTHOR = "Arkueid"

Diff for: updates.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ class LAppModel:
2424
用例:
2525

2626
```python
27-
# 设置 part 透明度
2827
log.Debug(f"Part Count: {model.GetPartCount()}")
28+
# 获取模型的 part id 列表(字符串列表)
2929
partIds = model.GetPartIds()
3030
log.Debug(f"Part Ids: {partIds}")
31+
# 通过 part id 在列表中的 index 来设置其透明度
3132
model.SetPartOpacity(partIds.index("PartHairBack"), 0.5)
3233
```
3334

0 commit comments

Comments
 (0)