mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #100602 from KoBeWi/over_100_changes_in_50_random_files_aka_the_best_kind_of_PR
Add templated version of `ObjectDB::get_instance()`
This commit is contained in:
commit
8f6bb119f4
49 changed files with 121 additions and 104 deletions
|
|
@ -4740,7 +4740,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue