blueloveTH 2 лет назад
Родитель
Сommit
7d92a1f183
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      docs/modules/linalg.md
  2. 1 1
      include/typings/linalg.pyi
  3. 1 1
      src/linalg.cpp

+ 1 - 1
docs/modules/linalg.md

@@ -123,7 +123,7 @@ class mat3x3(_StructLike['mat3x3']):
     @overload
     def __matmul__(self, other: vec3) -> vec3: ...
 
-    def __imatmul__(self, other: mat3x3) -> None: ...
+    def __imatmul__(self, other: mat3x3): ...
     def invert_(self) -> None: ...
 
     @staticmethod

+ 1 - 1
include/typings/linalg.pyi

@@ -113,7 +113,7 @@ class mat3x3(_StructLike['mat3x3']):
     @overload
     def __matmul__(self, other: vec3) -> vec3: ...
 
-    def __imatmul__(self, other: mat3x3) -> None: ...
+    def __imatmul__(self, other: mat3x3): ...
     def invert_(self) -> None: ...
 
     @staticmethod

+ 1 - 1
src/linalg.cpp

@@ -390,7 +390,7 @@ static Vec2 SmoothDamp(Vec2 current, Vec2 target, PyVec2& currentVelocity, float
             Mat3x3 out;
             self.matmul(other, out);
             self = out;
-            return vm->None;
+            return args[0];
         });
 
         vm->bind_method<0>(type, "determinant", [](VM* vm, ArgsView args){