Fix issue of changes in brush by Lua that didn't survive remap (ex: script Halfsmooth)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1705 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
4d3431afd4
commit
7150a1ebcd
@ -1411,7 +1411,11 @@ void Run_script(const char *script_subdirectory, const char *script_filename)
|
||||
lua_close(L);
|
||||
|
||||
if (Brush_was_altered)
|
||||
{
|
||||
// Copy Brush to original
|
||||
memcpy(Brush_original_pixels, Brush, (long)Brush_width*Brush_height);
|
||||
Change_paintbrush_shape(PAINTBRUSH_SHAPE_COLOR_BRUSH);
|
||||
}
|
||||
|
||||
Hide_cursor();
|
||||
Display_all_screen();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user