Skip to content

Commit

Permalink
VOXEDIT: fixed invalid state in scene renderer after aligning the models
Browse files Browse the repository at this point in the history
this is changing the transforms and the region mins - thus the renderer doesn't know anything
anymore about the volumes on the old positions.
  • Loading branch information
mgerhardy committed Jun 16, 2024
1 parent 3ddf575 commit 4c66594
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/voxedit/modules/voxedit-util/SceneManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1676,6 +1676,7 @@ void SceneManager::construct() {

command::Command::registerCommand("align", [this] (const command::CmdArgs& args) {
_sceneGraph.align();
_sceneRenderer->clear();
for (const auto &entry : _sceneGraph.nodes()) {
const scenegraph::SceneGraphNode &node = entry->second;
if (!node.isModelNode()) {
Expand Down

0 comments on commit 4c66594

Please sign in to comment.