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 issues describled in #1324 (Color offset problem and wrong variable used) #1325

Merged
merged 1 commit into from
Sep 8, 2015

Conversation

the-glu
Copy link
Contributor

@the-glu the-glu commented Sep 8, 2015

As described in #1324 that fix :

  • Wrong offset used for colors, that produce wrong colors in visualiser
  • Wrong variable used

@taketwo
Copy link
Member

taketwo commented Sep 8, 2015

Could you actually put fields[rgba_index].offset into a variable so that it's not evaluated on every iteration? Just in case a compiler is not smart enough to optimize this.

Please don't make a second commit in this PR, just fixup the existing one. Thanks!

@the-glu
Copy link
Contributor Author

the-glu commented Sep 8, 2015

Fixed, in a single commit :)

Just wondering, why don't add a second commit ? I had to push-force the new commit and that doesn't feel right :P

@taketwo
Copy link
Member

taketwo commented Sep 8, 2015

I think you forgot .offset :)

@the-glu
Copy link
Contributor Author

the-glu commented Sep 8, 2015

Yes sorry, fixed ^^'

@taketwo
Copy link
Member

taketwo commented Sep 8, 2015

Push force (and history rewriting) is fine as long as we don't do it to the master branch (or any other "public" branch for that matter).

It's nicer to have a single commit for related changes. The history looks cleaner, git blame becomes more useful. Less objects in the repository and therefore less space used and faster clone.

Of course, when a bug is already in master, we have no way other than to put a new fix commit on top. But if a new bug and a fix for it are still in a feature branch, then why not squashing them before final merge.

taketwo added a commit that referenced this pull request Sep 8, 2015
Fix issues describled in #1324 (Color offset problem and wrong variable used)
@taketwo taketwo merged commit 15ce7a9 into PointCloudLibrary:master Sep 8, 2015
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

Successfully merging this pull request may close these issues.

2 participants