GPencil: Fix unreported problems painting after import SVG
After doing an import, the bounding box of the stroke was not calculated and any operation related to brushes (Sculpt, Weight Paint and Vertex Paint) was not working as expected because the bounding box of the stroke was wrong. This problem was solved automatically after any edit operation, but must be solved in the import process.
This commit is contained in:
parent
8f05520083
commit
5280d4bf0b
Notes:
blender-bot
2023-02-14 11:25:11 +01:00
Referenced by issue #90374, Blender doesn't start, probably after 'GHOST/X11: enable EGL' commit Referenced by issue #90317, .Dot files and Folders keep showing OSX and Windows
|
@ -148,6 +148,8 @@ bool GpencilImporterSVG::read()
|
|||
for (bGPDspoint &pt : MutableSpan(gps->points, gps->totpoints)) {
|
||||
sub_v3_v3(&pt.x, gp_center);
|
||||
}
|
||||
/* Calc stroke bounding box. */
|
||||
BKE_gpencil_stroke_boundingbox_calc(gps);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue