Page MenuHome

Proposed fix for T70399
ClosedPublic

Authored by Antonio Vazquez (antoniov) on Wed, Oct 2, 10:20 AM.

Details

Summary

Now the grid matrix is calculated when the shading group is created.

Also, the grid pass is only created when needed and reduce memory usage when the scene is not using grease pencil objects.

Diff Detail

Repository
rB Blender

Event Timeline

@Clément Foucault (fclem) If you give the ok, I will commit this fix for T70399.

Clément Foucault (fclem) requested changes to this revision.Wed, Oct 2, 2:04 PM
Clément Foucault (fclem) added inline comments.
source/blender/draw/engines/gpencil/gpencil_engine.c
710

if it uses gpModelMatrix in the shader, no need to use DRW_shgroup_call_obmat. Use DRW_shgroup_call with ob = NULL.

This revision now requires changes to proceed.Wed, Oct 2, 2:04 PM
  • GPencil: Use DRW_shgroup_call
This revision is now accepted and ready to land.Wed, Oct 2, 3:27 PM