Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -5791,7 +5791,7 @@ void Application::addAssetToWorldCheckModelSize() { · 5790 unmodified lines | |||
| 5791 | 5791 | ||
| 5792 | const float RESCALE_THRESHOLD = 10.0f; // Resize entities larger than this as the FBX is likely in cm or mm. | 5792 | const float RESCALE_THRESHOLD = 10.0f; // Resize entities larger than this as the FBX is likely in cm or mm. |
| 5793 | if (dimensions.x > RESCALE_THRESHOLD || dimensions.y > RESCALE_THRESHOLD || dimensions.z > RESCALE_THRESHOLD) { | 5793 | if (dimensions.x > RESCALE_THRESHOLD || dimensions.y > RESCALE_THRESHOLD || dimensions.z > RESCALE_THRESHOLD) { |
| 5794 | dimensions *= 0.1f; | 5794 | dimensions *= 0.01f; |
| 5795 | EntityItemProperties properties; | 5795 | EntityItemProperties properties; |
| 5796 | properties.setDimensions(dimensions); | 5796 | properties.setDimensions(dimensions); |
| 5797 | properties.setCollisionless(false); // Reset to default. | 5797 | properties.setCollisionless(false); // Reset to default. |