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

[Bug] Hologram models with bones are no longer scaling #207

Open
shadowscion opened this issue May 4, 2014 · 1 comment
Open

[Bug] Hologram models with bones are no longer scaling #207

shadowscion opened this issue May 4, 2014 · 1 comment

Comments

@shadowscion
Copy link
Contributor

Not sure when the bug appeared, but models that have more than one bone are not scaling with h:setScale(v) at all now.

The "elseif Bones > 1 and Info.BONES then" is reached, but the Bones table is never filled unless setBoneScale is used, so it has nothing to do when it gets there.

@shadowscion
Copy link
Contributor Author

Changing this:
elseif Bones > 1 and Info.BONES then

To this:
elseif Bones > 1 and #Info.BONES > 0 then 

sends it to the enableMatrix (which was fixed in a recent gmod update, so it actually works now) 
block if setBoneScale isn't being used, this fixes the problem.

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

1 participant