|
1 | 1 | use crate::{
|
2 | 2 | camera::PickingOptions, gui::make_dropdown_list_option,
|
3 |
| - gui::make_dropdown_list_option_with_height, load_image, |
4 |
| - scene::commands::graph::ScaleNodeCommand, utils::enable_widget, AddModelCommand, AssetItem, |
5 |
| - AssetKind, BuildProfile, ChangeSelectionCommand, CommandGroup, DropdownListBuilder, |
| 3 | + gui::make_dropdown_list_option_with_height, load_image, utils::enable_widget, AddModelCommand, |
| 4 | + AssetItem, AssetKind, BuildProfile, ChangeSelectionCommand, CommandGroup, DropdownListBuilder, |
6 | 5 | EditorScene, GameEngine, GraphSelection, InteractionMode, InteractionModeKind, Message, Mode,
|
7 | 6 | SceneCommand, Selection, SetMeshTextureCommand, Settings,
|
8 | 7 | };
|
@@ -623,6 +622,10 @@ impl SceneViewer {
|
623 | 622 | scene.animations[animation].set_enabled(true);
|
624 | 623 | }
|
625 | 624 |
|
| 625 | + scene.graph[instance.root] |
| 626 | + .local_transform_mut() |
| 627 | + .set_scale(settings.model.instantiation_scale); |
| 628 | + |
626 | 629 | let nodes = scene
|
627 | 630 | .graph
|
628 | 631 | .traverse_handle_iter(instance.root)
|
@@ -936,11 +939,6 @@ impl SceneViewer {
|
936 | 939 | )),
|
937 | 940 | editor_scene.selection.clone(),
|
938 | 941 | )),
|
939 |
| - SceneCommand::new(ScaleNodeCommand::new( |
940 |
| - preview.instance.root, |
941 |
| - Vector3::new(1.0, 1.0, 1.0), |
942 |
| - settings.model.instantiation_scale, |
943 |
| - )), |
944 | 942 | ];
|
945 | 943 |
|
946 | 944 | self.sender
|
|
0 commit comments