mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
build in stdfloat_double
This commit is contained in:
parent
483a02735e
commit
df60493195
@ -406,7 +406,7 @@ void DAEToEggConverter::process_mesh(PT(EggGroup) parent, const FCDGeometryMesh*
|
|||||||
// Loop through the indices and add the vertices.
|
// Loop through the indices and add the vertices.
|
||||||
for (size_t ix = 0; ix < pinput->GetIndexCount(); ++ix) {
|
for (size_t ix = 0; ix < pinput->GetIndexCount(); ++ix) {
|
||||||
PT_EggVertex vertex = mesh_pool->make_new_vertex();
|
PT_EggVertex vertex = mesh_pool->make_new_vertex();
|
||||||
const PN_stdfloat* data = &vsource->GetData()[indices[ix]*3];
|
const float* data = &vsource->GetData()[indices[ix]*3];
|
||||||
vertex->set_pos(LPoint3d(data[0], data[1], data[2]));
|
vertex->set_pos(LPoint3d(data[0], data[1], data[2]));
|
||||||
// Process the normal
|
// Process the normal
|
||||||
if (nsource != NULL && ninput != NULL) {
|
if (nsource != NULL && ninput != NULL) {
|
||||||
@ -529,7 +529,7 @@ void DAEToEggConverter::process_spline(PT(EggGroup) parent, const FCDSpline* spl
|
|||||||
//TODO: what value is this?
|
//TODO: what value is this?
|
||||||
nurbs_curve->setup(0, ((const FCDNURBSSpline*) spline)->GetKnotCount());
|
nurbs_curve->setup(0, ((const FCDNURBSSpline*) spline)->GetKnotCount());
|
||||||
for (size_t kn = 0; kn < ((const FCDNURBSSpline*) spline)->GetKnotCount(); ++kn) {
|
for (size_t kn = 0; kn < ((const FCDNURBSSpline*) spline)->GetKnotCount(); ++kn) {
|
||||||
const PN_stdfloat* knot = ((const FCDNURBSSpline*) spline)->GetKnot(kn);
|
const float* knot = ((const FCDNURBSSpline*) spline)->GetKnot(kn);
|
||||||
assert(knot != NULL);
|
assert(knot != NULL);
|
||||||
nurbs_curve->set_knot(kn, *knot);
|
nurbs_curve->set_knot(kn, *knot);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user