summaryrefslogtreecommitdiff
path: root/scene/main/node.cpp
AgeCommit message (Collapse)Author
2019-04-20Object::script may not be a valid Ref<Script>Hein-Pieter van Braam-Stewart
It appears that Object::script may be a valid ScriptInstance but not be castable to Ref<Script>. There were only 5 places in the code that made this assumption. This commit fixes that.
2019-04-11No more metadata and dependency indices kept in resources saved.Juan Linietsky
-Node folding is now saved externally together with the properties -External resources remember their ID when scenes are saved.
2019-04-05Merge pull request #26803 from ptrojahn/emptynodeRémi Verschelde
Make get_node return NULL for empty NodePaths
2019-04-04Clean up notifications and merge Node and MainLoop ones for clarity, closes ↵Juan Linietsky
#27614
2019-03-08Make get_node return NULL for empty NodePathsPaul Trojahn
Fixes #25292
2019-01-30Add check in folding to see if the nodepath exists to avoid message spam.K. S. Ernest (iFire) Lee
2019-01-11Redo serial name fixup from 799ed2b98984414fd3b7b667c5e3e5d2e6d35a66Rémi Verschelde
reduz wanted the original PR reverted due to issues, so this follow-up had to be too (done in 8cb54182ad2698a962def84f79cc8206ac9f13b2). But he ended up adapting part of the original PR in 27d77723811c2652c6118eca03a38c4ae1441895 without including this fix.
2019-01-10Rewrote rename logic to be less buggy and more efficient, fixes #23803 and ↵Juan Linietsky
probably many recent bugs using GraphEdit
2019-01-10Revert "Node: make _generate_serial_child_name manipulate numbers as String"Rémi Verschelde
This reverts commits 1025e3ecea67b90232cfdc9590a7ee8887efdcc8 and 799ed2b98984414fd3b7b667c5e3e5d2e6d35a66.
2019-01-08Fix strip out spaces while generating serial number for node namevolzhs
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-11-21Node: make _generate_serial_child_name manipulate numbers as StringlupoDharkael
The conversion from an String to int can overflow int and int64 so it is safer to manipulate strings when we try to find the next available name for a Node.
2018-11-18Massive speed up on deleting nodes, fixes #18673Juan Linietsky
Also makes the editor exit faster
2018-11-14Merge pull request #23564 from endragor/fix-remove-child-orderingJuan Linietsky
Notify node's moved children after sibling removed
2018-11-08-Moved EditorDefaultValue to ClassDB, made it coreJuan Linietsky
-Removed one and zero hints for properties, replaced by default value
2018-11-07Notify node's moved children after sibling removedRuslan Mustakov
Fixes #16213.
2018-10-29Moved folding outside the resource files, now saved outside the project.Juan Linietsky
2018-10-11Fixed error when duplicating a scene which has connectionDualMatrix
Fixed error when duplicating a scene which has connection
2018-10-03Merge pull request #22681 from akien-mga/fix-warningsRémi Verschelde
Fix warnings on release builds and some MSVC warnings
2018-10-03Fix warnings on release builds (not DEBUG_ENABLED)Rémi Verschelde
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] ```
2018-10-03Fixed error when duplicating node from editor.DualMatrix
Fixed error when duplicating node from editor.
2018-09-22Merge pull request #22115 from akerudesu/find-parentMax Hilbrunner
Added find_parent method to node class
2018-09-15Added find_parent method to node classUnknown
2018-09-14Made duplicate_and_reown preserve groupsDualMatrix
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
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.
2018-09-07Ensure that tree_exited signal really happens after tree exited, fixes #19641Juan Linietsky
2018-08-24Make some debug prints verbose-only, remove othersRémi Verschelde
2018-08-21Style: Fix issues that went past CIRémi Verschelde
2018-08-15Fix not to show configuration warning on every node has scriptvolzhs
2018-08-14-Deprecate ImageTexture::loadJuan Linietsky
-Add warning to Image::load when loading resources -Add script binding for get_configuration_warning
2018-08-04Fixed process priorityAndrea Catania
2018-07-29Ensure process notification is received only if really enabled, fixes #7894Juan Linietsky
2018-07-23Merge pull request #19888 from AndreaCatania/pryJuan Linietsky
Implemented proceses priority
2018-07-23Implemented proceses priorityAndrea Catania
2018-07-18Style: Format code with clang-format 6.0.1Rémi Verschelde
2018-07-03Merge pull request #19853 from khairul169/duplicate_bugMax Hilbrunner
Fix duplicate method on instanced node generates duplicated children.
2018-07-02-Fixes to how hashing happened, now StringName and NodePath use default ↵Juan Linietsky
hasher, this was leading to some severe slowdown in scenarios -Fixes to some duplication scenarios for instanced scenes
2018-06-30Fix duplicate bugkhairul169
2018-06-19Add missing NULL checks for add_child_below_nodeMarcelo Fernandez
2018-05-29Refactor RPCMode enum and checksFabio Alessandrelli
2018-05-29Revert "RPCMode refactor, more sync modes"Max Hilbrunner
2018-05-26Refactor RPCMode enum and checksFabio Alessandrelli
2018-05-15-New inspector.Juan Linietsky
-Changed UI resizing code, gained huge amount of speed. -Reorganized timer sync to clean up behavior (sorry forgot commit this before) -
2018-05-08Rename multiplayer_api to just multiplayer.Fabio Alessandrelli
Only the class name retain the MultiplayerAPI name
2018-05-07Merge pull request #15911 from Zephilinox/ready_signalJuan Linietsky
Add ready signal to Node
2018-05-03Merge pull request #18514 from neikeq/api-hash-fixesRémi Verschelde
API hash fixes
2018-05-03Check invalid node namevolzhs
2018-04-29Fix binding some core API methods only in tools buildsIgnacio Etcheverry
2018-04-09Made print_tree_pretty() function which displays scene tree graphicallyGeoffrey
2018-04-08Merge pull request #17227 from Faless/multiplayer_apiJuan Linietsky
[RFC] MultiplayerAPI refactor