Skip to content

Commit

Permalink
Disabled camera loading script
Browse files Browse the repository at this point in the history
Removed IMU GUI controls
  • Loading branch information
M-Gjerde committed Nov 14, 2024
1 parent ce32a03 commit db5e406
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions include/Viewer/ImGui/MainLayerExt/Preview3DExt.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class Preview3DExt : public VkRender::Layer {
ImGui::PushStyleColor(ImGuiCol_HeaderHovered, VkRender::Colors::CRLRedHover);
ImGui::PushStyleVar(ImGuiStyleVar_IndentSpacing, 10.0f);

createIMUHeader(handles, dev);
ImGui::Dummy(ImVec2());
//createIMUHeader(handles, dev);
//ImGui::Dummy(ImVec2());
createPointCloudHeader(handles, dev);


Expand Down Expand Up @@ -186,6 +186,7 @@ class Preview3DExt : public VkRender::Layer {
ImGui::BeginDisabled();
}


// IMU
ImGui::Dummy(ImVec2(0.0f, 15.0));
ImGui::Dummy(ImVec2(pos.paddingX, 0.0));
Expand Down
4 changes: 3 additions & 1 deletion include/Viewer/Scripts/MultiSenseRenderer/MultiSenseCamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class MultiSenseCamera: public VkRender::Base, public VkRender::RegisteredInFact
~MultiSenseCamera()= default;

void onDestroy() override{
/*
cancelLoadModels = true;
// Wait for async models to finish loading before destorying script.
// So we dont rush cleaning up vulkan resources for old window before this script finished loading
Expand All @@ -63,6 +64,7 @@ class MultiSenseCamera: public VkRender::Base, public VkRender::RegisteredInFact
S30.reset();
KS21.reset();
delete deviceCopy;
*/
}

/** @brief Static method to create class, returns a unique ptr of Terrain **/
Expand All @@ -85,7 +87,7 @@ class MultiSenseCamera: public VkRender::Base, public VkRender::RegisteredInFact

/** @brief public string to determine if this script should be attaced to an object,
* create a new object or do nothing. Types: Render | None | Name of object in object folder **/
VkRender::ScriptTypeFlags type = VkRender::CRL_SCRIPT_TYPE_DEFAULT;
VkRender::ScriptTypeFlags type = VkRender::CRL_SCRIPT_TYPE_DISABLED;
VkRender::CRL_SCRIPT_DRAW_METHOD drawMethod = VkRender::CRL_SCRIPT_DONT_DRAW;
std::unique_ptr<GLTFModel::Model> S27;
std::unique_ptr<GLTFModel::Model> S30;
Expand Down

0 comments on commit db5e406

Please sign in to comment.