-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -732,7 +732,13 @@ bool SolveSpaceUI::LoadEntitiesFromFile(const Platform::Path &filename, EntityLi | |
} else if(strcmp(line, "AddConstraint")==0) { | ||
|
||
} else if(strcmp(line, "AddStyle")==0) { | ||
|
||
// Linked file contains a style that we don't have yet, | ||
// so import it. | ||
if (SK.style.FindByIdNoOops(sv.s.h) == nullptr) { | ||
SK.style.Add(&(sv.s)); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Evil-Spirit
Collaborator
|
||
} | ||
sv.s = {}; | ||
Style::FillDefaultStyle(&sv.s); | ||
} else if(strcmp(line, VERSION_STRING)==0) { | ||
|
||
} else if(StrStartsWith(line, "Triangle ")) { | ||
|
Strange behaviour. We should search not by id, but by fields of style comparing all the properties. When found exactly the same, we should remap style ids.