more torquescript template fixes.

This commit is contained in:
Jeff Hutchinson 2021-05-04 22:49:19 -04:00
parent 6f7fdca87d
commit b2bbd771f6
54 changed files with 122 additions and 99 deletions

View file

@ -69,6 +69,8 @@ function GuiEditor::createNewProfile( %this, %name, %copySource )
function GuiEditor::getProfileCategory( %this, %profile )
{
// TODO
%name = "";
if( %this.isDefaultProfile( %name ) )
return "Default";
else if( %profile.category !$= "" )

View file

@ -364,6 +364,10 @@ function GenericUndoAction::learn(%this, %object)
%oldFieldNames = %this.fieldNames[%object];
%numNewFields = getWordCount(%newFieldNames);
%numOldFields = getWordCount(%oldFieldNames);
%newNullFields = "";
%oldNullFields = "";
// compare the old field list to the new field list.
// if a field is on the old list that isn't on the new list,
// add it to the newNullFields list.