You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
CI: Bump various pre-commit hooks
This commit is contained in:
@@ -128,14 +128,14 @@ Node *SceneState::instantiate(GenEditState p_edit_state) const {
|
||||
// Nodes where instantiation failed (because something is missing.)
|
||||
List<Node *> stray_instances;
|
||||
|
||||
#define NODE_FROM_ID(p_name, p_id) \
|
||||
Node *p_name; \
|
||||
if (p_id & FLAG_ID_IS_PATH) { \
|
||||
NodePath np = node_paths[p_id & FLAG_MASK]; \
|
||||
p_name = ret_nodes[0]->get_node_or_null(np); \
|
||||
} else { \
|
||||
ERR_FAIL_INDEX_V(p_id &FLAG_MASK, nc, nullptr); \
|
||||
p_name = ret_nodes[p_id & FLAG_MASK]; \
|
||||
#define NODE_FROM_ID(p_name, p_id) \
|
||||
Node *p_name; \
|
||||
if (p_id & FLAG_ID_IS_PATH) { \
|
||||
NodePath np = node_paths[p_id & FLAG_MASK]; \
|
||||
p_name = ret_nodes[0]->get_node_or_null(np); \
|
||||
} else { \
|
||||
ERR_FAIL_INDEX_V(p_id & FLAG_MASK, nc, nullptr); \
|
||||
p_name = ret_nodes[p_id & FLAG_MASK]; \
|
||||
}
|
||||
|
||||
int nc = nodes.size();
|
||||
|
||||
Reference in New Issue
Block a user