youarebritish / FoxKit

General-purpose Fox Engine data editor.
MIT License
47 stars 5 forks source link

Make dragging a FoxModel into the scene add it to the active DataSet as a StaticModel #57

Closed youarebritish closed 6 years ago

youarebritish commented 6 years ago

If there's an active DataSet, make it so that dragging a FoxModel into the scene adds it to the active DataSet as a StaticModel entity. The new entity should be named as follows:

MODELNAME_ID where MODELNAME is the filename of the model and ID is a unique four-digit zero-indexed ID.

For instance, if you add afgh_fndt013_prtt002.fmdl to the scene, it should create a StaticModel entity named afgh_fndt013_prtt002_0000, and the next one should be afgh_fndt013_prtt002_0001, and so on.