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

Fix Sprite3d using AtlasTexture... Again. #18691

Merged
merged 1 commit into from
May 27, 2018

Conversation

sturnclaw
Copy link
Contributor

As requested in b484d5c, now it doesn't query the VisualServer any more.

@reduz, please let me know if I'm doing something wrong here.

@akien-mga akien-mga requested a review from reduz May 8, 2018 09:02
@akien-mga akien-mga added this to the 3.1 milestone May 8, 2018

// Properly setup UVs for impostor textures (AtlasTexture).
Ref<AtlasTexture> atlas_tex = texture;
if (atlas_tex != nullptr) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use nullptr:

scene/3d/sprite_3d.cpp: In member function 'virtual void Sprite3D::_draw()':
scene/3d/sprite_3d.cpp:374:19: error: 'nullptr' was not declared in this scope
  if (atlas_tex != nullptr) {
                   ^
scene/3d/sprite_3d.cpp: In member function 'virtual void AnimatedSprite3D::_draw()':
scene/3d/sprite_3d.cpp:674:19: error: 'nullptr' was not declared in this scope
  if (atlas_tex != nullptr) {
                   ^

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also edit the commit log to something more meaningful? The current log only makes sense if you follow the whole history back to @reduz's comment on GitHub, but doesn't say anything about what this commit actually does (fixing AtlasTexture usage in Sprite3D).

@reduz reduz merged commit c80ac06 into godotengine:master May 27, 2018
@reduz
Copy link
Member

reduz commented May 27, 2018

it's fine now, thanks! :)

@akien-mga
Copy link
Member

Cherry-picked for 3.0.7.

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

Successfully merging this pull request may close these issues.

3 participants