Changesets: DarkRadiant
|
master 39de2db0 21.12.2020 02:56 Details Diff |
Merge branch 'pybind11_upgrade' | ||
| mod - include/imodule.h | Diff File | ||
| mod - include/iscriptinterface.h | Diff File | ||
| mod - libs/pybind/pybind11/attr.h | Diff File | ||
| add - libs/pybind/pybind11/buffer_info.h | Diff File | ||
| mod - libs/pybind/pybind11/cast.h | Diff File | ||
| mod - libs/pybind/pybind11/chrono.h | Diff File | ||
| rm - libs/pybind/pybind11/class_support.h | Diff | ||
| mod - libs/pybind/pybind11/common.h | Diff File | ||
| mod - libs/pybind/pybind11/complex.h | Diff File | ||
| rm - libs/pybind/pybind11/descr.h | Diff | ||
| add - libs/pybind/pybind11/detail/class.h | Diff File | ||
| add - libs/pybind/pybind11/detail/common.h | Diff File | ||
| add - libs/pybind/pybind11/detail/descr.h | Diff File | ||
| add - libs/pybind/pybind11/detail/init.h | Diff File | ||
| add - libs/pybind/pybind11/detail/internals.h | Diff File | ||
| mod - libs/pybind/pybind11/eigen.h | Diff File | ||
| add - libs/pybind/pybind11/embed.h | Diff File | ||
| mod - libs/pybind/pybind11/eval.h | Diff File | ||
| mod - libs/pybind/pybind11/functional.h | Diff File | ||
| add - libs/pybind/pybind11/iostream.h | Diff File | ||
| mod - libs/pybind/pybind11/numpy.h | Diff File | ||
| mod - libs/pybind/pybind11/operators.h | Diff File | ||
| mod - libs/pybind/pybind11/options.h | Diff File | ||
| mod - libs/pybind/pybind11/pybind11.h | Diff File | ||
| mod - libs/pybind/pybind11/pytypes.h | Diff File | ||
| mod - libs/pybind/pybind11/stl.h | Diff File | ||
| mod - libs/pybind/pybind11/stl_bind.h | Diff File | ||
| mod - plugins/script/CMakeLists.txt | Diff File | ||
| mod - plugins/script/PythonModule.cpp | Diff File | ||
| mod - plugins/script/PythonModule.h | Diff File | ||
| mod - plugins/script/ScriptingSystem.cpp | Diff File | ||
| mod - plugins/script/ScriptingSystem.h | Diff File | ||
|
master 5ae45caf 20.12.2020 20:36 Details Diff |
Add ZLIB as an explicit dependency in CMake build On many systems -lz is added automatically via ${PNG_LIBRARIES}, but this does not necessarily hold on all systems. We now explicitly link with ZLIB in the radiantcore module (which includes DeflatedInputStream and related classes). |
||
| mod - CMakeLists.txt | Diff File | ||
| mod - radiantcore/CMakeLists.txt | Diff File | ||
|
master bf5eaaa9 20.12.2020 20:05 Details Diff |
Avoid hard-coded 'lib' in relative RPATH On some systems CMake defaults to 'lib64' rather than 'lib' as the destination for library files, so the relative path '$ORIGIN/../lib/darkradiant' does not work. It seems that CMAKE_INSTALL_LIBDIR contains the bare directory name so we can use it instead of 'lib' when setting the RPATH. |
||
| mod - CMakeLists.txt | Diff File | ||
|
master 0f8c12a7 20.12.2020 19:52 Details Diff |
Fix unusable spin controls in Vector3PropertyEditor Default hard-coded minimum size of 75 pixels was too small for the current implementation of wxSpinCtrl on GTK (at least with my desktop theme) and rendered the controls unusable. We now set a minimum size based on the range of the numeric value, which might be a little too large but at least it's not a hard-coded guess. |
||
| mod - radiant/ui/einspector/Vector3PropertyEditor.cpp | Diff File | ||
|
master 3ddc9f21 20.12.2020 18:25 Details Diff |
Set TESTRESOURCEDIR preprocessor symbol needed by the drtest binary | ||
| mod - test/CMakeLists.txt | Diff File | ||
|
pybind11_upgrade 5e72bc8c 20.12.2020 17:54 Details Diff |
0005452 Set the RegisterModule symbol explicitly to visibility=default for gcc |
Affected Issues 0005452 |
|
| mod - include/imodule.h | Diff File | ||
|
pybind11_upgrade 94fd4595 20.12.2020 17:07 Details Diff |
0005452 Set -fvisibility=hidden compiler flag for the scripting module |
Affected Issues 0005452 |
|
| mod - plugins/script/CMakeLists.txt | Diff File | ||
|
pybind11_upgrade 11e5a7f8 20.12.2020 17:06 Details Diff |
0005452 Fix compilation in gcc |
Affected Issues 0005452 |
|
| mod - plugins/script/PythonModule.cpp | Diff File | ||
| mod - plugins/script/ScriptingSystem.cpp | Diff File | ||
|
pybind11_upgrade b7eb9a95 20.12.2020 15:49 Details Diff |
0005452: Privatise the py::module member |
Affected Issues 0005452 |
|
| mod - plugins/script/PythonModule.cpp | Diff File | ||
| mod - plugins/script/PythonModule.h | Diff File | ||
|
pybind11_upgrade c0bd5242 20.12.2020 15:42 Details Diff |
0005452: More shifting around, less static members and cross-references |
Affected Issues 0005452 |
|
| mod - plugins/script/PythonModule.cpp | Diff File | ||
| mod - plugins/script/PythonModule.h | Diff File | ||
| mod - plugins/script/ScriptingSystem.cpp | Diff File | ||
| mod - plugins/script/ScriptingSystem.h | Diff File | ||
|
pybind11_upgrade c36d8ff9 20.12.2020 15:11 Details Diff |
0005452: Since all platforms are using pybind11 from DR's git, we can skip all that version checks |
Affected Issues 0005452 |
|
| mod - plugins/script/PythonModule.cpp | Diff File | ||
|
pybind11_upgrade 65bd8b36 20.12.2020 14:55 Details Diff |
0005452: Privatise the python module name |
Affected Issues 0005452 |
|
| mod - plugins/script/PythonModule.cpp | Diff File | ||
| mod - plugins/script/PythonModule.h | Diff File | ||
|
pybind11_upgrade ee9607e5 20.12.2020 14:34 Details Diff |
0005452: Move the console writers to PythonModule |
Affected Issues 0005452 |
|
| mod - plugins/script/PythonModule.cpp | Diff File | ||
| mod - plugins/script/PythonModule.h | Diff File | ||
| mod - plugins/script/ScriptingSystem.cpp | Diff File | ||
| mod - plugins/script/ScriptingSystem.h | Diff File | ||
|
pybind11_upgrade c27e326c 20.12.2020 13:59 Details Diff |
0005452: Interpreter initialisation is now handled in PythonModule internally |
Affected Issues 0005452 |
|
| mod - plugins/script/PythonModule.cpp | Diff File | ||
| mod - plugins/script/PythonModule.h | Diff File | ||
| mod - plugins/script/ScriptingSystem.cpp | Diff File | ||
|
pybind11_upgrade 7323145a 20.12.2020 13:45 Details Diff |
0005452: PythonModule instance is owned by ScriptingSystem now. Due to the C-style Python API we still need a few statics around. |
Affected Issues 0005452 |
|
| mod - plugins/script/PythonModule.cpp | Diff File | ||
| mod - plugins/script/PythonModule.h | Diff File | ||
| mod - plugins/script/ScriptingSystem.cpp | Diff File | ||
| mod - plugins/script/ScriptingSystem.h | Diff File | ||
|
pybind11_upgrade 4a643a91 20.12.2020 13:24 Details Diff |
0005452: Start upgrading PythonModule class to an actual instance housing the module and the globals. |
Affected Issues 0005452 |
|
| mod - include/iscriptinterface.h | Diff File | ||
| mod - plugins/script/PythonModule.cpp | Diff File | ||
| mod - plugins/script/PythonModule.h | Diff File | ||
| mod - plugins/script/ScriptingSystem.cpp | Diff File | ||
| mod - plugins/script/ScriptingSystem.h | Diff File | ||
|
pybind11_upgrade b84b373b 20.12.2020 11:24 Details Diff |
0005452: Upgrade pybind11 sources that are shipped with DR. |
Affected Issues 0005452 |
|
| mod - libs/pybind/pybind11/attr.h | Diff File | ||
| add - libs/pybind/pybind11/buffer_info.h | Diff File | ||
| mod - libs/pybind/pybind11/cast.h | Diff File | ||
| mod - libs/pybind/pybind11/chrono.h | Diff File | ||
| rm - libs/pybind/pybind11/class_support.h | Diff | ||
| mod - libs/pybind/pybind11/common.h | Diff File | ||
| mod - libs/pybind/pybind11/complex.h | Diff File | ||
| rm - libs/pybind/pybind11/descr.h | Diff | ||
| add - libs/pybind/pybind11/detail/class.h | Diff File | ||
| add - libs/pybind/pybind11/detail/common.h | Diff File | ||
| add - libs/pybind/pybind11/detail/descr.h | Diff File | ||
| add - libs/pybind/pybind11/detail/init.h | Diff File | ||
| add - libs/pybind/pybind11/detail/internals.h | Diff File | ||
| mod - libs/pybind/pybind11/eigen.h | Diff File | ||
| add - libs/pybind/pybind11/embed.h | Diff File | ||
| mod - libs/pybind/pybind11/eval.h | Diff File | ||
| mod - libs/pybind/pybind11/functional.h | Diff File | ||
| add - libs/pybind/pybind11/iostream.h | Diff File | ||
| mod - libs/pybind/pybind11/numpy.h | Diff File | ||
| mod - libs/pybind/pybind11/operators.h | Diff File | ||
| mod - libs/pybind/pybind11/options.h | Diff File | ||
| mod - libs/pybind/pybind11/pybind11.h | Diff File | ||
| mod - libs/pybind/pybind11/pytypes.h | Diff File | ||
| mod - libs/pybind/pybind11/stl.h | Diff File | ||
| mod - libs/pybind/pybind11/stl_bind.h | Diff File | ||
|
master d029960a 20.12.2020 05:24 Details Diff |
Add pthread linker flags when compiling the test binary | ||
| mod - test/CMakeLists.txt | Diff File | ||
|
master 3a720199 20.12.2020 05:22 Details Diff |
Fix compilation in gcc | ||
| mod - radiant/ui/FileOverwriteConfirmationHandler.h | Diff File | ||
|
master 36180a45 20.12.2020 04:34 Details Diff |
0005451: Add (failing) unit tests asserting that create, rename and delete layer operations mark the map as modified |
Affected Issues 0005451 |
|
| mod - test/CMakeLists.txt | Diff File | ||
| add - test/LayerManipulation.cpp | Diff File | ||
| add - test/resources/tdm/maps/general_purpose.mapx | Diff File | ||
| mod - tools/msvc/Tests/Tests.vcxproj | Diff File | ||
| mod - tools/msvc/Tests/Tests.vcxproj.filters | Diff File | ||
|
master ce4df7b0 20.12.2020 04:03 Details Diff |
0005448: Tell PNG to convert greyscale images to RGBA, with or without alpha channel. This fixes the corresponding unit test. |
Affected Issues 0005448 |
|
| mod - radiantcore/imagefile/PNGLoader.cpp | Diff File | ||
|
master 906af044 20.12.2020 04:01 Details Diff |
0005448: Add (currently failing) test case loading an 8-Bit Greyscale PNG with alpha channel |
Affected Issues 0005448 |
|
| mod - test/ImageLoading.cpp | Diff File | ||
| mod - test/resources/tdm/materials/pngs.mtr | Diff File | ||
| add - test/resources/tdm/textures/pngs/transparent_greyscale.png | Diff File | ||
|
master ec5c1afe 19.12.2020 16:10 Details Diff |
0005448: Tell libpng to scale down 16-bit values to 8-bit, PNGLoader can load 16-Bit PNG files now without crashing |
Affected Issues 0005448 |
|
| mod - radiantcore/imagefile/PNGLoader.cpp | Diff File | ||
|
master 24f11b88 19.12.2020 11:53 Details Diff |
Remove internal border in floating GroupDialog GroupDialog in the Floating layout had a 12 pixel border between the window edge and the tabbed widget, which was just a waste of space. |
||
| mod - radiant/ui/mainframe/FloatingLayout.h | Diff File | ||
| mod - radiant/uimanager/GroupDialog.cpp | Diff File | ||
| mod - radiant/uimanager/GroupDialog.h | Diff File | ||
|
master 6e99daf8 19.12.2020 11:39 Details Diff |
Fix assertion on startup in Regular layout Assertion caused by a recursive wxYield call: first in LongRunningOperationHandler::onMessage and then in RegularLayout::restoreStateFromPath. The wxWidgets warn against use of wxYield presumably because it can cause unexpected problems like this, so for now I have just removed the wxYield call in RegularLayout without replacing it with anything. The startup behaviour looks OK on Linux but if there are problems caused by window size, perhaps the use of another function like ProcessPendingEvents() would be safer. |
||
| mod - radiant/ui/mainframe/RegularLayout.cpp | Diff File | ||