Skip to content

Commit

Permalink
fix: set default render scene to none
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonHough committed Feb 22, 2024
1 parent d6867df commit 6557b15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Runtime/Core/Scripts/Data/AvatarRenderSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public BlendShape(string name, float value)
public class AvatarRenderSettings
{
public Expression Expression = Expression.None;
public RenderPose Pose = RenderPose.Relaxed;
public RenderPose Pose = RenderPose.None;
public RenderCamera Camera = RenderCamera.Portrait;
public int Quality = 100;
public int Size = 800;
Expand All @@ -39,8 +39,10 @@ public string GetParametersAsString()
{
queryBuilder.AddKeyValue(nameof(Core.Expression).ToCamelCase(), Expression.ToString().ToCamelCase());
}

queryBuilder.AddKeyValue(nameof(Pose).ToCamelCase(), RenderSettingsHelper.RenderPoseMap[Pose]);
if (Pose != RenderPose.None)
{
queryBuilder.AddKeyValue(nameof(Pose).ToCamelCase(), RenderSettingsHelper.RenderPoseMap[Pose]);
}

if (BlendShapes != null)
{
Expand Down
1 change: 1 addition & 0 deletions Runtime/Core/Scripts/Data/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public enum Expression

public enum RenderPose
{
None,
Relaxed,
PowerStance,
Standing,
Expand Down

0 comments on commit 6557b15

Please sign in to comment.