psi29a
3944648f0b
Merge branch 'opencs_remove_inclde' into 'master'
...
Remove some superfluous includes in the opencs
See merge request OpenMW/openmw!829
4 years ago
jvoisin
06ae26037f
Remove some superfluous includes in the opencs
4 years ago
Thunderforge
339d347aea
Fixing performance-faster-string-find issues
...
This addresses the Clang Tidy check [performance-faster-string-find](https://clang.llvm.org/extra/clang-tidy/checks/performance-faster-string-find.html ).
4 years ago
Andrei Kortunov
2d869ca9ff
Fix node masks signed/unsigned mismatch
4 years ago
Andrei Kortunov
9647b670e4
Do not declare unused variables
4 years ago
Andrei Kortunov
0cadc97fb3
Fix double -> float conversions
4 years ago
uramer
ee2f0e7eb3
Fix inconsistent argument name
4 years ago
uramer
eca0d8b7ea
Fix typo in DropMode enum
4 years ago
uramer
edc6d5c3e7
Fix a typo in separate drop binds
4 years ago
uramer
36cd818155
Fix separate drop, refactor for code reuse
4 years ago
Bret Curtis
a735bbe9a5
Merge pull request #3040 from akortunov/pvs
...
Fix some issues, found by PVS Studio
4 years ago
Nelsson Huotari
313e895912
[OpenMW-CS] Cube and sphere instance selection
4 years ago
Andrei Kortunov
ad101de733
Merge declaration and initialization
4 years ago
Andrei Kortunov
7fc4c9f3f6
Avoid dead code
4 years ago
Coleman Smith
3b9db41346
removing unneeded variable
4 years ago
Coleman Smith
842ea9d6ed
simplifying a bit
...
- attaching gradient camera directly to the main camera
- using Vec4ub
4 years ago
Andrei Kortunov
8084a336b5
Replace zeroes and nulls by nullptrs
4 years ago
Alexei Dobrohotov
53f91a3aa5
Merge pull request #3018 from akortunov/emplace
...
Use emplace_back instead of push_back
4 years ago
Bret Curtis
5a824d0333
components/compiler cleanup; also cleaned up related cascading warnings; fixed up final/override issues
4 years ago
Andrei Kortunov
065ed5138e
Use emplace_back instead of push_back
4 years ago
Andrei Kortunov
8ca3c3b123
Mark overrided methods by override keyword
4 years ago
elsid
40ad87bc4d
Replace OpenThreads by std types
5 years ago
Andrei Kortunov
c8d5d421d9
Do not use deprecated mouse wheel movement angle
5 years ago
Andrei Kortunov
2b4274bca8
Use modern Qt flag declarations
5 years ago
Bret Curtis
61a5c6125d
#5480 : Drop Qt4 support and require Qt 5.12 or later.
5 years ago
Bret Curtis
68549828b4
create static functions to set/get hidden node mask; compromise on magic numbers to make things easier to understand
5 years ago
Bret Curtis
8a8107e837
as it says; revert vismask and uncomplicate openmw
5 years ago
Nelsson Huotari
42c7ec8f1c
Minor fix to calculation of mLandSizeFactor (-1)
5 years ago
Andrei Kortunov
023c51ad0e
Fix int/float conversions in the CSVRender::BrushDraw
5 years ago
Bret Curtis
7fda65e7bb
Merge pull request #2692 from unelsson/opencsbrushdraw
...
Editor: Implement brush outlines
5 years ago
Andrei Kortunov
a68d9aed4c
Fix issues, found by CoverityScan
5 years ago
Nelsson Huotari
66fba7cc51
Remove unneeded constructors, only initialize in cpp, minor fixes
5 years ago
Nelsson Huotari
ec2ff2a9b0
Fix if oneliners
5 years ago
Nelsson Huotari
18cdd3bd7c
rebase-related fixes
5 years ago
Nelsson Huotari
da0add904b
Fix and simplify brush outlines and coordinate calculations
5 years ago
Nelsson Huotari
8f625474fd
Hotfix terraintexturemode circle brush radius calculations
5 years ago
Nelsson Huotari
e14c390a9b
Fix crash
5 years ago
Nelsson Huotari
731e5b57f5
Tool outline for terraintexturemode and square shape. Various fixes.
5 years ago
Nelsson Huotari
24c8b32d4c
Implement brush outline for terrainshapemode
5 years ago
Nelsson Huotari
793ea8566f
Fix typo
5 years ago
Nelsson Huotari
17cb3414d8
clean-up, improve formatting
5 years ago
Nelsson Huotari
75f6577f61
Remove unneeded include
5 years ago
Nelsson Huotari
41aa90bfa7
Add helper class for safer mask handling
5 years ago
Nelsson Huotari
af434cffba
fix numeric limits min() to lowest(), fix correct drop height
5 years ago
Nelsson Huotari
035d5205d9
Use collision boxes to calculate dropping height, variable naming
5 years ago
Nelsson Huotari
54738e1e32
Handle mask disabling better
5 years ago
Nelsson Huotari
711dc59f09
Implement four different functions for dropping
5 years ago
Nelsson Huotari
f063eeb36e
Drop objects with a keyboard shortcut
5 years ago
Nelsson Huotari
198a75b8e6
Delete selected instances with a hotkey
5 years ago
Andrei Kortunov
84979fa8b7
Move VisMask to components
5 years ago
AnyOldName3
73722eedf3
Add default font releaseGLObjects workaround for OSG <3.65
...
This resolves https://gitlab.com/OpenMW/openmw/issues/4704
I've not compiled this or anything and I'm going off my memory from
around ten or eleven months ago, so if this fails CI or causes more
problems, that's why. The most likely issue is that we'll need to make
the context current before releasing the program.
5 years ago
Bret Curtis
7dfbeff049
Merge pull request #2677 from unelsson/fixcsrotation
...
Editor: Convert radians to degrees when rotating objects
5 years ago
Nelsson Huotari
032513ae18
Convert radians to degrees
5 years ago
capostrophic
89055f1c6c
Generate WNAM upon saving terrain
5 years ago
bzzt
f09125fc93
perf regression fix
5 years ago
Bret Curtis
454b9f1964
Merge pull request #2597 from akortunov/coverity
...
CoverityScan fixes, part 2
5 years ago
Alexei Dobrohotov
b5992b380e
Merge pull request #2586 from unelsson/allowselectionalledges
...
Allow selecting cell edges everywhere
5 years ago
Andrei Kortunov
b210e99abc
Avoid divizion by zero
5 years ago
Nelsson Huotari
120583f443
optimize isInCellSelection calls
5 years ago
Andrei Kortunov
238dcdbbd4
Fix copy-paste error
5 years ago
Andrei Kortunov
079c77ff22
Avoid zero division
5 years ago
Nelsson Huotari
45d43045eb
Remove unused std::string
5 years ago
Nelsson Huotari
aeb0ccff90
Allow selecting cell edges everywhere
5 years ago
Nelsson Huotari
8f6dc78217
Get vertex height from data, if not available in visible cells.
5 years ago
Nelsson Huotari
9677203215
Don't allow vertex selection outside visible cells
5 years ago
Nelsson Huotari
d186bcb46f
Update selection during transient edit, clear to a single function.
5 years ago
Andrei Kortunov
d278e5d4af
Fix warnings about variable re-declaration
5 years ago
Nelsson Huotari
fdc73b87ba
Remove includes that aren't needed any more
5 years ago
Nelsson Huotari
9e5db10288
const ref float -> float
5 years ago
Nelsson Huotari
ac5b356e8d
Always initialize landShapeNew
5 years ago
Nelsson Huotari
6f9f59dd58
declare cellId and cellCoords in smallest possible scope
5 years ago
Nelsson Huotari
fdcc7fa1d7
0 to nullptr
5 years ago
Nelsson Huotari
a13edbdb42
Bump shape calculation to function
5 years ago
Nelsson Huotari
8d3e7f2815
fix normals at cell edges, better coding standards
5 years ago
Nelsson Huotari
0f6ddfe8e6
change include, cleanup
5 years ago
Nelsson Huotari
12349f4e48
cleanup
5 years ago
Nelsson Huotari
c556885d71
remove unused Qt signal
5 years ago
Nelsson Huotari
deb122ffdb
Add optional post-processing (smooth/rough), add/fix tooltips.
5 years ago
Nelsson Huotari
2d34b63b0b
Fix logic of land loading when no cell, land or landdata. Fix also draw.
5 years ago
Nelsson Huotari
71eff60d22
Do in-class init. if possible, mLayoutSliderSize -> layoutSliderSize
5 years ago
Nelsson Huotari
a1348d94f9
add missing final specifiers
5 years ago
Nelsson Huotari
c2de645c8c
override, virtual -> final, remove unused variables, public to private.
5 years ago
Nelsson Huotari
8a9ca0b3ec
Generate new WNAM record based on new land heights, add comments
5 years ago
Nelsson Huotari
96be82a047
Remove terrain vertex selection and brush button when exiting editMode
5 years ago
Nelsson Huotari
8acfa2600f
Terrain shape editing related fixes
5 years ago
Nelsson Huotari
5b9debc554
use enum for mbrushshape initialization
5 years ago
Nelsson Huotari
bae8636ec0
Fix brusshape enum values
5 years ago
Nelsson Huotari
c031543420
use enum for brush shapes
5 years ago
Nelsson Huotari
388edfd8cc
change manual memory management to std::unique_ptr
5 years ago
Nelsson Huotari
da4abcd7c1
std::set to std::unique and erase.
5 years ago
Nelsson Huotari
6a44cae572
white iterator loop to C++11 range-based for loop.
5 years ago
Nelsson Huotari
bccf36fdbc
Convert normals calculations mostly to osg::Vec3f
5 years ago
Nelsson Huotari
45b0f034c3
Split complex if-logic into multiple reasonably named functions
5 years ago
Nelsson Huotari
0ce971c1bb
Revert back to less aggressive component-level changes.
5 years ago
Nelsson Huotari
69083369f8
use std::fill instead of for
5 years ago
Nelsson Huotari
dc7dc93320
Remove unused functions, improve formatting, handle terrain edit click
5 years ago
Nelsson Huotari
55b3fd4418
Use float calculations for circle brush, keep tool options in memory.
5 years ago
Nelsson Huotari
23e7c71a5a
Tighter corner checking, clean-up, landSize to ESM::Land::LAND_SIZE.
5 years ago
Nelsson Huotari
8f3c22ccc3
Remove TerrainShapeMode::fixEdges
5 years ago
Nelsson Huotari
1a3fc435b9
Fix alterHeight bugs, don't let broken land edit pass.
5 years ago
Nelsson Huotari
ff18595a86
Reduce code duplification, add bool value to limiting
5 years ago
Nelsson Huotari
60c0a25004
Fix smooth tool and flatten tool. Default tool strength to 8.
5 years ago
Nelsson Huotari
54e13954e8
Improve land steepness limiting code
5 years ago
Nelsson Huotari
4a2d8aaf97
Handle mBrushSize 1.
5 years ago
Nelsson Huotari
16138fc896
Transient land shape editing
5 years ago
Nelsson Huotari
78f2a5181d
Default brush size to 1
5 years ago
Nelsson Huotari
301c05662b
assignment to memb. init. list, publics to private, virtual -> final
5 years ago
Nelsson Huotari
4ccb951126
move check to outermost scope
5 years ago
Nelsson Huotari
0880923189
Consistency for variable and header argument names.
5 years ago
Nelsson Huotari
6dc3d8b44b
More readable code
5 years ago
Nelsson Huotari
780055899d
Don't add empty primitive sets to geometry.
5 years ago
Nelsson Huotari
3becacf6d1
Remove globals, const int& -> int, values to const ref.
5 years ago
Nelsson Huotari
1dcee833a1
Less verbose syntax
5 years ago
Nelsson Huotari
5a143fe99d
Remove extra include
5 years ago
Nelsson Huotari
39ab449431
Only allow selection of cells in view
5 years ago
Nelsson Huotari
dc8de6c6e6
Make less copies
5 years ago
Nelsson Huotari
001ca68cc7
Remove empty lines
5 years ago
Nelsson Huotari
46ee639892
pass by const ref and other fixes
5 years ago
Nelsson Huotari
20ab7df19f
Fixes, cleanup.
5 years ago
Nelsson Huotari
1a08944a8b
Remove unused code, clarifications, optimizations
5 years ago
Nelsson Huotari
d6722c7492
Terrain texture selection, support for vertex selection
5 years ago
Nat Meo
af1e5e01b4
Issue #5005 : Instance window via Scene window
6 years ago
Capostrophic
85e99182ce
Revise light source configuration (bug #4965 )
...
Set up attenuation less awkwardly
Use global attenuation settings for magic light source
Use constant attenuation settings
6 years ago
Andrei Kortunov
a302ec9c65
Make fallback map static to simplify constructors
6 years ago
elsid
ccb325c663
Add override to fix warnings
6 years ago
Nelsson Huotari
2b674cedaa
Implement view cell from r-type hint
6 years ago
Andrei Kortunov
9e4a339ad3
Daytime node switch support (feature #4836 )
6 years ago
Stomy
71be4cdd20
Ensure Unique Instance Refnum after clone, add, or move
6 years ago
mp3butcher
9de6c630f2
fix moc achieving to reach unparsable boost code
6 years ago
Andrei Kortunov
059a8fd32a
Refactor dynamic casts in the editor
6 years ago
Andrei Kortunov
5ac81cfbff
Throw exceptions with some info int the editor if dynamic_cast failed
6 years ago
Andrei Kortunov
4ee15ddcb9
Fix many Coverity Scan warnings
6 years ago
Andrei Kortunov
e06f0b797a
Replace all NULLs to nullptr
6 years ago
Capostrophic
03788edd63
Fix redundant drag call in instance dragging (bug #4593 )
6 years ago
Kyle Cooley
0096951f25
cleanup
6 years ago
Kyle Cooley
676fc48855
Re-add logic for empty model
6 years ago
Kyle Cooley
f43b70d77b
Centralize actor data, simplify logic
6 years ago
Kyle Cooley
031502b2ab
Reorganize ActorAdapter data, use weak cache for sharing
6 years ago
Kyle Cooley
2a9ebac572
Simplify update logic, update when race parts are changed.
6 years ago
Kyle Cooley
1276e0fa9b
Handle changes to race record when rendering actors
6 years ago
Kyle Cooley
6bece13a32
Use new Log class for error message
6 years ago
Kyle Cooley
97ac0a92dd
Move data handling out of rendering code, equip armor/clothes
6 years ago
Kyle Cooley
6b42f37918
Handle creatures too
6 years ago
Kyle Cooley
e2ac392a40
Move common stuff to scene util, fix errors with 1st person meshes
6 years ago
Kyle Cooley
8444ee9981
Start rendering npc's
6 years ago
Andrei Kortunov
ee4ca87352
Traverse child nodes of cell node in the editor (bug #4654 )
6 years ago
Andrei Kortunov
70ed8fd1a9
Use constants instead of widely used magic numbers (task #4645 )
6 years ago
Andrei Kortunov
c7a5548475
Use new logging system for editor
6 years ago
Andrei Kortunov
6ddf6eb885
Use editor markers for lights and creatures levelled lists
7 years ago
Andrei Kortunov
27a5da59ba
Fix MSVC warnings C4456
7 years ago
Andrei Kortunov
f4330cf057
Editor: limit FPS in 3D preview windows (feature #3641 )
7 years ago
Nelsson Huotari
825c331764
Remove texture filtering, better ltex importing, reindexing duplicates
7 years ago
Nelsson Huotari
8ae46519cf
Fix missed worldspacehits, add linebreak to tooltip
7 years ago
Nelsson Huotari
21e8d08e69
Handle invalid texture id's
7 years ago
Nelsson Huotari
17e01ca336
Setting "Scene Drops" rename "3D Scene Editing"
7 years ago
Nelsson Huotari
758ccac75a
Show texture id + filename
7 years ago
Nelsson Huotari
1c79d5311c
Brush history menu
7 years ago
Nelsson Huotari
62066f01bd
clean-up
7 years ago
Nelsson Huotari
d33c98c68d
Revert unintended changes
7 years ago
Nelsson Huotari
5656745445
Select dragged texture-assets, add brush settings widget-type, fixes.
7 years ago
Nelsson Huotari
baa707b5e3
User setting for selective cell editing or new land creation
7 years ago
Nelsson Huotari
24977fcc0f
improve hit calculation accuracy for texture editing
7 years ago
Nelsson Huotari
e8a9bff85c
Drop textures to landtextures from assets (try-method)
7 years ago
Nelsson Huotari
7139889566
Brush button window opens at modebutton, slider 1-50, doxygen comments
7 years ago
Nelsson Huotari
20d1d8ac89
Fixed brush calculations, implement undostack macro when clicked.
7 years ago
Nelsson Huotari
5f3c8b2b99
c_str -> fromStdString, remove TextureBrushButton class
7 years ago
Nelsson Huotari
cf7a0f715e
Command macro for complete drag-editing operations.
7 years ago
Nelsson Huotari
9f742d5b1f
Brush affects adjancent cells
7 years ago
Nelsson Huotari
1ca2710a2a
Formatting, fixes
7 years ago
Nelsson Huotari
1c113eca9c
15 to landTextureSize-1
7 years ago
Nelsson Huotari
3327d6f7c4
Drag terrain painting, code cleanup
7 years ago
Nelsson Huotari
a54a1b9940
Command system and undo
7 years ago
Nelsson Huotari
cc415526b0
fix texture index +1, better icons
7 years ago
Nelsson Huotari
316d05bdc4
{} to ()
7 years ago
Nelsson Huotari
4649d1258c
Direct data terrain editing
7 years ago
Nelsson Huotari
4ae75d1d20
Terrain texture brush frame
7 years ago
Nelsson Huotari
69aacdff17
Lamoot's new icon set
7 years ago
Miloslav Číž
1f5feeddb9
CS: Change camera parameter types to int
7 years ago
Miloslav Číž
f2777f7242
CS: Mover object-marker-alpha under Rendering
7 years ago
Miloslav Číž
79527b746a
Remove unused variable
7 years ago
Miloslav Číž
b246580c63
Fix orbit camera axis
7 years ago
Miloslav Číž
e309dfd234
CS: Rename variables (AppVeyor fix)
7 years ago
Miloslav Číž
199e41833f
Merge branch 'master' into cs-cam
7 years ago
Miloslav Číž
d85f8deaa3
CS: Add fixed roll setting, plus ortho fix
7 years ago
Miloslav Číž
1b77e3ed62
CS: Add ortho camera setting
7 years ago
Miloslav Číž
bfad5ebde4
CS: Fix camera orbit control with keys
7 years ago
Miloslav Číž
5e076ee015
CS: Fix camera orbit with arbitrary roll
7 years ago
Miloslav Číž
cfdc6c788e
CS: Make camera FOV change dynamically
7 years ago
Miloslav Číž
7d36dd68dc
CS: Make orbit camera not change roll
7 years ago
Miloslav Číž
360d786ff2
CS: Add rendering prefs and camera FOV
7 years ago
Kyle Cooley
eb23367175
Fix rendering depth/order issues
7 years ago
Kyle Cooley
c8f79ea838
Adjust rotation markers
7 years ago
Kyle Cooley
1cd539bad2
Fix render order for markers
7 years ago
Kyle Cooley
556117f6e6
Update marker transparency when changed.
7 years ago
Kyle Cooley
de214db8d4
Use configured transparency.
7 years ago
Kyle Cooley
197ea95646
Prevent arrows for move/scale markers from intersecting.
7 years ago
Kyle Cooley
492b99b008
Transparent object markers
7 years ago
Kyle Cooley
25d4a0370f
Changes to land data access in tables, also update Land once per frame in scene view.
7 years ago
Kyle Cooley
d030b595f8
Fix potential segfault, cleanup, get rid of warnings.
7 years ago
Kyle Cooley
2eacc2f093
Changes to land creation, add ability to specifically clear terrain cache
7 years ago