e4eae18f5f
use safe_malloc_info instead of unreachable code
Garux
2020-01-22 01:36:45 +03:00
de8171f1ea
use snprintf instead of strcpy, strcat
Garux
2020-01-22 00:03:16 +03:00
1c73baa8b9
don't check safe_malloc() result for NULL
Garux
2020-01-21 23:45:57 +03:00
3f8d708bc4
repackBSPMain(): do Error on bspList overflow
Garux
2020-01-20 19:46:19 +03:00
d58454d718
repackBSPMain(): don't check for NULL before free() reset counts (isn't required at the moment, just for potential safety)
Garux
2020-01-20 19:33:02 +03:00
dfae69d446
don't check for NULL, while doing free()
Garux
2020-01-20 19:14:52 +03:00
67820df935
simplify phrasing in vsf.c
Garux
2020-01-20 17:49:44 +03:00
bc8cc6e213
fix compilation in Linux (Q_stricmp was function before and was implicitly linked w/o direct inclusion) remove platform dependent branching in q3data
Garux
2020-01-20 16:33:33 +03:00
7492d3d8c5
use memcpy in CopyWindingAccuIncreaseSizeAndFreeOld rephrase ChopWindingInPlaceAccu::fineEpsilon
Garux
2020-01-13 12:43:18 +03:00
4d9a6cc2a9
const pointer in copy functions
Garux
2020-01-13 04:31:05 +03:00
99bae99b36
add safe_calloc(), safe_calloc_info() functions, use them (optimization, code shortening)
Garux
2020-01-12 18:55:03 +03:00
23a166a4dd
Change winding_t, winding_accu_t and brush_t to use flexible array members rather than fixed-sized arrays.
Thomas Köppe
2018-01-21 02:03:31 +00:00
1e2ccf5f06
Use standard "offsetof" facility rather than manual code involving null pointer dereferences.
Thomas Köppe
2018-01-21 01:54:24 +00:00
07c14c71a1
[unzip.c{,pp}] Change zc{alloc,free} to internal linkage
Thomas Köppe
2016-08-03 15:50:54 +01:00
78bc1dcec6
[q3map2] Unwind script stack in case of script loading error.
Thomas Köppe
2018-01-08 15:18:29 +00:00
d320ac3a4b
optimize copystring(), use it
Garux
2020-01-10 20:43:15 +03:00
d9bad45a3d
emit error on shader name string overflow in ShaderInfoForShader instead of silent truncation 202a05461f
Garux
2020-01-09 20:30:21 +03:00
b5c831908d
brushexport plugin: popup on export with nothing selected
Garux
2020-01-05 06:00:54 +03:00
f990b5ed44
* brushexport plugin: make comparison with 'Ignored materials' case insensitive
Garux
2020-01-05 03:51:20 +03:00
58c40278a8
* brushexport plugin: for 'Ignored materials' use input after last slash, as comparison is only using this part
Garux
2020-01-05 02:08:52 +03:00
31014dcf4a
* brushexport plugin: add 'Ignored materials' on Enter, delete on Delete
Garux
2020-01-05 01:44:01 +03:00
f893b9a789
* brushexport plugin: add Save button to reexport to recently specified file directly
Garux
2020-01-04 20:05:01 +03:00
26d33ce5c8
brushexport plugin: make t_limitmatnames, t_objects options available with t_exportmaterials off
Garux
2019-12-20 17:37:10 +03:00
0f6e20a334
* brushexport plugin: "Weld vertices" option (welds inside group or object, thus result depends on collapse option) rephrase, shorten code disable debug prints about exclusions in release print error to console with nothing selected more picky conditions in ExportData::GetShaderNameFromShaderPath slash search
Garux
2019-12-20 17:37:10 +03:00
48444683ee
q3map2: add missing help for q3map2 stage arguments
Zack Middleton
2019-07-24 01:24:09 -05:00
c9a33917e3
q3map2: fix crash if command-line argument is missing
Zack Middleton
2019-07-24 01:11:58 -05:00
9c60ebea68
q3map2: fix not displaying default args for some q3map2 stages
Zack Middleton
2019-07-22 23:50:17 -05:00
19accfbbab
fix Convert_ReferenceLightmaps() from 42ab06e363
Garux
2019-12-20 17:37:10 +03:00
48f3a19d87
repackBSPMain(): use StrBuf struct for shader dump (safer, faster)
Garux
2019-12-20 17:37:10 +03:00
d0032126cd
repackBSPMain(): use pointer to array of chars semantics for bspList
Garux
2019-12-20 17:37:10 +03:00
3b4f22ee32
use pushStringCallback in vfsListShaderFiles()
Garux
2019-12-20 17:37:10 +03:00
02fce47d00
add -complevel to -pk3
Garux
2019-12-20 17:37:10 +03:00
68f8cabf95
split bsp conversion stuff from q3map2
Thomas Debesse
2015-07-20 13:07:37 +02:00
27b1549a2d
split minimap stuff from q3map2
Thomas Debesse
2015-07-20 12:57:09 +02:00
18d7d50444
[q3map2] unvanquished expects white minimap
Thomas Debesse
2017-04-23 03:24:27 +02:00
c401adfe3e
* -brightness only affects lightmap brightness, like q3map_lightmapBrightness, as there are -vertexscale and -gridscale for the rest is multipled with q3map_lightmapBrightness
Garux
2019-12-12 00:20:00 +03:00
3f2825b8ec
* -extlmhacksize N (external lightmaps hack size) -light switch similar to -lightmapsize N: Size of lightmaps to generate (must be a power of two) but instead of native external lightmaps enables hack to reference them in autogenerated shader (for vanilla Q3 etc)
Garux
2019-12-06 00:55:16 +03:00
42ab06e363
* -lightmapsastexcoord conversion: support 'external lightmaps, referenced by shader' hack
Garux
2019-12-05 22:56:42 +03:00
b96aed7190
* support -shadersasbitmap in -lightmapsastexcoord conversion mode
Garux
2019-12-04 22:35:50 +03:00
661e8b00de
use EXTERNAL_LIGHTMAP macro, shorten code
Garux
2019-12-04 22:18:44 +03:00
74a5d6cf8d
* support -lightmapsastexcoord conversion to .ase
Garux
2019-12-04 21:56:02 +03:00
6a5d148284
q3map2 * -fillpink in light stage: fill unoccupied pixels with pink colour
Garux
2019-11-11 04:13:13 +03:00
d92c32d453
q3map2 * misc_model::_remap: also remap 'abrakadabraNAME' shaders by _remap = 'NAME;newname' exact match has priority over this
Garux
2019-11-11 01:14:10 +03:00
34e9b522b7
* shader editor: support files with crlf line feeds in linux preserve line feeds on saving indicate 'modified' state by save button and window name view shaders from packs too (read only) refactor
Garux
2019-11-09 15:13:59 +03:00
bad1a965c0
fix shader editor text length and offset in linux
Garux
2019-11-06 13:02:24 +03:00
b9d846ac32
build menu.customize: clear ... placeholder string on the "editing-started" signal
Garux
2019-11-03 23:51:22 +03:00
4ebfc1dcac
refactor template class LatchedValue use make m_sGameFile LatchedValue fix odd prompt to restart after game change via global preferences dialog + OK in local preferences sort games list alphabetically by .game file name
Garux
2019-09-07 20:55:55 +03:00
da7c72547b
remove MIN use
Garux
2019-08-23 14:40:45 +03:00
49d1c98d81
* disable overlay front buffer rendering hack in 3D camera and completely in 64bit builds * render 2D crosshair, as overlay, update it during manipulations * fix active 2D view outline rendering in 2x2 layout
Garux
2019-08-23 13:06:16 +03:00
f2f36df58f
q3map2 * _maxlight worldspawn key (works unless exposure is used) (for those, who know, what they do)
Garux
2019-07-25 19:55:16 +03:00
58b786d6e6
* fix face centroids of small faces at big coordinates in 64 bit (explicitly cast to double, which likely happens implicitly in 32 bit)
Garux
2019-07-05 19:27:00 +03:00
018380da0c
try extra hardcoded font names to make gtkglext bitmap font to work on linux #24
Garux
2019-07-05 19:22:46 +03:00
2426697f65
UV Tool: add patch support patch controls move modifiers: shift = only move along the axis with the biggest move, ctrl = snap hard to grid and povit lines fix a couple of Patch::Calculate_AvgNormal() and Patch::NaturalTexture() problems
Garux
2019-06-10 15:17:57 +03:00
684187c4ec
fix clipping whole brush by clipper after 3ce07bb310 fix rotate manipulator selection after aa99f4d254
Garux
2019-06-01 19:25:01 +03:00
aa99f4d254
* UV Tool (edit texture alignment of selected face) modifiers: pivot control point and lines: ctrl = snap hard to face vertices and grid grid density controls: shift = change density of both axes synchronously, ctrl = power of two grid scale lines: shift = scale axes synchronously, ctrl = snap hard to vertices alt + m1 on grid = skew texture (is possible alright in BP and Valve220 map formats, not in AP); ctrl = snap hard to edges texture move: shift = only move along the axis with the biggest move, ctrl = snap grid lines hard to vertices and pivot rotate: shift = rotate with step of 15 degrees, ctrl = snap hard to edges
Garux
2019-05-19 10:30:44 +03:00
3ce07bb310
change points order in plane3_for_points( const BasicVector3<Element>& p0, const BasicVector3<Element>& p1, const BasicVector3<Element>& p2 ) to be consistent over the related code to omit points swap there and there
Garux
2019-05-01 12:38:58 +03:00
71c63fbdc6
* fix alt + m1 indirect faces picking, when object is partially or fully out of camera view refactor math functions
Garux
2019-04-28 20:54:29 +03:00
b9a43074f0
fix wrong alpha after negative float to byte conversion in RenderableCamWorkzone
Garux
2019-04-24 01:08:51 +03:00
57865138b9
g_free after g_object_get
Garux
2019-04-23 18:22:24 +03:00
bbaa57176b
* override fully transparent alpha of tga images by fully opaque
Garux
2019-04-23 18:16:00 +03:00
8d1015c7c8
make RenderTextLabel OpenGLRenderable render CamDrawSize in uniform way
Garux
2019-04-23 14:02:13 +03:00
58eb6e61d2
simplify RENDER_TEXT logic class RenderTextLabel for text rendering * consider texture alpha channel during rendering of shaders with qer_trans
Garux
2019-04-23 11:31:52 +03:00