java.lang.Object
com.marginallyclever.ro3.apps.commands.ImportHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringwitnessProtectionBeforeLoad(String content) When importing an asset it might already be loaded.
-
Constructor Details
-
ImportHelper
public ImportHelper()
-
-
Method Details
-
witnessProtectionBeforeLoad
When importing an asset it might already be loaded. the two sets would have matching UUIDs, which would confuse the system. To avoid this, we replace all UUIDs in the content with new ones.
Node.witnessProtection()after the fact changes the UUIDs but not theNodePaths that refer to them, which breaks all internal links. To solve this, we do the replacement before loading.Search the content for all reference to "nodeID". Get the UUID that follows it, and then replace every instance of that UUID with a new one.
-