mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Merge pull request #530 from Ragora/bugfix-material-editor-pathing
* [Material Editor] BugFix: Correct case sensitivity errors on the model previews when running on case sensitive systems (Ie. Linux).
This commit is contained in:
commit
f43619b994
1 changed files with 6 additions and 6 deletions
|
|
@ -387,32 +387,32 @@ function MaterialEditorGui::updatePreviewObject(%this)
|
||||||
{
|
{
|
||||||
case "sphere":
|
case "sphere":
|
||||||
matEd_quickPreview_Popup.selected = %newModel;
|
matEd_quickPreview_Popup.selected = %newModel;
|
||||||
matEd_previewObjectView.setModel("tools/materialEditor/gui/spherePreview.dts");
|
matEd_previewObjectView.setModel("tools/materialEditor/gui/spherepreview.dts");
|
||||||
matEd_previewObjectView.setOrbitDistance(4);
|
matEd_previewObjectView.setOrbitDistance(4);
|
||||||
|
|
||||||
case "cube":
|
case "cube":
|
||||||
matEd_quickPreview_Popup.selected = %newModel;
|
matEd_quickPreview_Popup.selected = %newModel;
|
||||||
matEd_previewObjectView.setModel("tools/materialEditor/gui/cubePreview.dts");
|
matEd_previewObjectView.setModel("tools/materialEditor/gui/cubepreview.dts");
|
||||||
matEd_previewObjectView.setOrbitDistance(5);
|
matEd_previewObjectView.setOrbitDistance(5);
|
||||||
|
|
||||||
case "pyramid":
|
case "pyramid":
|
||||||
matEd_quickPreview_Popup.selected = %newModel;
|
matEd_quickPreview_Popup.selected = %newModel;
|
||||||
matEd_previewObjectView.setModel("tools/materialEditor/gui/pyramidPreview.dts");
|
matEd_previewObjectView.setModel("tools/materialEditor/gui/pyramidpreview.dts");
|
||||||
matEd_previewObjectView.setOrbitDistance(5);
|
matEd_previewObjectView.setOrbitDistance(5);
|
||||||
|
|
||||||
case "cylinder":
|
case "cylinder":
|
||||||
matEd_quickPreview_Popup.selected = %newModel;
|
matEd_quickPreview_Popup.selected = %newModel;
|
||||||
matEd_previewObjectView.setModel("tools/materialEditor/gui/cylinderPreview.dts");
|
matEd_previewObjectView.setModel("tools/materialEditor/gui/cylinderpreview.dts");
|
||||||
matEd_previewObjectView.setOrbitDistance(4.2);
|
matEd_previewObjectView.setOrbitDistance(4.2);
|
||||||
|
|
||||||
case "torus":
|
case "torus":
|
||||||
matEd_quickPreview_Popup.selected = %newModel;
|
matEd_quickPreview_Popup.selected = %newModel;
|
||||||
matEd_previewObjectView.setModel("tools/materialEditor/gui/torusPreview.dts");
|
matEd_previewObjectView.setModel("tools/materialEditor/gui/toruspreview.dts");
|
||||||
matEd_previewObjectView.setOrbitDistance(4.2);
|
matEd_previewObjectView.setOrbitDistance(4.2);
|
||||||
|
|
||||||
case "knot":
|
case "knot":
|
||||||
matEd_quickPreview_Popup.selected = %newModel;
|
matEd_quickPreview_Popup.selected = %newModel;
|
||||||
matEd_previewObjectView.setModel("tools/materialEditor/gui/torusknotPreview.dts");
|
matEd_previewObjectView.setModel("tools/materialEditor/gui/torusknotpreview.dts");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue