summaryrefslogtreecommitdiffstats
path: root/modules/csg
Commit message (Collapse)AuthorAgeFilesLines
...
* Add compatibility code for CSGBox3D width/height/depth from Godot 3.xDESKTOP-9O27V4U\Navi2023-02-132-0/+28
| | | | Fixes #66420.
* Don't generate CSGPolygon3D shape before the assigned path is inside treeMinusKube2023-01-311-2/+2
|
* Add EditorUndoRedoManager singletonkobewi2023-01-161-4/+4
|
* One Copyright Update to rule them allRémi Verschelde2023-01-058-232/+232
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Document `collision_priority` in the CSGShape3D classHugo Locurcio2022-10-241-2/+3
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-55/+55
| | | | change warnings=all to use /W4.
* Rename remaining "Spatial" in Plugins to "Node3D"Micky2022-10-041-5/+5
| | | | | | | | | | | | For EditorNode3DGizmo: - `get_spatial_node` -> `get_node_3d` - `set_spatial_node` -> `set_node_3d` For EditorPlugin: - `add_spatial_gizmo_plugin` -> `add_node_3d_gizmo_plugin` - `remove_spatial_gizmo_plugin` -> `remove_node_3d_gizmo_plugin` Also renames some internal methods for consistency (`forward_3d_draw_over_viewport` & `forward_3d_force_draw_over_viewport` ...). Basically, Spatial has been completely eradicated.
* SCons: Unify tools/target build type configurationRémi Verschelde2022-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements https://github.com/godotengine/godot-proposals/issues/3371. New `target` presets ==================== The `tools` option is removed and `target` changes to use three new presets, which match the builds users are familiar with. These targets control the default optimization level and enable editor-specific and debugging code: - `editor`: Replaces `tools=yes target=release_debug`. * Defines: `TOOLS_ENABLED`, `DEBUG_ENABLED`, `-O2`/`/O2` - `template_debug`: Replaces `tools=no target=release_debug`. * Defines: `DEBUG_ENABLED`, `-O2`/`/O2` - `template_release`: Replaces `tools=no target=release`. * Defines: `-O3`/`/O2` New `dev_build` option ====================== The previous `target=debug` is now replaced by a separate `dev_build=yes` option, which can be used in combination with either of the three targets, and changes the following: - `dev_build`: Defines `DEV_ENABLED`, disables optimization (`-O0`/`/0d`), enables generating debug symbols, does not define `NDEBUG` so `assert()` works in thirdparty libraries, adds a `.dev` suffix to the binary name. Note: Unlike previously, `dev_build` defaults to off so that users who compile Godot from source get an optimized and small build by default. Engine contributors should now set `dev_build=yes` in their build scripts or IDE configuration manually. Changed binary names ==================== The name of generated binaries and object files are changed too, to follow this format: `godot.<platform>.<target>[.dev][.double].<arch>[.<extra_suffix>][.<ext>]` For example: - `godot.linuxbsd.editor.dev.arm64` - `godot.windows.template_release.double.x86_64.mono.exe` Be sure to update your links/scripts/IDE config accordingly. More flexible `optimize` and `debug_symbols` options ==================================================== The optimization level and whether to generate debug symbols can be further specified with the `optimize` and `debug_symbols` options. So the default values listed above for the various `target` and `dev_build` combinations are indicative and can be replaced when compiling, e.g.: `scons p=linuxbsd target=template_debug dev_build=yes optimize=debug` will make a "debug" export template with dev-only code enabled, `-Og` optimization level for GCC/Clang, and debug symbols. Perfect for debugging complex crashes at runtime in an exported project.
* Remove unused includes & move some includes to top of fileAndy Maloney2022-09-231-1/+0
|
* Rename Curve/Curve2D/Curve3D/Gradient `interpolate()` to `sample()`Hugo Locurcio2022-08-301-8/+8
| | | | | "sampling" is a more accurate term than "interpolating" for what's happening when using that function.
* Rename `str2var` to `str_to_var` and similarMicky2022-08-261-2/+2
| | | | | | | | | | | | | | | | | | Affects the Math class, a good chunk of the audio code, and a lot of other miscellaneous classes, too. - `var2str` -> `var_to_str` - `str2var` -> `str_to_var` - `bytes2var` -> `bytes_to_var` - `bytes2var_with_objects` -> `bytes_to_var_with_objects` - `var2bytes` -> `var_to_bytes` - `var2bytes_with_objects` -> `var_to_bytes_with_objects` - `linear2db` -> `linear_to_db` - `db2linear` -> `db_to_linear` - `deg2rad` -> `deg_to_rad` - `rad2deg` -> `rad_to_deg` - `dict2inst` -> `dict_to_inst` - `inst2dict` -> `inst_to_dict`
* Merge pull request #59564 from KoBeWi/FINALLY,_ULTIMATE_UNDO_REDORémi Verschelde2022-08-221-4/+6
|\
| * Add per-scene UndoRedokobewi2022-08-221-4/+6
| |
* | Merge pull request #64339 from YuriSizov/core-multilevel-validate-propertyRémi Verschelde2022-08-222-17/+14
|\ \ | |/ |/|
| * Make `_validate_property` a multilevel methodYuri Sizov2022-08-222-17/+14
| |
* | Merge pull request #64343 from TokageItLab/priority-phRémi Verschelde2022-08-223-0/+23
|\ \ | |/ |/|
| * Add collision weight to PhysicsBody for penetrations must be avoidedSilc Renew2022-08-183-0/+23
| | | | | | | | Co-authored-by: Juan Linietsky <reduzio@gmail.com>
* | Remove unintentional PROPERTY_USAGE_INTERNALRedMser2022-08-181-1/+1
|/ | | | | The flag only matters for property definition, but was also used in _validate_property a lot.
* Rename the argument tag to param in XML documentationYuri Sizov2022-08-081-6/+6
|
* Make "Godot source files" comment consistent in modulesAaron Franke2022-08-051-2/+1
|
* Fix some array size function definition mismatch.Fabio Alessandrelli2022-08-041-1/+1
|
* rename translate(d) to translate(d)_local in Transform 2D/3DFabian Keller2022-07-161-3/+3
|
* Clean up Hash Functionsreduz2022-06-202-6/+6
| | | | | | | Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
* Add suffixes to all nodes and resourcesFireForge2022-06-111-3/+3
|
* Merge pull request #61213 from timothyqiu/csg-crashRémi Verschelde2022-05-201-3/+5
|\ | | | | Fix editor crash when opening scene with CSGMesh
| * Fix editor crash when opening scene with CSGMeshHaoyu Qiu2022-05-201-3/+5
| |
* | Use suffixes for units in nodes and resourcesAaron Franke2022-05-191-6/+6
|/
* Replace most uses of Map by HashMapreduz2022-05-162-8/+8
| | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Fix warnings found by Emscripten 3.1.10Rémi Verschelde2022-05-101-4/+3
| | | | | Fix `-Wunused-but-set-variable`, `-Wunqualified-std-cast-call`, and `-Wliteral-range` warnings.
* Rename `CSGPrimitive3D.invert_faces` to `flip_faces`hoontee2022-05-064-26/+26
|
* Merge pull request #60723 from reduz/refactor-module-initializationRémi Verschelde2022-05-042-15/+23
|\
| * Refactor module initializationreduz2022-05-042-15/+23
| | | | | | | | | | | | | | * Changed to use the same stages as extensions. * Makes the initialization more coherent, helping solve problems due to lack of stages. * Makes it easier to port between module and extension. * removed the DRIVER initialization level (no longer needed).
* | Rename Basis get_axis to get_column, remove redundant methodsAaron Franke2022-05-031-3/+3
| |
* | Decrease default sizes of some primitive and CSG meshes for consistencyHugo Locurcio2022-04-272-2/+2
|/
* Fix CSG gizmos only working on root shapesEeli Reilin2022-04-061-8/+6
|
* Zero initialize all pointer class and struct membersRémi Verschelde2022-04-041-1/+1
| | | | | This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
* Modules: Don't build editor-specific classes in templatesRémi Verschelde2022-03-284-5/+20
| | | | | They're moved to an `editor` subfolder so that we can easily handle them separately.
* Prevent non-smoothed face normals to participate to smoothed face normalsMythTitans2022-03-111-9/+11
|
* Fix normals computation at the 'seam' of smoothed torus shapeMythTitans2022-03-111-0/+6
|
* Discern between virtual and abstract class bindingsreduz2022-03-103-7/+2
| | | | | | | | | | | | | | * Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
* Revert #52647hoontee2022-03-091-1/+1
|
* Add SNAME macro optimization missed during rebasehoontee2022-03-091-1/+1
|
* Properly handle CSGShape parent and visibility updates, plus some refactoringhoontee2022-03-082-60/+78
|
* Fix normals computation at the 'seam' of smoothed sphere and cylinder shapesMythTitans2022-02-161-0/+7
|
* Convert _notification methods to switch - Chunk CJakob Bouchard2022-02-161-47/+49
|
* Merge pull request #35679 from Calinou/doc-add-xml-schemaRémi Verschelde2022-02-159-9/+9
|\
| * Add an XML schema for documentationHugo Locurcio2022-02-159-9/+9
| | | | | | | | | | | | | | | | This makes it easier to spot syntax errors when editing the class reference. The schema is referenced locally so validation can still work offline. Each class XML's schema conformance is also checked on GitHub Actions.
* | Remove the EditorNode parameter from EditorPlugins create methodstrollodel2022-02-142-2/+2
| | | | | | | | Remove EditorNode usage from the Navigation editor plugin.
* | Remove most EditorNode constructor parameters and fieldstrollodel2022-02-142-2/+2
|/
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-0/+2
|