Skip to content

Commit

Permalink
?Crash fixes for Reality EXE
Browse files Browse the repository at this point in the history
Commented out 3 lines which cause crashes in Reality EXE when Daz Scene is updated.
These don't seem related to vs2022 compiler mismatch... maybe they can be fixed in the future.
  • Loading branch information
danielbui78 committed Dec 25, 2021
1 parent 2615c7e commit 3fbd9d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/gui/RealityPanel/realitypanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,9 @@ void RealityPanel::selectFirstItem() {
void RealityPanel::checkObjectSelection( const QItemSelection& selected,
const QItemSelection& deselected)
{
int selectedItems = tvMaterials->selectionModel()->selectedRows().count();
// DB 12/25/2021 -- had to comment line below due to crashes when updating scene
//int selectedItems = tvMaterials->selectionModel()->selectedRows().count();
int selectedItems = 0;
// If there are no items selected as the result of the user's action
// then we select the first item in the list, which is the object's
// record of the first object
Expand Down
6 changes: 4 additions & 2 deletions src/gui/RealityUI/ReCameraEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ void ReCameraEditor::loadCameraData() {
cameraList->addTopLevelItem(item);
}
frfList->setEnabled(RealitySceneData->getNumCameras() > 0);
cameraChanged(RealitySceneData->getSelectedCameraID());
// DB 12/25/2021 -- had to comment line below due to crashes when updating scene
//cameraChanged(RealitySceneData->getSelectedCameraID());
updatingUI = false;
}

Expand Down Expand Up @@ -255,7 +256,8 @@ void ReCameraEditor::updateCameraSelected() {
// Show the data
gbExposure->setChecked(currentCamera->isExposureEnabled());
showFocalDistance();
showCameraProperties();
// DB 12/25/2021 -- had to comment line below due to crashes when updating scene
//showCameraProperties();
emit cameraSelected(cameraID);
updatingUI = false;
}
Expand Down

0 comments on commit 3fbd9d9

Please sign in to comment.