Merge remote-tracking branch 'upstream/development' into Atom/santorac/RemixableMaterialTypes4_FlatMaterialFiles
Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
This commit is contained in:
+2
-7
@@ -95,7 +95,7 @@ namespace SurfaceData
|
||||
m_refresh = false;
|
||||
|
||||
// Update the cached mesh data and bounds, then register the surface data provider
|
||||
AssignSurfaceTagWeights(m_configuration.m_tags, 1.0f, m_newPointWeights);
|
||||
m_newPointWeights.AssignSurfaceTagWeights(m_configuration.m_tags, 1.0f);
|
||||
UpdateMeshData();
|
||||
}
|
||||
|
||||
@@ -178,12 +178,7 @@ namespace SurfaceData
|
||||
AZ::Vector3 hitNormal;
|
||||
if (DoRayTrace(inPosition, hitPosition, hitNormal))
|
||||
{
|
||||
SurfacePoint point;
|
||||
point.m_entityId = GetEntityId();
|
||||
point.m_position = hitPosition;
|
||||
point.m_normal = hitNormal;
|
||||
point.m_masks = m_newPointWeights;
|
||||
surfacePointList.push_back(AZStd::move(point));
|
||||
surfacePointList.AddSurfacePoint(GetEntityId(), hitPosition, hitNormal, m_newPointWeights);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -103,6 +103,6 @@ namespace SurfaceData
|
||||
AZ::Transform m_meshWorldTMInverse = AZ::Transform::CreateIdentity();
|
||||
AZ::Vector3 m_meshNonUniformScale = AZ::Vector3::CreateOne();
|
||||
AZ::Aabb m_meshBounds = AZ::Aabb::CreateNull();
|
||||
SurfaceTagWeightMap m_newPointWeights;
|
||||
SurfaceTagWeights m_newPointWeights;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user