Skip to content

Commit

Permalink
fix(avatar): adjust avatar base scale (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenira committed Mar 12, 2024
1 parent ffa3076 commit 98a35af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugin/TTIK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<AssemblyName>ttik</AssemblyName>
<Product>Techtonica Inverse Kinematics</Product>
<Version>0.1.0</Version> <!-- x-release-please-version -->
<Version>0.2.0</Version> <!-- x-release-please-version -->
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<RestoreAdditionalProjectSources>
Expand Down
5 changes: 3 additions & 2 deletions plugin/src/ik/IkPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ public void setScale(float scale)
{
this.scale = scale;
OnScaleChanged?.Invoke(scale);
Logger.LogDebug($"Setting object scale to {Vector3.one * scale} ({scale})");
ik.references.root.localScale = Vector3.one * scale;
var originalScale = Vector3.one * 1.15f;
Logger.LogDebug($"Setting object scale to {originalScale * scale} ({scale})");
ik.references.root.localScale = originalScale * scale;
}

public void calibrate(Transform headTargetParent, Transform leftHandTargetParent, Transform rightHandTargetParent)
Expand Down
2 changes: 1 addition & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"extra-files": [
"README.adoc",
".github/ISSUE_TEMPLATE/bug_report.md",
"plugin/PiUtils.csproj",
"plugin/TTIK.csproj",
"nuget/TTIKDefinitions.nuspec",
{
"type": "json",
Expand Down

0 comments on commit 98a35af

Please sign in to comment.