diff --git a/tools/common/src/commoneditor.cpp b/tools/common/src/commoneditor.cpp index 364e062..ff9609e 100755 --- a/tools/common/src/commoneditor.cpp +++ b/tools/common/src/commoneditor.cpp @@ -825,6 +825,8 @@ GFXTexture* CommonEditor::get_material_preview(Material& material) { scene.add(sphere).mesh = assetm->get(file::app_domain / "models" / "sphere.model"); scene.get(sphere).materials.push_back(assetm->get(file::app_domain / material.path)); // we throw away our material handle here :-( + scene.get(sphere).rotation = euler_to_quat(Vector3(radians(90.0f), 0, 0)); + return generate_common_preview(scene, Vector3(0, 0, 3)); }