aboutsummaryrefslogtreecommitdiff
path: root/scene/main/node.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-01-12 20:35:46 -0300
committerJuan Linietsky2017-01-12 20:35:46 -0300
commita2903fc51d1d20eba4dc451bdacbe477d6670163 (patch)
treebbcac01f2c30ca1e104b11321e5c7a6930f51e59 /scene/main/node.cpp
parentda477b76a98ee7ca4ac16773d3baf1299e053da7 (diff)
downloadgodot-a2903fc51d1d20eba4dc451bdacbe477d6670163.tar.gz
godot-a2903fc51d1d20eba4dc451bdacbe477d6670163.tar.zst
godot-a2903fc51d1d20eba4dc451bdacbe477d6670163.zip
Must now register with set_transform_notify() to get NOTIFICATION_TRANSFORM_CHANGED
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r--scene/main/node.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index d24edea99..3a533d24b 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -1384,6 +1384,8 @@ String Node::_generate_serial_child_name(Node *p_child) {
if (name=="") {
name = p_child->get_class();
+ /* this is probably too slow to use here, should check alternatives
+ *
// Adjust casing according to project setting. The current type name is expected to be in PascalCase.
switch (Globals::get_singleton()->get("node/name_casing").operator int()) {
case NAME_CASING_PASCAL_CASE:
@@ -1395,6 +1397,7 @@ String Node::_generate_serial_child_name(Node *p_child) {
name = name.camelcase_to_underscore(true);
break;
}
+ */
}
// Extract trailing number