summaryrefslogtreecommitdiff
path: root/modules/csg/csg_shape.cpp
AgeCommit message (Collapse)Author
2019-09-25Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde
Added some obvious errors explanations
2019-09-25Added some obvious errors explanationsqarmin
2019-07-10Notify changes in properties that can be edited by 3D gizmosHugo Locurcio
This makes the Inspector always display an up-to-date value after editing properties using 3D gizmos.
2019-07-06Added release function to PoolVector::Access.Ibrahn Sahir
For clarity, assign-to-release idiom for PoolVector::Read/Write replaced with a function call. Existing uses replaced (or removed if already handled by scope)
2019-07-05Improve the CSG shape gizmo drawingHugo Locurcio
The gizmo colors now depend on the operation. Subtraction will result in an inverted gizmo color, whereas intersection is now displayed as white. A solid translucent overlay is now drawn over a selected node to make it easier to distinguish.
2019-06-20Fix always true/false valuesqarmin
2019-05-17Resolve: #24682 CSGPolygon - weird end capJason
2019-04-11CSGMesh material and CSGShape inherits from GeometryInstanceLeonard Meagher
I left the material on CSGMesh because GeometryInstance's material override prevents the normal material behaviour of the csg meshes but the material_override is useful, and now you can control the shadow, lod and other properties you get from GeometryInstance
2019-03-25Apply proper offset to CSGMesh material and smooth groupLeonard
2019-02-10Fix CSGShape not updating on changing visibilityAndrii Doroshenko (Xrayez)
Hiding CSGShape should force the CSG operation to skip it which is intented behaviour according to how CSGBrush is created for each shape.
2019-01-27Make CSG Shape work with GIProbe, fixes #20465Juan Linietsky
2019-01-16Fix some errors found by static analysisRémi Verschelde
Fixes items 10, 16 and 19 from PVS-Studio blog post in #24014.
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-12-15Add support for collision layers and masks in CSG shapesmeditator
2018-12-08Reverse bitangent on everythings to ensure default normal map behavriour is ↵Bastiaan Olij
consistent
2018-12-03Fix csgshape collider without object idAron Castro
2018-11-20Merge pull request #23760 from BastiaanOlij/fix_tangent_directionRémi Verschelde
Fixing tangent and binormal logic
2018-11-19Fixing tangent and binormal logicBastiaan Olij
2018-11-19Adding UVs on end capsBastiaan Olij
2018-11-17Adding mikkt tangent support to CSG objectsBastiaan Olij
2018-11-01Fix CSG shape generation with meshes without indices, fixes #23364Juan Linietsky
2018-10-15Added a fail condition to prevent a crashJean-François Michaud
2018-10-04Fix GCC 8 warnings about potentially unitialized variablesRémi Verschelde
Fixes the following GCC 8 warnings: ``` core/image.cpp:730:44: warning: 'mip1_weight' may be used uninitialized in this function [-Wmaybe-uninitialized] core/image.cpp:293:20: warning: 'mip2' may be used uninitialized in this function [-Wmaybe-uninitialized] core/image.cpp:293:20: warning: 'mip1' may be used uninitialized in this function [-Wmaybe-uninitialized] editor/audio_stream_preview.cpp:58:19: warning: 'vmax' may be used uninitialized in this function [-Wmaybe-uninitialized] editor/audio_stream_preview.cpp:85:19: warning: 'vmin' may be used uninitialized in this function [-Wmaybe-uninitialized] editor/editor_themes.cpp:306:53: warning: 'preset_contrast' may be used uninitialized in this function [-Wmaybe-uninitialized] editor/plugins/animation_blend_space_2d_editor.cpp:459:27: warning: 'prev_idx' may be used uninitialized in this function [-Wmaybe-uninitialized] editor/plugins/animation_blend_space_2d_editor.cpp:443:27: warning: 'prev_idx' may be used uninitialized in this function [-Wmaybe-uninitialized] main/tests/test_oa_hash_map.cpp:57:29: warning: 'value' may be used uninitialized in this function [-Wmaybe-uninitialized] modules/csg/csg.cpp:764:40: warning: 'max_angle' may be used uninitialized in this function [-Wmaybe-uninitialized] modules/csg/csg_shape.cpp:1945:3: warning: 'face_count' may be used uninitialized in this function [-Wmaybe-uninitialized] scene/3d/voxel_light_baker.cpp:1593:8: warning: 'cone_aperture' may be used uninitialized in this function [-Wmaybe-uninitialized] scene/3d/voxel_light_baker.cpp:1592:6: warning: 'cone_dir_count' may be used uninitialized in this function [-Wmaybe-uninitialized] scene/animation/animation_blend_space_2d.cpp:471:8: warning: 'mind' may be used uninitialized in this function [-Wmaybe-uninitialized] core/os/memory.cpp:94: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] core/os/memory.cpp:95: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] core/os/memory.cpp:98: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] ```
2018-08-28Fix to make CSGBox the size that is entered in Width, Height and Depth ↵jmf
instead of twice those lengths.
2018-08-24Make some debug prints verbose-only, remove othersRémi Verschelde
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
2018-07-07Added path_local and path_continious_u properties to CSGPolygonBastiaan Olij
2018-06-27Changes to how node paths are selected from property, allowing setting a hint.Juan Linietsky
2018-06-10Fix CSG issues when reparenting shape nodes.Benjamin
2018-05-16Add missing copyright headersGuilherme Felipe
2018-05-16Allow editing of some unbound properties when hinted (or no range hinted)Juan Linietsky
2018-05-08Fix some enums missing its bindMarcelo Fernandez
2018-05-03updated OAHashMap to use robinhood hashingkarroffel
2018-04-28Add poly triangulation order check, ensures faces do not flip on different orderJuan Linietsky
2018-04-28-Changed how operators work, any shape can operate on any otherJuan Linietsky
-Added some break condition for bad poly data to avoid editor freezes
2018-04-28Do not crash if the polygon is invalidJuan Linietsky
2018-04-27CSG Support for Godot!Juan Linietsky
-Missing Icons -Missing freezing option (for baking light and faster load) -Missing a way to export from Godot (GLTF2?) -Probably buggy (may freeze editor, can be worked around easily, but let me know if this happens so it's easier to catch bugs) Happy testing!