summaryrefslogtreecommitdiff
path: root/scene/main/node.cpp
AgeCommit message (Collapse)Author
2017-12-17Merge pull request #14754 from willnationsdev/dictionary-copyRémi Verschelde
Added 'duplicate' function for Dictionary in C++ and API.
2017-12-17Dictionary::copy -> ::duplicateWill Nations
2017-12-16Improve duplication and saving of instanced scenesMatthias Hoelzl
2017-12-14-Add lightmapperJuan Linietsky
-Fixes to unwrapper (remove degenerates), makes Thekla not crash -Added optional cancel button in EditorProgress -Added function to force processing of events (needed for cancel button)
2017-12-01Fixed crash on duplicate instanced nodes (#13432)Konstantin Zaitsev
2017-11-25Fix crash on node duplicationPedro J. Estébanez
That happened when an instanced scene was being duplicated while it also contained nodes added to it in the scene holding the instance. Plus: - Add comments about the logic behind all this. - Move the null guard to where it can protect the most, but consider it a runtime error rather that a situation we expect. Fixes #13282.
2017-11-25Made Vector::ptrw explicit for writing, compiler was sometimes using the ↵Juan Linietsky
wrong function, leading to unnecesary copy on writes and reduced performance.
2017-11-21Node.duplicate(): instanced node's descendants' properties now updateWill Nations
w/ original's runtime values.
2017-11-21Merge pull request #12284 from bojidar-bg/allow-subproperty-setRémi Verschelde
Allow for getting/setting "dotted" properties of objects
2017-11-21Allow for getting/setting indexed properties of objects using get/set_indexedBojidar Marinov
Performance is around the same as using pure set() through GDScript.
2017-11-21Preserve duplicate signal flagsChaosus
2017-11-19Let SceneTreeDock duplicate nodes via Node::duplicate()Pedro J. Estébanez
Helps with #11182.
2017-11-19Remove out-of-logic assignment of instance's original scenePedro J. Estébanez
2017-11-19Fix duplication of signalsPedro J. Estébanez
- Partially revert 6496b53549aca7b1be57c3be55815f32a4842201, adding a comment about why duplications of signals must happen as a second phase. - Add fallback logic for connections to nodes not in the duplicated hierarchy. - Remove redundant call to `Node::_duplicate_signals()`. Fixes #12951.
2017-11-13fix signals disconnecting on changing target node typeIan
2017-11-13Duplicate signals fixesChaosus
2017-10-22Bind unbound enums, rearrange some by valuePoommetee Ketson
2017-10-19Added a node_added signal to the SceneTreeNathan Warden
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