mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fix #28: correctly track dependencies on card_style._.content / ..layout
This commit is contained in:
+1
-1
@@ -224,7 +224,7 @@ void Style::checkContentDependencies(Context& ctx, const Dependency& dep) const
|
||||
|
||||
void Style::markDependencyMember(const String& name, const Dependency& dep) const {
|
||||
// mark dependencies on content
|
||||
if (dep.type == DEP_DUMMY && dep.index == false && starts_with(name, _("content "))) {
|
||||
if (dep.type == DEP_DUMMY && dep.index == false && (starts_with(name, _("content")) || name == "layout") ) {
|
||||
// anything that starts with "content_" is a content property
|
||||
const_cast<Dependency&>(dep).index = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user