From 3fbd9d9be2f3643478ac6cf295593e4ffb40e34b Mon Sep 17 00:00:00 2001 From: danielbui78 Date: Sat, 25 Dec 2021 15:59:20 -0500 Subject: [PATCH] ?Crash fixes for Reality EXE 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. --- src/gui/RealityPanel/realitypanel.cpp | 4 +++- src/gui/RealityUI/ReCameraEditor.cpp | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gui/RealityPanel/realitypanel.cpp b/src/gui/RealityPanel/realitypanel.cpp index 36d06f6..130b710 100644 --- a/src/gui/RealityPanel/realitypanel.cpp +++ b/src/gui/RealityPanel/realitypanel.cpp @@ -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 diff --git a/src/gui/RealityUI/ReCameraEditor.cpp b/src/gui/RealityUI/ReCameraEditor.cpp index 08241f1..f3d5728 100644 --- a/src/gui/RealityUI/ReCameraEditor.cpp +++ b/src/gui/RealityUI/ReCameraEditor.cpp @@ -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; } @@ -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; }