diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-03-14 09:02:35 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-03-14 09:02:35 +0000 |
commit | c192f781677c174580925a58a119995db2387186 (patch) | |
tree | a227dca50d861fb41508154466a5795f71f621db /graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_mainwindow.cpp | |
parent | multimedia/ustreamer: Update 3.18 -> 3.19 (diff) |
- Switch appleseed.studio build to Python 3.x and enable by default
- Register missing dependency on the `graphics/opencolorio' port
Diffstat (limited to 'graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_mainwindow.cpp')
-rw-r--r-- | graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_mainwindow.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_mainwindow.cpp b/graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_mainwindow.cpp new file mode 100644 index 000000000000..4c6b990c020a --- /dev/null +++ b/graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_mainwindow.cpp @@ -0,0 +1,29 @@ +--- src/appleseed.studio/mainwindow/mainwindow.cpp.orig 2019-08-31 15:49:01 UTC ++++ src/appleseed.studio/mainwindow/mainwindow.cpp +@@ -27,6 +27,9 @@ + // THE SOFTWARE. + // + ++// XXX: must be included before Qt headers because of `slot' redefine ++#include "mainwindow/pythonconsole/pythonconsolewidget.h" ++ + // Interface header. + #include "mainwindow.h" + +@@ -39,7 +42,6 @@ + #include "mainwindow/minimizebutton.h" + #include "mainwindow/project/attributeeditor.h" + #include "mainwindow/project/projectexplorer.h" +-#include "mainwindow/pythonconsole/pythonconsolewidget.h" + #include "mainwindow/rendering/lightpathstab.h" + #include "mainwindow/rendering/materialdrophandler.h" + #include "mainwindow/rendering/renderwidget.h" +@@ -684,7 +686,7 @@ void MainWindow::build_log_panel() + + void MainWindow::build_python_console_panel() + { +- char* python_home = Py_GetPythonHome(); ++ char* python_home = Py_EncodeLocale(Py_GetPythonHome(), nullptr); + if (python_home == nullptr) + RENDERER_LOG_INFO("Python home not set."); + else RENDERER_LOG_INFO("Python home set to %s.", python_home); |