This commit is contained in:
ninja
2025-12-15 23:22:33 +08:00
parent 019570564b
commit 8782765fbc
809 changed files with 118753 additions and 18289 deletions

View File

@@ -1,6 +1,6 @@
/***********************************************************************************************************************
*
* Copyright (c) 2010 - 2022 by Tech Soft 3D, Inc.
* Copyright (c) 2010 - 2025 by Tech Soft 3D, Inc.
* The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., and considered a trade secret
* as defined under civil and criminal statutes. Tech Soft 3D shall pursue its civil and criminal remedies in the event
* of unauthorized use or misappropriation of its trade secrets. Use of this information by anyone other than authorized
@@ -23,15 +23,15 @@ Shared definition of all different set of targets used in all animations
A3DStatus AddTarget(A3DPDFTargetEntity**& ppTargets, int& idxTarget,
A3DAsmModelFile* pModelFile, A3DUTF8Char *pcName, int iIndexRepItem)
A3DAsmModelFile* pModelFile, const A3DUTF8Char *pcName, int iIndexRepItem)
{
A3DPDFTargetEntity*** ppTargetEntities;
A3DInt32 *piSizes;
A3DUTF8Char *apcNames[1];
const A3DUTF8Char *apcNames[1];
apcNames[0] = pcName;
A3DInt32 aiIndexes[1];
aiIndexes[0] = iIndexRepItem;
A3DPDFGetEntitiesFromName(pModelFile, (A3DInt32)1, apcNames, aiIndexes, &ppTargetEntities, &piSizes);
A3DPDFGetEntitiesFromName(pModelFile, (A3DInt32)1, const_cast<A3DUTF8Char**>(apcNames), aiIndexes, &ppTargetEntities, &piSizes);
if (piSizes==0)
return A3D_ERROR;