Skip to content

Commit

Permalink
Remove redundant code in Node3D
Browse files Browse the repository at this point in the history
  • Loading branch information
AThousandShips committed Sep 6, 2024
1 parent 05d9854 commit bedb312
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scene/3d/node_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,7 @@ void Node3D::_notification(int p_what) {

if (data.top_level && !Engine::get_singleton()->is_editor_hint()) {
if (data.parent) {
if (!data.top_level) {
data.local_transform = data.parent->get_global_transform() * get_transform();
} else {
data.local_transform = get_transform();
}
data.local_transform = get_transform();
_replace_dirty_mask(DIRTY_EULER_ROTATION_AND_SCALE); // As local transform was updated, rot/scale should be dirty.
}
}
Expand Down

0 comments on commit bedb312

Please sign in to comment.