Fixes for building editor for Linux
This commit is contained in:
@@ -49,8 +49,17 @@ public class ModelTool : EngineModule
|
||||
options.PrivateDependencies.Add("TextureTool");
|
||||
options.PrivateDefinitions.Add("COMPILE_WITH_ASSETS_IMPORTER");
|
||||
|
||||
options.PrivateDependencies.Add("DirectXMesh");
|
||||
options.PrivateDependencies.Add("UVAtlas");
|
||||
switch (options.Platform.Target)
|
||||
{
|
||||
case TargetPlatform.Windows:
|
||||
options.PrivateDependencies.Add("DirectXMesh");
|
||||
options.PrivateDependencies.Add("UVAtlas");
|
||||
break;
|
||||
case TargetPlatform.Linux:
|
||||
break;
|
||||
default: throw new InvalidPlatformException(options.Platform.Target);
|
||||
}
|
||||
|
||||
options.PrivateDependencies.Add("meshoptimizer");
|
||||
|
||||
options.PublicDefinitions.Add("COMPILE_WITH_MODEL_TOOL");
|
||||
|
||||
@@ -257,7 +257,7 @@ void OptimizeCurve(LinearCurve<T>& curve)
|
||||
{
|
||||
auto& oldKeyframes = curve.GetKeyframes();
|
||||
const int32 keyCount = oldKeyframes.Count();
|
||||
LinearCurve<T>::KeyFrameCollection newKeyframes(keyCount);
|
||||
typename LinearCurve<T>::KeyFrameCollection newKeyframes(keyCount);
|
||||
bool lastWasEqual = false;
|
||||
|
||||
for (int32 i = 0; i < keyCount; i++)
|
||||
|
||||
Reference in New Issue
Block a user