You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Add templated version of ObjectDB::get_instance()
This commit is contained in:
@@ -4739,7 +4739,7 @@ void CanvasItemEditor::_popup_callback(int p_op) {
|
||||
|
||||
undo_redo->create_action(TTR("Paste Pose"));
|
||||
for (const PoseClipboard &E : pose_clipboard) {
|
||||
Node2D *n2d = Object::cast_to<Node2D>(ObjectDB::get_instance(E.id));
|
||||
Node2D *n2d = ObjectDB::get_instance<Node2D>(E.id);
|
||||
if (!n2d) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user