Skip to content

Commit

Permalink
fix compilation (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangzhongshi committed Jun 21, 2021
1 parent c9c7869 commit 1b85984
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ download_project(
SOURCE_DIR ${CMAKE_SOURCE_DIR}/external/libigl
DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/external/.cache/libigl
QUIET
GIT_REPOSITORY https://github.com/jiangzhongshi/libigl.git
GIT_REPOSITORY https://github.com/libigl/libigl.git
GIT_TAG 682e4b9685d2737215f6629ecafcb318d714d556
)
set(LIBIGL_INCLUDE_DIR )
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/external/libigl/cmake")
Expand Down
6 changes: 3 additions & 3 deletions src/UI/TextureGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ bool TextureGUI::post_draw() {
bool TextureGUI::pre_draw() {
if (re_draw_) {
if (!viewer_cores_init) {
viewer_core_3d_ = v_.core;
viewer_core_2d_ = v_.core;
viewer_core_3d_ = v_.core();
viewer_core_2d_ = v_.core();
viewer_cores_init = true;

// viewer_core_3d_.show_texture = true;
Expand All @@ -207,7 +207,7 @@ bool TextureGUI::pre_draw() {
viewer_core_2d_.lighting_factor = 0;
viewer_core_2d_.align_camera_center(d_.w_uv, d_.surface_F);

v_.core = uv_space ? viewer_core_2d_ : viewer_core_3d_;
v_.core() = uv_space ? viewer_core_2d_ : viewer_core_3d_;
}

v_.data().clear();
Expand Down
8 changes: 4 additions & 4 deletions src/UI/TextureGUI_extended_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ bool TextureGUI::extended_menu() {
re_draw_ = true;
if (viewer_cores_init) {
if (!uv_space) {
viewer_core_2d_ = v_.core;
v_.core = viewer_core_3d_;
viewer_core_2d_ = v_.core();
v_.core() = viewer_core_3d_;
} else {
viewer_core_3d_ = v_.core;
v_.core = viewer_core_2d_;
viewer_core_3d_ = v_.core();
v_.core() = viewer_core_2d_;
}
}
if (continue_computing_) {
Expand Down

0 comments on commit 1b85984

Please sign in to comment.