summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-27 06:49:29 +0200
committeraap <aap@papnet.eu>2020-05-27 06:50:05 +0200
commitd0d060d321d57f4c608e5bd6799d9e5958be2394 (patch)
tree4839d3963ae2efc964b7d3a0e4e429dd6cb21bd1
parentMerge pull request #553 from Sergeanur/VC/audio (diff)
downloadre3-d0d060d321d57f4c608e5bd6799d9e5958be2394.tar
re3-d0d060d321d57f4c608e5bd6799d9e5958be2394.tar.gz
re3-d0d060d321d57f4c608e5bd6799d9e5958be2394.tar.bz2
re3-d0d060d321d57f4c608e5bd6799d9e5958be2394.tar.lz
re3-d0d060d321d57f4c608e5bd6799d9e5958be2394.tar.xz
re3-d0d060d321d57f4c608e5bd6799d9e5958be2394.tar.zst
re3-d0d060d321d57f4c608e5bd6799d9e5958be2394.zip
-rw-r--r--src/fakerw/fake.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp
index 71646020..0c85728b 100644
--- a/src/fakerw/fake.cpp
+++ b/src/fakerw/fake.cpp
@@ -615,8 +615,8 @@ RpGeometry *RpGeometryCreateSpace(RwReal radius);
RpMorphTarget *RpMorphTargetSetBoundingSphere(RpMorphTarget *morphTarget, const RwSphere *boundingSphere) { morphTarget->boundingSphere = *boundingSphere; return morphTarget; }
RwSphere *RpMorphTargetGetBoundingSphere(RpMorphTarget *morphTarget) { return &morphTarget->boundingSphere; }
const RpMorphTarget *RpMorphTargetCalcBoundingSphere(const RpMorphTarget *morphTarget, RwSphere *boundingSphere) { *boundingSphere = morphTarget->calculateBoundingSphere(); return morphTarget; }
-RwInt32 RpGeometryAddMorphTargets(RpGeometry *geometry, RwInt32 mtcount);
-RwInt32 RpGeometryAddMorphTarget(RpGeometry *geometry);
+RwInt32 RpGeometryAddMorphTargets(RpGeometry *geometry, RwInt32 mtcount) { RwInt32 n = geometry->numMorphTargets; geometry->addMorphTargets(mtcount); return n; }
+RwInt32 RpGeometryAddMorphTarget(RpGeometry *geometry) { return RpGeometryAddMorphTargets(geometry, 1); }
RpGeometry *RpGeometryRemoveMorphTarget(RpGeometry *geometry, RwInt32 morphTarget);
RwInt32 RpGeometryGetNumMorphTargets(const RpGeometry *geometry);
RpMorphTarget *RpGeometryGetMorphTarget(const RpGeometry *geometry, RwInt32 morphTarget) { return &geometry->morphTargets[morphTarget]; }