mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
Fix ParallaxLayer's transform resetting in editor
Disable resetting of ParallaxLayer's position and scale in editor to allow setting the initial values.
This commit is contained in:
parent
a2f808fc92
commit
7741afb55a
@ -100,6 +100,10 @@ void ParallaxLayer::_notification(int p_what) {
|
||||
_update_mirroring();
|
||||
} break;
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
break;
|
||||
}
|
||||
|
||||
set_position(orig_offset);
|
||||
set_scale(orig_scale);
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user