Blender Git Loki
Git Commits -> Revision 4015bed
Revision 4015bed by Joshua Leung (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) December 18, 2017, 08:47 (GMT) |
Cleanup + Optimisations for GP Sculpt Multiframe * Only initialise the falloff curve's internal data once per run, instead of once per layer. We can probably even make this only happen once for each run of the operator, as it shouldn't be possible to change the curve in the meantime (requiring the data to be recalculated) * Save off the multiframe falloff option into a variable instead of doing the full check each time. * Only calculate "diff_mat" once for each layer, instead of once for each GP frame for multiedit. (Note: We weren't taking the frame numbers into account anyway, so it doesn't matter to pull this out. However, technically, if the layer was parented, we'd actually need to have been recalculating the parents transforms for each of the multiedit frames to get the real intended effects) |
Commit Details:
Full Hash: 4015bed382566b5246f059a1d85bbcfd31b0a0b0
Parent Commit: f1996fa
Lines Changed: +18, -11
1 Modified Path:
/source/blender/editors/gpencil/gpencil_brush.c (+18, -11) (Diff)