AcademySoftwareFoundation/openvdb

Redundant call to render function in vdb viewer

Open

#175 opened on Oct 2, 2017

View on GitHub
 (3 comments) (0 reactions) (0 assignees)C++ (762 forks)auto 404
good first issue

Repository metrics

Stars
 (3,343 stars)
PR merge metrics
 (PR metrics pending)

Description

https://github.com/dreamworksanimation/openvdb/blob/ffb02d5527379a08c07449e39d3324ac2e5eff28/openvdb/viewer/Viewer.cc#L1159

The mUpdates variable is reset at every key callback. However, I believe mUpdates should be reset only when key is pressed. Presently this variable is reset when the key is pressed as well as when it released. Due to this, the render function is called four times instead of two.

Contributor guide