mirror of
https://github.com/godotengine/godot.git
synced 2024-12-03 09:52:18 +08:00
fix Window
derived nodes being unselectable for ViewportTexture
NodePath
This commit is contained in:
parent
809a982162
commit
ace7620e55
@ -194,7 +194,7 @@ void ViewportTexture::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_viewport_path_in_scene", "path"), &ViewportTexture::set_viewport_path_in_scene);
|
||||
ClassDB::bind_method(D_METHOD("get_viewport_path_in_scene"), &ViewportTexture::get_viewport_path_in_scene);
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::NODE_PATH, "viewport_path", PROPERTY_HINT_NODE_PATH_VALID_TYPES, "SubViewport", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT), "set_viewport_path_in_scene", "get_viewport_path_in_scene");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::NODE_PATH, "viewport_path", PROPERTY_HINT_NODE_PATH_VALID_TYPES, "Viewport", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT), "set_viewport_path_in_scene", "get_viewport_path_in_scene");
|
||||
}
|
||||
|
||||
ViewportTexture::ViewportTexture() {
|
||||
|
Loading…
Reference in New Issue
Block a user