This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -54,18 +54,7 @@ namespace RTE {
54
54
if (preset) {
55
55
preset->Clone (this );
56
56
} else {
57
- if (className == " AtomGroup" || className == " Attachable" || className == " AEmitter" ) {
58
- reader.ReportError (" The PresetName to be copied was not found in data modules." );
59
- }
60
- // If we couldn't find the preset to copy from, read it as an original but report the problem in the console
61
- g_ConsoleMan.PrintString (" ERROR: Couldn't find the preset '" + refName + " ' accessed in " + reader.GetCurrentFilePath () + " at line " + reader.GetCurrentFileLine ());
62
- // Preset name might have "[ModuleName]/" preceding it, detect it here and select proper module!
63
- int slashPos = refName.find_first_of (' /' );
64
- m_PresetName = (slashPos != std::string::npos) ? refName.substr (slashPos + 1 ) : refName;
65
- // Mark this so that the derived class knows it should be added to the PresetMan when it's done reading all properties.
66
- m_IsOriginalPreset = true ;
67
- // Indicate where this was read from
68
- m_DefinedInModule = reader.GetReadModuleID ();
57
+ reader.ReportError (" Couldn't find the preset \" " + refName + " \" of type \" " + className + " \" when trying to do CopyOf." );
69
58
}
70
59
} else if (propName == " PresetName" || propName == " InstanceName" ) {
71
60
SetPresetName (reader.ReadPropValue ());
You can’t perform that action at this time.
0 commit comments