M2
This commit is contained in:
11
src/Algebra/FixableObjects/PostConstructionFixExtension.cs
Normal file
11
src/Algebra/FixableObjects/PostConstructionFixExtension.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Skeleton.Algebra.FixableObjects;
|
||||
|
||||
internal static class PostConstructionFixExtension
|
||||
{
|
||||
internal static void PostConstructionFix<TFixable>(this TFixable obj)
|
||||
where TFixable : FixableTensor
|
||||
{
|
||||
if (obj.GetType() == typeof(TFixable) && obj.NeedFix)
|
||||
obj.Fix();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user