mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add store_in_metadata image style property
This commit is contained in:
@@ -18,17 +18,18 @@ IMPLEMENT_REFLECTION(ImageField) {
|
||||
REFLECT_BASE(Field);
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------- : ImageStyle
|
||||
|
||||
IMPLEMENT_REFLECTION(ImageStyle) {
|
||||
REFLECT_BASE(Style);
|
||||
REFLECT_N("default", default_image);
|
||||
REFLECT(store_in_metadata);
|
||||
}
|
||||
|
||||
int ImageStyle::update(Context& ctx) {
|
||||
int changes = Style::update(ctx);
|
||||
changes |= default_image.update(ctx) * CHANGE_DEFAULT;
|
||||
changes |= store_in_metadata.update(ctx) * CHANGE_OTHER;
|
||||
return changes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user