Merge pull request #107408 from Ivorforce/node-path-string-explicit
Make conversions from `NodePath` to `String` explicit.
This commit is contained in:
@@ -194,9 +194,9 @@ void ViewportTexture::_setup_local_to_scene(const Node *p_loc_scene) {
|
||||
vp_pending = false;
|
||||
|
||||
Node *vpn = p_loc_scene->get_node_or_null(path);
|
||||
ERR_FAIL_NULL_MSG(vpn, "Path to node is invalid: '" + path + "'.");
|
||||
ERR_FAIL_NULL_MSG(vpn, "Path to node is invalid: '" + String(path) + "'.");
|
||||
vp = Object::cast_to<Viewport>(vpn);
|
||||
ERR_FAIL_NULL_MSG(vp, "Path to node does not point to a viewport: '" + path + "'.");
|
||||
ERR_FAIL_NULL_MSG(vp, "Path to node does not point to a viewport: '" + String(path) + "'.");
|
||||
|
||||
vp->viewport_textures.insert(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user