mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Fix crash creating a custom brush without "Type" option and restarting
This commit is contained in:
parent
12ec08f97f
commit
55f60be79a
@ -310,7 +310,7 @@ void AppBrushes::load(const std::string& filename)
|
||||
if (angle) flags |= int(BrushSlot::Flags::BrushAngle);
|
||||
brush.reset(
|
||||
new Brush(
|
||||
string_id_to_brush_type(type),
|
||||
(type ? string_id_to_brush_type(type): kFirstBrushType),
|
||||
(size ? base::convert_to<int>(std::string(size)): 1),
|
||||
(angle ? base::convert_to<int>(std::string(angle)): 0)));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user