Skip to content

Commit

Permalink
fix: boneless skinned meshes do not properly inherit scale (#292)
Browse files Browse the repository at this point in the history
Closes: #284
  • Loading branch information
bdunderscore authored Jul 28, 2024
1 parent d322161 commit 9497ebf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- [#283] Cached proxy objects are visible after exiting play mode
- [#285] Harmony patches break when keyboard is used to open/close objects in the hierarchy in some cases.
- [#284] Preview objects do not inherit scale when they are previewing a Skinned Mesh Renderer with no root bone.

### Changed

Expand Down
2 changes: 1 addition & 1 deletion Editor/PreviewSystem/Rendering/ProxyObjectController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ internal bool OnPreFrame()
target.localBounds = original.localBounds;
if (target is SkinnedMeshRenderer targetSMR && original is SkinnedMeshRenderer originalSMR)
{
targetSMR.rootBone = originalSMR.rootBone;
targetSMR.rootBone = originalSMR.rootBone != null ? originalSMR.rootBone : originalSMR.transform;
targetSMR.quality = originalSMR.quality;

if (targetSMR.sharedMesh != null)
Expand Down

0 comments on commit 9497ebf

Please sign in to comment.