godot/core
Rémi Verschelde b3bc5aafc5 Object: Add usage hint to instantiate Object properties in editor
Fixes #36372 as Path2D/Path3D's `curve` property no longer uses a Curve
instance as default value, but instead it gets a (unique) default Curve
instance when created through the editor (CreateDialog).

ClassDB gets a sanity check to ensure that we don't do the same mistake
for other properties in the future, but instead use the dedicated
property usage hint.

Fixes #36372.
Fixes #36650.

Supersedes #36644 and #36656.

Co-authored-by: Thakee Nathees <thakeenathees@gmail.com>
Co-authored-by: simpuid <utkarsh.email@yahoo.com>
2020-06-12 14:30:18 +02:00
..
bind Split Geometry singleton into Geometry2D and Geometry3D 2020-05-27 14:28:34 +03:00
crypto Crypto as a custom instance class. 2020-06-06 17:33:44 +02:00
debugger Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
input Sync controller mappings DB with SDL2 community repo 2020-06-04 15:52:27 +02:00
io Fix editor crash when mbedtls is disabled. 2020-06-06 17:33:43 +02:00
math Merge pull request #39230 from ntfshard/expression_string_singlequote 2020-06-11 09:37:35 +02:00
os Print errors when calling MIDI input methods on unsupported platforms 2020-05-31 19:10:27 +02:00
array.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
array.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
callable_method_pointer.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
callable_method_pointer.h Fix Container sorting not working when overriding _sort_children in gdscript 2020-05-16 18:13:25 +02:00
callable.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
callable.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
class_db.cpp Object: Add usage hint to instantiate Object properties in editor 2020-06-12 14:30:18 +02:00
class_db.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
color_names.inc Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
color.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
color.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
command_queue_mt.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
command_queue_mt.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
compressed_translation.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
compressed_translation.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
container_type_validate.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
core_builders.py SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
core_string_names.cpp Replace NULL with nullptr 2020-04-02 13:38:00 +02:00
core_string_names.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
cowdata.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
dictionary.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
dictionary.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
engine.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
engine.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
error_list.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
error_macros.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
error_macros.h Error macros: Improve style of error messages 2020-05-15 18:21:14 +02:00
func_ref.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
func_ref.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
global_constants.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
global_constants.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
hash_map.h Remove unused function get_key_value_ptr_array from hash_map.h and also fix parameter name in function get_key_list. 2020-06-05 13:13:42 +05:30
hashfuncs.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
image.cpp Merge pull request #39200 from azagaya/fix-blend-2 2020-06-07 15:52:22 +02:00
image.h Remove HQ2X and the Image.expand_2x_hq2x() method 2020-05-16 16:10:50 +02:00
int_types.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
list.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
local_vector.h Fix unsigned integer bug in LocalVector::erase 2020-05-27 21:53:34 +08:00
make_binders.py Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
map.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
message_queue.cpp Fix Container sorting not working when overriding _sort_children in gdscript 2020-05-16 18:13:25 +02:00
message_queue.h Fix Container sorting not working when overriding _sort_children in gdscript 2020-05-16 18:13:25 +02:00
method_bind.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
method_bind.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
method_ptrcall.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
node_path.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
node_path.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
oa_hash_map.h - Make sure it's impossible to initialize an OAHashMap with 0 capacity (would cause division by 0) 2020-05-25 11:18:02 +02:00
object_id.h Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
object.cpp Fix potential crash when listing leaked objects 2020-06-10 20:44:11 +02:00
object.h Object: Add usage hint to instantiate Object properties in editor 2020-06-12 14:30:18 +02:00
ordered_hash_map.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
packed_data_container.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
packed_data_container.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
pair.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
pool_allocator.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
pool_allocator.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
print_string.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
print_string.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
project_settings.cpp Improve documentation of ProjectSettings::setup 2020-05-25 17:50:36 +02:00
project_settings.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
reference.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
reference.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
register_core_types.cpp Split Geometry singleton into Geometry2D and Geometry3D 2020-05-27 14:28:34 +03:00
register_core_types.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
resource.cpp Core: Add hints to run with --verbose when leaking nodes/resources at exit 2020-06-08 16:48:21 +02:00
resource.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
rid_owner.cpp Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
rid_owner.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
rid.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
ring_buffer.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
safe_refcount.cpp Style: Fix unnecessary semicolons that confused clang-format 2020-05-19 11:24:58 +02:00
safe_refcount.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
script_language.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
script_language.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
SCsub Remove HQ2X and the Image.expand_2x_hq2x() method 2020-05-16 16:10:50 +02:00
self_list.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
set.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
simple_type.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
sort_array.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
spin_lock.h Port member initialization from constructor to declaration (C++11) 2020-05-14 10:01:56 +02:00
string_buffer.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
string_builder.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
string_builder.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
string_name.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
string_name.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
thread_work_pool.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
thread_work_pool.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
translation.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
translation.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
type_info.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
typed_array.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
typedefs.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
ucaps.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
undo_redo.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
undo_redo.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
ustring.cpp String: Use ABS macro in padding code 2020-06-11 11:39:21 +02:00
ustring.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
variant_call.cpp Fix docs generation for Vector2i/Vector3i/Rect2i 2020-06-03 15:22:26 +03:00
variant_op.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
variant_parser.cpp VariantParser: Fix crash on malformed vectors 2020-06-08 11:38:13 +02:00
variant_parser.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
variant.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
variant.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
vector.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
version.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
vmap.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
vset.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00