Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null pointer error on Create Optimized Copy #7

Closed
Odel opened this issue Aug 25, 2022 · 1 comment
Closed

Null pointer error on Create Optimized Copy #7

Odel opened this issue Aug 25, 2022 · 1 comment

Comments

@Odel
Copy link

Odel commented Aug 25, 2022

Getting the following when running the optimizer, it does spit out a copy but as far as I can tell no optimizations are being applied

NullReferenceException: Object reference not set to an instance of an object
d4rkAvatarOptimizerEditor.OptimizeMaterialSwapMaterials () (at Assets/d4rkAvatarOptimizer/src/d4rkAvatarOptimizerEditor.cs:551)
d4rkAvatarOptimizerEditor.Optimize (UnityEngine.GameObject toOptimize) (at Assets/d4rkAvatarOptimizer/src/d4rkAvatarOptimizerEditor.cs:2399)
d4rkAvatarOptimizerEditor.OnInspectorGUI () (at Assets/d4rkAvatarOptimizer/src/d4rkAvatarOptimizerEditor.cs:2798)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.b__0 () (at :0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Let me know any other information you need, as I'm unsure what is relevant

@d4rkc0d3r
Copy link
Owner

This was caused by an animation having a material swap referencing a path that doesn't exist on the model.
Get the fix here: https://github.com/d4rkc0d3r/d4rkAvatarOptimizer/archive/refs/heads/main.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants