Blender Git Commit Log

Git Commits -> Revision 8e8d93e

Revision 8e8d93e by Antonio Vazquez (master)
August 15, 2018, 18:27 (GMT)
GP: Redesign logic of drawing engine for object instance support

The initial design assumed that there was only one object for each unique name, but that was not the case when instances were created.

Now, instances are supported and speed has been greatly improved when repetitions are used.

As a result of this change, the option to create objects has been removed in the Instances modifier. This option was strange and was also against Blender's design rules, since a modifier should never create objects. The old functionality of the modifier can be achieved with instances.

Also, several memory leakage problems that were not previously detected have been eliminated, and especially in the grid and in the drawing process

Onion Skin is not supported in multi-user datablocks. Support this, makes incompatible with instances. We need find a solution in the long term, but now it's better keep disabled and make instances work. Anyway, the new instances makes unnecessary to use muli-user datablocks.

Commit Details:

Full Hash: 8e8d93eb86109988db44730a0107e9da9e870328
Parent Commit: bb84f7f
Lines Changed: +308, -421

14 Modified Paths:

/release/scripts/startup/bl_ui/properties_data_gpencil.py (+4, -1) (Diff)
/release/scripts/startup/bl_ui/properties_data_modifier.py (+0, -1) (Diff)
/source/blender/blenkernel/intern/library.c (+8, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_cache_utils.c (+53, -12) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c (+16, -18) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_utils.c (+60, -124) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+112, -88) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+24, -18) (Diff)
/source/blender/draw/engines/gpencil/gpencil_shader_fx.c (+19, -30) (Diff)
/source/blender/editors/object/object_add.c (+6, -0) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencilinstance.c (+5, -122) (Diff)
/source/blender/makesdna/DNA_gpencil_modifier_types.h (+0, -1) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_gpencil_modifier.c (+0, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021