Commit Graph

378 Commits

Author SHA1 Message Date
Garux 648a836c5c fix assimp ASE loader crash when *MATERIAL_COUNT or *NUMSUBMTLS is not specified or is 0
code was doing vector[0u - 1] dereference in this case
2024-05-01 00:05:57 +05:00
Garux a75fb6abdd fix nonmonitored builds broken in 9a13f9ed55
closes #166
2024-02-08 13:02:16 +06:00
Garux 8683d43b7a fix on import or paste: target/name "qwerty01" -> "qwerty1" 2024-02-02 16:00:32 +06:00
Garux 1f2e1616a8 got CopiedString move constructor to actually work
conditions fulfilled:
string pointer is always functional, hence no flow conditions needed
move is fully efficient
moving to different program dynamic module works (no dependency on static vars)
2024-02-02 00:34:11 +06:00
Garux df02774ff5 tweak StringOutputStream use
auto str = StringOutputStream()(bla) use form was not doing copy elision or move, but copy
2024-01-29 16:54:08 +06:00
Garux 9a13f9ed55 simplify build code 2024-01-24 17:09:04 +06:00
Garux 27dff0c888 fix mouse chasing in 2x2 & floating layouts
QTimer was getting new connections added w/o removing existing ones; fix the same in FreezePointer
zero check is seemingly not needed now; zeros spam was caused by this QTimer misuse
2024-01-09 04:12:08 +06:00
Garux 1c3300d4bb be safe while doing copy to EntityClass::flagnames 2023-09-18 21:30:15 +06:00
Garux 22f017283b change browse file/directory icon from SP_FileDialogStart to semantically correct SP_DialogOpenButton 2023-08-21 15:41:07 +06:00
Garux b608dc986c add missing file extension after file dialog
some implementations are more mindless, than the others
2023-08-18 20:14:45 +06:00
Garux 7396eef067 * fix QComboBox popup leaking shortcuts 2023-07-03 12:26:20 +06:00
Garux 8c92cb69ed fix quickhull build 2023-05-16 15:39:15 +06:00
Garux 9dff9434c6 update quickhull lib 2023-05-16 13:54:27 +06:00
Garux 544ade9bd0 on Enter in NonModalEntry, NonModalSpinner always do apply, since not every selected instance necessarily has shown property applied 2023-02-02 17:39:40 +06:00
Garux c08c2f9949 * ctrl/ctrl + shift modifiers in value spinners divide step by 10 & 100 respectively 2023-01-20 12:56:54 +06:00
Garux 2ed868d254 manage conflicting hotkeys in QComboBox, QLineEdit, QSpinBox 2022-12-20 23:41:16 +06:00
Garux 88a03b07be normalize rendered light color for display consistency (compiler normalizes it anyway)
lower 3d light sphere brightness to reduce occlusion
#63
2022-12-17 02:15:38 +06:00
Garux 15ca706037 support DPI scaling by viewports rendering and input in certain scenarios
e.g. in mac, kde, wayland or after QT_SCALE_FACTOR=1.25 ./install/radiant
2022-11-07 19:02:40 +03:00
Garux f7a33dd4d3 manage camera events queue
fixes impossibility of wasd + freelook in linux
fixes jagged focused orbiting
2022-11-07 18:32:34 +03:00
Garux 9d3d204018 Qt 2022-10-27 09:10:31 +03:00
Walter Doekes dd81a7f0d7
Do not move symlinks when saving a map, overwrite target instead
If the user is editing a symlink to a target instead of a real file,
chances are high they want the symlink to stay in place.

Precondition:

  some.map -> /path/to/elsewhere.map

After save (before):

  some.bak -> /path/to/elsewhere.map
  some.map (real file)

After save (after):

  some.map -> /path/to/elsewhere.map

Closes #107.
2022-08-27 16:03:40 +02:00
Garux f739e53eab * add Inter-Quake Model (IQM) support (via assimp) 2021-12-18 17:21:45 +03:00
Garux e1be2c5620 fix assimp build 2021-12-17 09:48:49 +03:00
Garux cbde9574fb update assimp 2021-12-17 09:47:12 +03:00
Garux bf3f194cff * cloneSelected, cloneSelectedMakeUnique: select cloned stuff (was preserving original selected)
important for cloneSelectedMakeUnique usability and when objects order in .map matters
2021-11-24 23:49:46 +03:00
Garux 1f7d0250b0 * fix: don't rename target/names without numeric suffix on paste to non clashing namespace 2021-11-24 18:00:37 +03:00
Garux e62483970f double precision clipper points 2021-11-23 16:33:16 +03:00
Garux 6c129e546f store winding points in double precision 2021-11-23 14:48:00 +03:00
Garux 86ba294cf4 replace enums use for compile time constants 2021-11-22 12:29:43 +03:00
Garux cf8e0e1501 handle more cases in seamless patch<>brush tex paste 2021-11-16 00:38:47 +03:00
Garux 6c2d7767cf fix includes 2021-11-12 19:12:16 +03:00
Garux d1610b49ff move Timer class to header, use it in q3map2 2021-11-04 17:25:04 +03:00
Garux 396fe81cd2 Q_MKDIR: use std::filesystem::create_directories 2021-11-02 22:14:08 +03:00
Garux c217ad981a remove Sys_DoubleTime() 2021-10-31 14:33:57 +03:00
Garux 522f6f907e rename cmdlib and imagelib to fix name clashes 2021-10-31 14:13:02 +03:00
Garux b0b997e493 manage stl includes 2021-10-31 12:38:53 +03:00
Garux da98e8fde3 various code cleanups 2021-10-30 16:04:31 +03:00
Garux 0c390241c8 fix formatting 2021-10-26 18:16:24 +03:00
Garux d812cbd4d4 replace ArrayRange by tcb::span (reproduction of std::span) 2021-10-24 08:32:10 +03:00
Garux bf6389fc26 use #pragma once 2021-10-22 02:19:50 +03:00
Garux 6a7550a6ba shorten special class members declarations 2021-10-14 23:31:07 +03:00
Garux 71c72527af refactor tokenizing 2021-10-06 23:37:12 +03:00
Garux 3960adf898 remove ExtractFilePath() ExtractFileBase() ExtractFileExtension() 2021-10-04 11:34:15 +03:00
Garux b6d60fb17c add and use path_extension_is() 2021-10-03 17:13:12 +03:00
Garux a0e79e8ecd refactor autopk3
unlimit list sizes
	* -pk3, -repack: support multiple bsp files input by command line
2021-10-02 19:13:28 +03:00
Garux 0e0a295330 * new: bsp export/import in json format; Usage: q3map2 -json <-unpack|-pack> [-v] <mapname> 2021-09-23 03:11:43 +03:00
Garux 02a3b9c026 use ostream_write( CopiedString ) 2021-09-18 15:30:11 +03:00
Garux b78513f9f8 refactor InitPaths()
get rid of MAX_OS_PATH
2021-09-17 19:50:36 +03:00
Garux 97ad9bf5c5 separate path manipulating functions
unlimit VFS_MAXDIRS
2021-09-15 08:07:05 +03:00
Garux bafb339c09 MergeMetaTriangles: epsilon compare st, improves merging imprecise sts, e.g. for nonplanar surfaces after q3map_tcgen or just brush face texture projection 2021-09-03 06:23:40 +03:00