|
@@ -117,9 +117,6 @@ static Property InterpolateProperties(const Property & p0, const Property& p1, f
|
|
|
{
|
|
{
|
|
|
using namespace Rocket::Core::Transforms;
|
|
using namespace Rocket::Core::Transforms;
|
|
|
|
|
|
|
|
- // Build the new, interpolating transform
|
|
|
|
|
- auto t = std::make_unique<Transform>();
|
|
|
|
|
-
|
|
|
|
|
auto t0 = p0.value.Get<TransformRef>();
|
|
auto t0 = p0.value.Get<TransformRef>();
|
|
|
auto t1 = p1.value.Get<TransformRef>();
|
|
auto t1 = p1.value.Get<TransformRef>();
|
|
|
|
|
|
|
@@ -132,6 +129,10 @@ static Property InterpolateProperties(const Property & p0, const Property& p1, f
|
|
|
return Property{ t0, Property::TRANSFORM };
|
|
return Property{ t0, Property::TRANSFORM };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // Build the new, interpolating transform
|
|
|
|
|
+ auto t = std::make_unique<Transform>();
|
|
|
|
|
+ t->GetPrimitives().reserve(t0->GetPrimitives().size());
|
|
|
|
|
+
|
|
|
for (size_t i = 0; i < prim0.size(); i++)
|
|
for (size_t i = 0; i < prim0.size(); i++)
|
|
|
{
|
|
{
|
|
|
Primitive p = prim0[i];
|
|
Primitive p = prim0[i];
|