This commit is contained in:
2026-01-22 00:06:13 +08:00
parent f26fc95ea3
commit ed7476e54b
316 changed files with 4962 additions and 14039 deletions

View File

@@ -432,7 +432,7 @@ class InfluenceMappingConfig(Object):
return
if axis is not None and not isinstance(axis, int):
raise Exception("invalid axis type, need int")
raise Exception("无效的轴类型,需要整数")
self.__mirror_axis = axis
@@ -487,10 +487,10 @@ class InfluenceMapping(Object):
def __init__(self):
self.config = InfluenceMappingConfig() # type:InfluenceMappingConfig
"assigned config"
"分配的配置"
self.influences = [] # type: list[InfluenceInfo]
"Source influences list. Can be assigned to result of :py:meth:`Layers.list_influences`"
"源影响列表. 可以分配给结果 :py:meth:`Layers.list_influences`"
self.destinationInfluences = None
self.calculatedMapping = None
@@ -498,7 +498,7 @@ class InfluenceMapping(Object):
def calculate(self):
mirror_mode = self.config.mirror_axis is not None
log.info("calculate influence mapping, mirror mode: %s", mirror_mode)
log.info("计算影响映射,镜像模式: %s", mirror_mode)
if self.destinationInfluences is None:
self.destinationInfluences = self.influences