summaryrefslogtreecommitdiff
path: root/scene/main/node.cpp
AgeCommit message (Collapse)Author
2017-09-30Renamed fixed_process to physics_processAndreaCatania
2017-09-21Merge pull request #11013 from MednauN/masterRémi Verschelde
Fix duplication of node with script
2017-09-20Let queue_free() work on nodes which are not in the scene treeRémi Verschelde
In practice such nodes could directly be free()'ed, but this little change prevents users from leaking memory by mistake. Closes #9074.
2017-09-20Rename pos to position in user facing methods and variablesletheed
Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
2017-09-20Fix duplication of node with scriptEvgeny Zuev
When duplicating node with script, properties of script weren't copied sometimes. It happened because properties were copied in arbitrary order, and properties of the script were setted before the "script" property itself, i.e. while script is sill NULL. Also, DUPLICATE_SCRIPTS flag wasn't working - script was always copied because `_duplicate` looked for "script/script" property while it should be just "script". Now "script" property is being set before all others, and "script/script" changed to `CoreStringNames::get_singleton()->_script`.
2017-09-12Merge pull request #10908 from hpvb/fix-unused-variablesRémi Verschelde
Fix unused variable warnings
2017-09-12Merge pull request #11007 from saltares/issue-9988Rémi Verschelde
Renames _add_child_below_node() to add_child_below_node(). Fixes #9988.
2017-09-11Fix duplication of nodes resulting in shared metadataBojidar Marinov
Fixes #9547
2017-09-08Fix unused variable warningsHein-Pieter van Braam
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-05Renames _add_child_below_node() to add_child_below_node(). Closes #9988.David Saltares
2017-08-27Dead code tells no talesRémi Verschelde
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-26Node: Add debug info to add_child reparenting checkRémi Verschelde
Use it to remove buggy add_child in EditorAudioBus
2017-08-24Convert Object::cast_to() to the static versionHein-Pieter van Braam
Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-21Merge pull request #10351 from neikeq/enums-are-for-the-weakJuan Linietsky
ClassDB: Provide the enum name of integer constants
2017-08-20ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry
2017-08-19add "propagate_call" method to NodeKarroffel
It is possible to propagate a notification down the Node tree by using `propagate_notification`, but there was no such method for doing the same but with method calls. This commit adds the `propagate_call` method, which calls a method on a node and all child nodes. An optional paramter `parent_first` determines whether the parent node gets called before or after the children have been visited. It defaults to false, so the parent gets called last.
2017-08-16Allow zero-padded serial namingPedro J. Estébanez
Thereby, the editor will acknowledge node namings such as _Thing003_ so that a duplicate, for instance, will be named _Thing004_, instead of _Thing4_, that was the case formerly. Closes #7758.
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-08-07Merge pull request #10141 from ISylvox/lower_case_godot_apiRémi Verschelde
Makes all Godot API's Methods lower_case
2017-08-07Makes all Godot API's methods Lower CaseIndah Sylvia
2017-08-07Merge pull request #9394 from supagu/sync-rpc-fixRémi Verschelde
Queue RPC packet before calling method locally to ensure correct RPC …
2017-07-25Fix Node::move_child() crash if moving to the end plus onePedro J. Estébanez
Fixes #9820.
2017-07-19-Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky
-Added system for feature overrides, it's pretty cool :)
2017-07-19Add object type hint for docsPoommetee Ketson
2017-07-03Clean up normalmapping, make sure tangents are imported correctly.Juan Linietsky
2017-06-26Queue RPC packet before calling method locally to ensure correct RPC packet ↵Fabian Mathews
order
2017-05-20Removal of InputEvent as built-in Variant type..Juan Linietsky
this might cause bugs I haven't found yet..
2017-05-06Fix bug in pause mode propagationFabio Alessandrelli
Pause mode was not correctly propagating effectively stopping immediately when the mode was not PAUSE_MODE_INHERIT.
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-04-07Reset display folded for an instanced scene if editable children is toggled offPedro J. Estébanez
This avoids the display folded flag needlessly getting into the scene file (potentially forever) and also gives more visual feedback if the user re-enables editable children so it will display unfolded at first.
2017-03-30Add missing binding for DUPLICATE_USE_INSTANCINGPedro J. Estébanez
2017-03-18Merge pull request #8037 from RandomShaper/remove-warningRémi Verschelde
Remove warning on owner re-assignment
2017-03-18Merge pull request #8014 from AlexHolly/fix-remove-and-skipRémi Verschelde
fix remove_and_skip()
2017-03-15Remove warning on owner re-assignmentPedro J. Estébanez
2017-03-12fix remove_and_skip()AlexHolly
2017-03-11Fix connection errors when replacing nodeIgnacio Etcheverry
- Avoid connecting the signals to nonexistent methods - Preserve only persistent connections
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
2017-02-20Add more options to Node.duplicate()Pedro J. Estébanez
to decide whether signals, groups and/or scripts should be set in the copied nodes or not; it's default value makes the method include everything, as usual
2017-02-13Rename the _MD macro to D_METHODHein-Pieter van Braam
This new name also makes its purpose a little clearer This is a step towards fixing #56
2017-02-13Remove use of _SCS from ADD_METHODHein-Pieter van Braam
This saves typing and is a step towards fixing #56
2017-01-16Style: Fix statements ending with ';;'Rémi Verschelde
2017-01-14no more errors related to missing GlobalConfig::Get (or so I hope)Juan Linietsky
2017-01-14Style: Fix whole-line commented codeRémi Verschelde
They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
2017-01-13Node name casing: fix mistake from previous commitRémi Verschelde
2017-01-13Reenable node name case setting + code cleanupsRémi Verschelde
The method _generate_serial_child_name is indeed called relatively often in editor mode, but that commented out code chunk hardly adds to its slowness (and with the default setting, not at all). Also did various related code cleanups and simplifications.
2017-01-12Must now register with set_transform_notify() to get ↵Juan Linietsky
NOTIFICATION_TRANSFORM_CHANGED
2017-01-12Project setting to control node name casingRay Koopa
(cherry picked from commit 87fd54b2f18928213021fef7f330d0c314cf7ac7)
2017-01-12Renamed most signals so they refer to:Juan Linietsky
-An action being requested to the user in present tense: (ie, draw, gui_input, etc) -A notification that an action happened, in past tense (ie, area_entered, modal_closed, etc).
2017-01-10- _ready() callback only happens once now, if you want to receive it again, ↵Juan Linietsky
use request_ready() - C++ Nodes mostly do an internal process callback, so it does not conflict with users willing to use their own process callbacks - callbacks such as _input, _process, _fixed_process _unhandled_input, _unhandled_key_input do not requiere calling a function to enable them. They are enabled automatically if found on the script.