cleanup nodes

ADDED: functionality to clean nodes out of the script that are related to a specific target
ADDED: functionality to clean multiple addCollisionDetails from the script
ADDED: ColConvex get added as nodes now and dont just get skipped (for future reference ColMeshes are checked for colConvex are not but this will be needed in future)

Removed: erroneous deletion of nodes and meshes from shapeEditorActions tscript file.
This commit is contained in:
marauder2k7 2024-05-16 07:04:54 +01:00
parent 25b0c5e2b1
commit 92b10df7eb
4 changed files with 64 additions and 35 deletions

View file

@ -142,6 +142,7 @@ public:
bool addCmd_setBounds(const Command& newCmd);
bool addCmd_renameDetailLevel(const Command& newCmd);
bool addCmd_addDetailLevel(const Command& newCmd);
bool addCmd_removeDetailLevel(const Command& newCmd);
bool addCmd_setDetailSize(const Command& newCmd);
bool addCmd_addImposter(const Command& newCmd);
@ -253,6 +254,7 @@ public:
/// @name Nodes
///@{
void cleanTargetNodes(const char* detail, const char* target);
S32 getNodeCount();
S32 getNodeIndex(const char* name);
const char* getNodeName(S32 index);
@ -265,7 +267,7 @@ public:
TransformF getNodeTransform(const char* name, bool isWorld = false);
bool setNodeTransform(const char* name, TransformF txfm, bool isWorld = false);
bool renameNode(const char* oldName, const char* newName);
bool addNode(const char* name, const char* parentName, TransformF txfm = TransformF::Identity, bool isWorld = false);
bool addNode(const char* name, const char* parentName, const char* target = "", TransformF txfm = TransformF::Identity, bool isWorld = false);
bool removeNode(const char* name);
///@}