summaryrefslogtreecommitdiffstats
path: root/core/class_db.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'Braden Bodily2019-08-171-38/+14
| | | | | | | | | Condensed some if and ERR statements. Added dots to end of error messages Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?), core/os/memory.cpp, drivers/png/png_driver_common.cpp, drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
* Fix some code found by Coverity Scan and PVS Studioqarmin2019-07-231-0/+1
|
* Use reference to constant in functionsqarmin2019-07-101-2/+2
|
* Merge pull request #30126 from qarmin/remove_unnecessary_codeRémi Verschelde2019-07-011-2/+2
|\ | | | | Remove unnecessary code and add some error explanations
| * Remove unnecessary code and add some error explanationsqarmin2019-07-011-2/+2
| |
* | Remove bogus nulls from generated default valuesBojidar Marinov2019-06-291-1/+4
| | | | | | | | Also, fix crash in PluginScript destructor.
* | Add default values to the editor help, docs, and generated RSTBojidar Marinov2019-06-271-8/+45
|/ | | | | Also, make spacing of "=" in the editor help a bit more consistent. Closes #16086
* Some code changed with Clang-Tidyqarmin2019-06-261-1/+1
|
* Fix always true/false valuesqarmin2019-06-201-3/+1
|
* Add ability to edit editor feature profilesJuan Linietsky2019-04-081-0/+13
| | | | Allows enabling/disabling parts of the editor and storing/loading profiles for that.
* Fix wrong method binds and registered classIgnacio Etcheverry2019-04-061-0/+5
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Make add_property error more explicit on duplicatesRémi Verschelde2018-11-201-2/+1
| | | | Would have helped solve #23800 faster.
* -Moved EditorDefaultValue to ClassDB, made it coreJuan Linietsky2018-11-081-0/+36
| | | | -Removed one and zero hints for properties, replaced by default value
* Fix warnings on release builds (not DEBUG_ENABLED)Rémi Verschelde2018-10-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fixes the following Clang 5 warnings: ``` modules/bmp/image_loader_bmp.cpp:46:60: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] modules/bmp/image_loader_bmp.cpp:48:61: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] drivers/png/image_loader_png.cpp:231:20: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] scene/gui/graph_edit.cpp:1045:8: warning: comparison of constant 0 with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare] core/class_db.cpp:812:13: warning: unused variable 'check' [-Wunused-variable] core/io/file_access_pack.cpp:172:11: warning: unused variable 'ver_rev' [-Wunused-variable] core/math/bsp_tree.cpp:195:13: warning: unused variable 'plane' [-Wunused-variable] core/math/bsp_tree.cpp:168:6: warning: unused variable 'plane_count' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:685:10: warning: unused variable 'ok' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:706:10: warning: unused variable 'ok' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:755:19: warning: unused variable 'var_type' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:1306:12: warning: unused variable 'err' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:158:15: warning: unused function '_get_var_type' [-Wunused-function] modules/gdscript/gdscript_parser.cpp:750:20: warning: unused variable 'lv' [-Wunused-variable] modules/gdscript/gdscript_parser.cpp:59:15: warning: unused function '_find_function_name' [-Wunused-function] scene/main/node.cpp:2489:13: warning: unused function '_Node_debug_sn' [-Wunused-function] ```
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-3/+3
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Print an error if you try to instantiate an editor class outside the editor, ↵Juan Linietsky2018-09-061-1/+7
| | | | fixes #17624
* Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam2018-07-261-91/+91
| | | | | | | | | | | | | | | | | | | | | | | 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.
* -Fixes to how hashing happened, now StringName and NodePath use default ↵Juan Linietsky2018-07-021-3/+3
| | | | | | hasher, this was leading to some severe slowdown in scenarios -Fixes to some duplication scenarios for instanced scenes
* Merge pull request #18514 from neikeq/api-hash-fixesRémi Verschelde2018-05-031-1/+1
|\ | | | | API hash fixes
| * ClassDB API hash now only includes exposed classesIgnacio Etcheverry2018-04-291-1/+1
| |
* | Fix Coverity reports of uninitialized scalar variableRémi Verschelde2018-04-191-0/+2
|/ | | | | | | | | | | Fixes most current reports on Coverity Scan of uninitialized scalar variable (CWE-457): https://cwe.mitre.org/data/definitions/457.html These happen most of the time (in our code) when instanciating structs without a constructor (or with an incomplete one), and later returning the instance. This is sometimes intended though, as some parameters are only used in some situations and should not be double-initialized for performance reasons (e.g. `constant` in ShaderLanguage::Token).
* Ctrl+Clicking a enum now scrolls down to it in the docs.Felix Yang2018-04-031-3/+1
|
* Add RWLockDummy for NO_THREADS buildsLeon Krause2018-03-201-21/+0
|
* Refactor version macros and fix related bugsRémi Verschelde2018-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous logic with VERSION_MKSTRING was a bit unwieldy, so there were several places hardcoding their own variant of the version string, potentially with bugs (e.g. forgetting the patch number when defined). The new logic defines: - VERSION_BRANCH, the main 'major.minor' version (e.g. 3.1) - VERSION_NUMBER, which can be 'major.minor' or 'major.minor.patch', depending on whether the latter is defined (e.g. 3.1.4) - VERSION_FULL_CONFIG, which contains the version status (e.g. stable) and the module-specific suffix (e.g. mono) - VERSION_FULL_BUILD, same as above but with build/reference name (e.g. official, custom_build, mageia, etc.) Note: Slight change here, as the previous format had the build name *before* the module-specific suffix; now it's after - VERSION_FULL_NAME, same as before, so VERSION_FULL_BUILD prefixed with "Godot v" for readability Bugs fixed thanks to that: - Export templates version matching now properly takes VERSION_PATCH into account by relying on VERSION_FULL_CONFIG. - ClassDB hash no longer takes the build name into account, but limits itself to VERSION_FULL_CONFIG (build name is cosmetic, not relevant for the API hash). - Docs XML no longer hardcode the VERSION_STATUS, this was annoying. - Small cleanup in Windows .rc file thanks to new macros.
* Added all missing VisualServer bindingsMarc Gilleron2018-01-201-0/+41
| | | | | | | - Added bindings for multimesh, immediate, skeleton, light, reflection probe, gi probe, lightmap, particles, camera, environment, scenario, instance - Removed draw and sync, were duplicates of force_* equivalents - Bumped binders max arguments from 11 to 13 - Wrote some wrappers as not all methods were variant-friendly
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Faster ClassDB::get_api_hash()Bernhard Liebl2017-12-161-4/+5
|
* PropertyEditor: Fix display of property doc in tooltipRémi Verschelde2017-12-091-19/+0
|
* Bind some VisualServer functionsLeon Krause2017-10-201-0/+19
|
* Adds 'exposed' field to ClassInfoIgnacio Etcheverry2017-10-091-0/+10
| | | | | | This field represents if the class is exposed to the scripting API. The value is 'true' if the class was registered manually ('ClassDB::register_*class()'), otherwise it's false (registered on '_post_initialize'). - Added missing registration of classes that are meant to be exposed.
* Fixes order of default arguments in MethodInfoIgnacio Etcheverry2017-09-021-5/+3
| | | | This time for real
* Fixes reversed order of default arguments in MethodInfoIgnacio Etcheverry2017-09-011-1/+7
|
* Merge pull request #10745 from neikeq/fix-docdata-and-stuffJuan Linietsky2017-08-291-1/+2
|\ | | | | DocData and virtual method type hints fixes
| * Fixes missing default arguments in MethodInfoIgnacio Etcheverry2017-08-291-1/+2
| |
* | Removed ParamDef and ParamHint structsWilson E. Alvarez2017-08-291-5/+0
| |
* | -Some fixes to code completion.Juan Linietsky2017-08-281-1/+1
|/ | | | | -Fix getter in code completion being displayed when it shouldn't -Clean up preview generation for editors and exposed it as editor plugin
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Re-apply clang-format to all filesRémi Verschelde2017-08-271-4/+3
| | | | Some badly formatted code has managed to pass through our CI...
* -Code completion for enumerationsJuan Linietsky2017-08-241-7/+16
| | | | -Disabled GDNative and GDNativeScript so build compiles again
* Changed MethodBind API to request information from methods. It's much claner ↵Juan Linietsky2017-08-231-4/+2
| | | | | | now. Also changed PropertyInfo to include informatino about class names.
* ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry2017-08-201-1/+82
|
* Merge pull request #9987 from Rubonnek/move-members-to-initilization-listRémi Verschelde2017-08-111-3/+3
|\ | | | | Moved member variables from constructor to initialization list
| * Moved member variables from constructor to initialization listWilson E. Alvarez2017-08-081-3/+3
| |
* | Improves method bind detection of signature typesIgnacio Etcheverry2017-08-101-8/+11
|/
* ClassDB: Adds get_property_index methodIgnacio Etcheverry2017-08-061-0/+22
|
* Remove methods from code completion which are already exposed by properties, ↵Juan Linietsky2017-06-231-2/+12
| | | | makes completion cleaner and more close to the documentation.
* Fix recognition of resource extensions.Andreas Haas2017-04-261-1/+1
| | | | Also removes a related debug print.
* Move VERSION_MKSTRING logic to version.hRémi Verschelde2017-04-201-0/+1
| | | | | | | Fixes a bug where the VERSION_PATCH define is not yet in scope if typedefs.h is included before version.h at compilation time. (cherry picked from commit 3b687c5474113b64f186388883ca85cdfe6523d4)